This commit is contained in:
fan 2020-12-29 11:04:17 +08:00
commit 9a55afa779

View File

@ -14,13 +14,13 @@ class EEmergentCross extends Group {
const model = this.model.modelData; const model = this.model.modelData;
const style = this.model.style; 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 emergentH = model.right ? 1 : -1;
const emergentX = model.position.x + emergentH * emergentOffset.x; const emergentX = model.position.x + emergentH * emergentOffset.x;
const emergentY = model.position.y + emergentH * emergentOffset.y; const emergentY = model.position.y + emergentH * emergentOffset.y;
model.r = style.StationStand.emergentRhombus.mergentR; model.r = style.StationStand.emergentCross.mergentR;
model.n = style.StationStand.emergentRhombus.mergentN; model.n = style.StationStand.emergentCross.mergentN;
this.emergent = new Isogon({ this.emergent = new Isogon({
zlevel: this.model.zlevel, zlevel: this.model.zlevel,
@ -33,7 +33,7 @@ class EEmergentCross extends Group {
}, },
style: { style: {
lineWidth: 2, lineWidth: 2,
stroke:style.StationStand.emergentRhombus.defaultColor stroke:style.StationStand.emergentCross.defaultColor
} }
}); });
this.add(this.emergent); this.add(this.emergent);
@ -52,7 +52,7 @@ class EEmergentCross extends Group {
}, },
style:{ style:{
lineWidth:2, lineWidth:2,
stroke:style.StationStand.emergentRhombus.defaultColor stroke:style.StationStand.emergentCross.defaultColor
} }
}); });
this.emergentLine2 = new Line({ this.emergentLine2 = new Line({
@ -66,7 +66,7 @@ class EEmergentCross extends Group {
}, },
style:{ style:{
lineWidth:2, lineWidth:2,
stroke:style.StationStand.emergentRhombus.defaultColor stroke:style.StationStand.emergentCross.defaultColor
} }
}); });
this.add(this.emergentLine1); this.add(this.emergentLine1);