diff --git a/src/jmapNew/shape/graph/Switch/index.js b/src/jmapNew/shape/graph/Switch/index.js index 727fec8f4..93ee21274 100644 --- a/src/jmapNew/shape/graph/Switch/index.js +++ b/src/jmapNew/shape/graph/Switch/index.js @@ -326,9 +326,9 @@ export default class Switch extends Group { } this.name.getTextRect().animateStyle(true) - .when(0, { textFill: this.style.backgroundColor }) + .when(0, { textFill: this.style.transparentColor }) .when(1000, { textFill: this.style.Switch.text.borderColor }) - .when(2000, { textFill: this.style.backgroundColor }) + .when(2000, { textFill: this.style.transparentColor }) .start(); } @@ -354,7 +354,7 @@ export default class Switch extends Group { this.lockCircle && this.lockCircle.hide(); // 圆形包围框 this.lockArc && this.lockArc.hide(); // 圆形单锁框 this.name.getNameText().stopAnimation(false); - this.name.getTextRect().setStyle({ fill: this.style.backgroundColor }); + this.name.getTextRect().setStyle({ fill: this.style.transparentColor }); this.shapeModelC && this.shapeModelC.hide(); // 形状 C this.shapeModelA && this.shapeModelA.hide(); // 形状 A this.shapeModelB && this.shapeModelB.hide(); // 形状 B @@ -626,7 +626,7 @@ export default class Switch extends Group { } if (this.style.Switch.core.specialCircle) { - this.name.getTextRect().setStyle({ fill: this.style.backgroundColor }); + this.name.getTextRect().setStyle({ fill: this.style.transparentColor }); this.setTextColor(this.style.Switch.text.guideMasterLockColor); } else { this.setTextColor(this.style.Switch.text.monolockLocationColor); @@ -911,7 +911,7 @@ export default class Switch extends Group { this.setHasTextBorder(1, this.style.Switch.text.fpLockBorderColor); } if (this.style.Switch.core.specialCircle) { - this.name.getTextRect().setStyle({ fill: this.style.backgroundColor }); + this.name.getTextRect().setStyle({ fill: this.style.transparentColor }); this.setTextColor(this.style.Switch.text.fpLockColor); } }