Optimize simulator for light mode. (#379)
* Optimize simulator for light mode. * Add user-select none.
This commit is contained in:
@@ -55,6 +55,7 @@ namespace pxsim.visuals {
|
||||
protected buildDom(): SVGElement {
|
||||
this.content = svg.parseString(this.xml);
|
||||
this.buildDomCore();
|
||||
if (pxsim.inLightMode()) this.optimizeForLightMode();
|
||||
this.attachEvents();
|
||||
if (this.hasClick())
|
||||
this.content.style.cursor = "pointer";
|
||||
@@ -65,6 +66,10 @@ namespace pxsim.visuals {
|
||||
|
||||
}
|
||||
|
||||
protected optimizeForLightMode() {
|
||||
|
||||
}
|
||||
|
||||
public getInnerHeight() {
|
||||
if (!this.content) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user