岔心 代码调整
This commit is contained in:
parent
a9ea00c0c8
commit
2b6e1ca117
@ -362,6 +362,9 @@ export default class ELines extends Group {
|
||||
this.routeArrowRight.hide();
|
||||
this.routeLineRight.hide();
|
||||
}
|
||||
if (model.type == '01' && model.parentCode) {
|
||||
this.section.setStyle({stroke:'#5b5b5b'});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -374,7 +377,8 @@ export default class ELines extends Group {
|
||||
}
|
||||
|
||||
setOrignalCross() {
|
||||
this.crossSection && this.crossSection.setStyle({lineWidth:0, fill:this.model.style.Section.cross.crossSection.fillColor});
|
||||
this.crossSection && this.crossSection.setStyle({lineWidth:0 });
|
||||
// fill:this.model.style.Section.cross.crossSection.fillColor
|
||||
}
|
||||
|
||||
setCrossBlock() {
|
||||
|
@ -90,10 +90,14 @@ export default class Section extends Group {
|
||||
this.line.stopAnimation(true);
|
||||
this.sectionBlock && this.sectionBlock.hide(); // 因此特殊区段
|
||||
this.sectionBlock && this.sectionBlock.stopAnimation();
|
||||
this.line.setStyle({
|
||||
stroke: this.style.Section.line.spareColor,
|
||||
lineWidth: this.style.Section.line.width
|
||||
});
|
||||
if (this.model.type == '01' && this.model.parentCode) {
|
||||
this.line.setStyle({stroke:'#5b5b5b'});
|
||||
} else {
|
||||
this.line.setStyle({
|
||||
stroke: this.style.Section.line.spareColor,
|
||||
lineWidth: this.style.Section.line.width
|
||||
});
|
||||
}
|
||||
this.line.setCrossSpeedUpperLimit('');
|
||||
}
|
||||
this.name && this.name.recover();
|
||||
@ -121,10 +125,15 @@ export default class Section extends Group {
|
||||
/** 空闲状态 01*/
|
||||
spare() {
|
||||
if (this.line) {
|
||||
this.line.setStyle({
|
||||
stroke: this.style.Section.line.spareColor,
|
||||
lineWidth: this.style.Section.line.width
|
||||
});
|
||||
if (this.model.type == '01' && this.model.parentCode) {
|
||||
this.section.setStyle({stroke:'#5b5b5b'});
|
||||
} else {
|
||||
this.line.setStyle({
|
||||
stroke: this.style.Section.line.spareColor,
|
||||
lineWidth: this.style.Section.line.width
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user