调整:代码修改
This commit is contained in:
parent
b50fd1aae3
commit
1eb577a2ed
@ -22,7 +22,9 @@ export default class TextTrainNumber extends Group {
|
||||
textStrokeWidth: 0,
|
||||
textFont: model.textFont,
|
||||
textAlign: 'left',
|
||||
textVerticalAlign: 'top'
|
||||
textVerticalAlign: 'top',
|
||||
onmouseover: model.onmouseover,
|
||||
onmouseout: model.onmouseout
|
||||
},
|
||||
cursor: 'pointer'
|
||||
});
|
||||
|
@ -18,7 +18,9 @@ export default class TextTrainServer extends Group {
|
||||
textFill: this.model.trainBrownColor,
|
||||
textFont: this.model.textFont,
|
||||
textAlign: 'left',
|
||||
textVerticalAlign: 'top'
|
||||
textVerticalAlign: 'top',
|
||||
onmouseover: this.model.onmouseover,
|
||||
onmouseout: this.model.onmouseout
|
||||
},
|
||||
cursor: 'pointer'
|
||||
});
|
||||
|
@ -18,7 +18,9 @@ export default class TextTrainTarget extends Group {
|
||||
textFill: this.model.trainYellowColor,
|
||||
textFont: this.model.textFont,
|
||||
textAlign: this.model.style.Train.trainTargetTextAlign,
|
||||
textVerticalAlign: 'top'
|
||||
textVerticalAlign: 'top',
|
||||
onmouseover: this.model.onmouseover,
|
||||
onmouseout: this.model.onmouseout
|
||||
},
|
||||
cursor: 'pointer'
|
||||
});
|
||||
|
@ -21,7 +21,9 @@ export default class TextTrainTargetNumber extends Group {
|
||||
textStrokeWidth: 0,
|
||||
textFont: model.textFont,
|
||||
textAlign: 'left',
|
||||
textVerticalAlign: 'top'
|
||||
textVerticalAlign: 'top',
|
||||
onmouseover: model.onmouseover,
|
||||
onmouseout: model.onmouseout
|
||||
},
|
||||
cursor: 'pointer'
|
||||
});
|
||||
|
@ -59,8 +59,8 @@ export default class TrainBody extends Group {
|
||||
},
|
||||
cursor: 'pointer',
|
||||
arrowText: this.arrowText,
|
||||
onmouseover: () => { this.arrowText.getArrowText().show(); },
|
||||
onmouseout: () => { this.arrowText.getArrowText().hide(); }
|
||||
onmouseover: () => { style.Train.trainBodyOnMouseOver.train?this.arrowText.getArrowText().show():''; },
|
||||
onmouseout: () => { style.Train.trainBodyOnMouseOut.train?this.arrowText.getArrowText().hide():''; }
|
||||
});
|
||||
|
||||
const beginX = (model.point.x + style.Train.lrPadding);
|
||||
@ -94,8 +94,8 @@ export default class TrainBody extends Group {
|
||||
serviceNumber: serviceNumber,
|
||||
trainBrownColor: style.trainTextColor,
|
||||
textFont: textFont,
|
||||
trainBodyOnMouseOver: style.Train.trainBodyOnMouseOver,
|
||||
trainBodyOnMouseOut: style.Train.trainBodyOnMouseOut
|
||||
onmouseover: () => { style.Train.trainBodyOnMouseOver.textTrainServer?this.arrowText.getArrowText().show():''; },
|
||||
onmouseout: () => { style.Train.trainBodyOnMouseOut.textTrainServer?this.arrowText.getArrowText().hide():''; }
|
||||
});
|
||||
|
||||
this.textTrainTarget = new TextTrainTarget({
|
||||
@ -107,8 +107,8 @@ export default class TrainBody extends Group {
|
||||
tripNumber: tripNumber,
|
||||
trainYellowColor: style.trainTextColor,
|
||||
textFont: textFont,
|
||||
trainBodyOnMouseOver: style.Train.trainBodyOnMouseOver,
|
||||
trainBodyOnMouseOut: style.Train.trainBodyOnMouseOut
|
||||
onmouseover: () => { style.Train.trainBodyOnMouseOver.textTrainTarget?this.arrowText.getArrowText().show():''; },
|
||||
onmouseout: () => { style.Train.trainBodyOnMouseOut.textTrainTarget?this.arrowText.getArrowText().hide():''; }
|
||||
});
|
||||
|
||||
this.textTrainNumber = new TextTrainNumber({
|
||||
@ -120,8 +120,8 @@ export default class TrainBody extends Group {
|
||||
targetCode: targetCode,
|
||||
trainTextColor: style.trainTextColor,
|
||||
textFont: textFont,
|
||||
trainBodyOnMouseOver: style.Train.trainBodyOnMouseOver,
|
||||
trainBodyOnMouseOut: style.Train.trainBodyOnMouseOut
|
||||
onmouseover: () => { style.Train.trainBodyOnMouseOver.textTrainNumber?this.arrowText.getArrowText().show():''; },
|
||||
onmouseout: () => { style.Train.trainBodyOnMouseOut.textTrainNumber?this.arrowText.getArrowText().hide():''; }
|
||||
});
|
||||
|
||||
this.textTrainTargetNumber = new TextTrainTargetNumber({
|
||||
@ -133,8 +133,8 @@ export default class TrainBody extends Group {
|
||||
groupNumber: groupNumber,
|
||||
trainTextColor: style.trainTextColor,
|
||||
textFont: textFont,
|
||||
trainBodyOnMouseOver: style.Train.trainBodyOnMouseOver,
|
||||
trainBodyOnMouseOut: style.Train.trainBodyOnMouseOut
|
||||
onmouseover: () => { style.Train.trainBodyOnMouseOver.textTrainTargetNumber?this.arrowText.getArrowText().show():''; },
|
||||
onmouseout: () => { style.Train.trainBodyOnMouseOut.textTrainTargetNumber?this.arrowText.getArrowText().hide():''; }
|
||||
});
|
||||
// 根据列车类型设置显示格式
|
||||
if ( style.Train.specialTrainType.length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user