紧急停车代码调整
This commit is contained in:
parent
8297ebcf98
commit
0bcdae70db
@ -14,13 +14,13 @@ class EEmergentCross extends Group {
|
||||
const model = this.model.modelData;
|
||||
const style = this.model.style;
|
||||
|
||||
const emergentOffset = model.inside ? style.StationStand.emergentRhombus.insideOffset : style.StationStand.emergentRhombus.outsideOffset;
|
||||
const emergentOffset = model.inside ? style.StationStand.emergentCross.insideOffset : style.StationStand.emergentCross.outsideOffset;
|
||||
const emergentH = model.right ? 1 : -1;
|
||||
const emergentX = model.position.x + emergentH * emergentOffset.x;
|
||||
const emergentY = model.position.y + emergentH * emergentOffset.y;
|
||||
|
||||
model.r = style.StationStand.emergentRhombus.mergentR;
|
||||
model.n = style.StationStand.emergentRhombus.mergentN;
|
||||
model.r = style.StationStand.emergentCross.mergentR;
|
||||
model.n = style.StationStand.emergentCross.mergentN;
|
||||
|
||||
this.emergent = new Isogon({
|
||||
zlevel: this.model.zlevel,
|
||||
@ -33,7 +33,7 @@ class EEmergentCross extends Group {
|
||||
},
|
||||
style: {
|
||||
lineWidth: 2,
|
||||
stroke:style.StationStand.emergentRhombus.defaultColor
|
||||
stroke:style.StationStand.emergentCross.defaultColor
|
||||
}
|
||||
});
|
||||
this.add(this.emergent);
|
||||
@ -52,7 +52,7 @@ class EEmergentCross extends Group {
|
||||
},
|
||||
style:{
|
||||
lineWidth:2,
|
||||
stroke:style.StationStand.emergentRhombus.defaultColor
|
||||
stroke:style.StationStand.emergentCross.defaultColor
|
||||
}
|
||||
});
|
||||
this.emergentLine2 = new Line({
|
||||
@ -66,7 +66,7 @@ class EEmergentCross extends Group {
|
||||
},
|
||||
style:{
|
||||
lineWidth:2,
|
||||
stroke:style.StationStand.emergentRhombus.defaultColor
|
||||
stroke:style.StationStand.emergentCross.defaultColor
|
||||
}
|
||||
});
|
||||
this.add(this.emergentLine1);
|
||||
|
Loading…
Reference in New Issue
Block a user