This commit is contained in:
zyy 2020-04-09 17:37:41 +08:00
commit ced7cb91b6

View File

@ -49,35 +49,35 @@ class ESafeDoor extends Group {
this.add(this.stand2);
} else {
if (style.StationStand.safetyDoor.special) {
const standModel = store.getters['map/getDeviceByCode'](this.model.standCode);
const offesetY = standModel.right ? 1 : -1;
this.safeT = new Line({
zlevel: model.zlevel,
z: model.z,
shape: {
x1:model.x - model.width / 2,
y1:model.y,
y1:model.y + (1 + offesetY ) / 2 * (2 + (model.height - 2) / 2),
x2:model.x + model.width / 2,
y2:model.y
y2:model.y + (1 + offesetY ) / 2 * (2 + (model.height - 2) / 2)
},
style: {
lineWidth: model.height,
lineWidth: (model.height - 2) / 2,
lineDash:[(model.width) * 0.6 / 4, (model.width) * 0.4 / 3],
lineDashOffset:0,
stroke: style.StationStand.safetyDoor.defaultColor
}
});
const standModel = store.getters['map/getDeviceByCode'](this.model.standCode);
const offesetY = standModel.right ? -1 : 1;
this.safeB = new Line({
zlevel: model.zlevel,
z: model.z,
shape: {
x1:model.x - model.width / 2,
y1:model.y + offesetY * (model.height + 2) + (1 + offesetY) * model.height,
y1:model.y + (1 - offesetY) / 2 * ((model.height - 2) / 2 + 2),
x2:model.x + model.width / 2,
y2:model.y + offesetY * (model.height + 2) + (1 + offesetY) * model.height
y2:model.y + (1 - offesetY) / 2 * ((model.height - 2) / 2 + 2)
},
style: {
lineWidth: model.height,
lineWidth: (model.height - 2) / 2,
lineDash:[(model.width) * 0.45 / 3, (model.width) * 0.55 / 4],
lineDashOffset:(model.width) * 0.45 / 3,
stroke: style.StationStand.safetyDoor.defaultColor