道岔灰显

This commit is contained in:
fan 2020-12-21 16:28:32 +08:00
parent 239da4d74b
commit 83f49ce487

View File

@ -512,7 +512,11 @@ export default class Switch extends Group {
section.hide();
}
}
setAshShow() {
this.shapeModelA.setColor('#7F7F7F');
this.shapeModelB.setColor('#7F7F7F');
this.shapeModelC.setColor('#7F7F7F');
}
setState(model) {
if (!this.isShowShape) return;
this.recover();
@ -545,6 +549,7 @@ export default class Switch extends Group {
sectionB && sectionB.instance && sectionB.instance.setState(sectionB);
}
}
model.noStatus && this.setAshShow();
}
getBoundingRect() {