调整:福州列车从左往右不显示
This commit is contained in:
parent
5270c0bc2a
commit
1d18028d41
@ -14,6 +14,7 @@ export default class Train extends Group {
|
|||||||
this.model = model;
|
this.model = model;
|
||||||
this.style = style;
|
this.style = style;
|
||||||
this.z = 40;
|
this.z = 40;
|
||||||
|
this.size = 0;
|
||||||
this.section = null;
|
this.section = null;
|
||||||
this.fontSize = style.Train.nameFontSize || style.Train.trainTextFontSize;
|
this.fontSize = style.Train.nameFontSize || style.Train.trainTextFontSize;
|
||||||
this.newScale = this.fontSize / style.Train.trainTextFontSize;
|
this.newScale = this.fontSize / style.Train.trainTextFontSize;
|
||||||
@ -285,8 +286,8 @@ export default class Train extends Group {
|
|||||||
// 是否根据车身上车组号、服务号、车次号、目的地码显示情况改变列车长度
|
// 是否根据车身上车组号、服务号、车次号、目的地码显示情况改变列车长度
|
||||||
isChangeTrainWidth(model, style) {
|
isChangeTrainWidth(model, style) {
|
||||||
if (!style.Train.changeTrainWidth) { return; }
|
if (!style.Train.changeTrainWidth) { return; }
|
||||||
if (model.nameFormat) {
|
if (style.Train.trainNameFormat) {
|
||||||
const arr = model.nameFormat.split(':');
|
const arr = style.Train.trainNameFormat.split(':');
|
||||||
arr.forEach(ele => {
|
arr.forEach(ele => {
|
||||||
switch (ele) {
|
switch (ele) {
|
||||||
case 'targetCode': {
|
case 'targetCode': {
|
||||||
|
Loading…
Reference in New Issue
Block a user