152 lines
3.4 KiB
JavaScript
152 lines
3.4 KiB
JavaScript
export default class defaultStyle {
|
|
constructor() {
|
|
/** 默认背景 颜色*/
|
|
this.backgroundColor = '#000000';
|
|
|
|
/** 默认提示背景 颜色*/
|
|
this.tipBackgroundColor = 'yellow';
|
|
|
|
/** 默认边线 颜色*/
|
|
this.sidelineColor = '#FFFFFF';
|
|
|
|
/** 透明填充 颜色*/
|
|
this.transparentColor = 'rgba(0,0,0,0)';
|
|
|
|
/** 默认字体 大小*/
|
|
this.textFontSize = 10;
|
|
|
|
/** 默认字体 族类*/
|
|
this.textFontFormat = 'consolas';
|
|
|
|
/** 默认字体颜色*/
|
|
this.textFontColor = '#C0C0C0';
|
|
|
|
/** 默认字体阴影颜色*/
|
|
this.textShadowColor = '#FFFF00';
|
|
|
|
/** 默认border文字背景色*/
|
|
this.borderContextBackgroundColor = '#00FFFF';
|
|
|
|
/** 默认border颜色*/
|
|
this.borderColor = '#fff';
|
|
|
|
/** 默认border线宽*/
|
|
this.borderWidth = 1;
|
|
|
|
/** 默认名称和设备的距离*/
|
|
this.nameDistance = 2;
|
|
|
|
/** 计数器字体颜色*/
|
|
this.stationCounterTextColor = '#FFFFFF';
|
|
/** 计数器边框颜色*/
|
|
this.stationCounterBorderColor = '#E4EF50';
|
|
/** 延迟解锁倒计时和设备文字之间的距离*/
|
|
this.stationDelayUnlockDistance = 3;
|
|
/** 延时解锁字体颜色*/
|
|
this.stationDelayUnlockTextColor = '#FFFFFF';
|
|
/** 延迟解锁边框颜色*/
|
|
this.stationDelayUnlockBorderColor = '#FFFFFF';
|
|
|
|
/** 目的码字体颜色*/
|
|
this.destinationTextFontColor = 'yellow';
|
|
|
|
/** 计数器字体颜色*/
|
|
this.stationCounterTextColor = '#FFFFFF';
|
|
/** 计数器边框颜色*/
|
|
this.stationCounterBorderColor = '#E4EF50';
|
|
/** 延迟解锁倒计时和设备文字之间的距离*/
|
|
this.stationDelayUnlockDistance = 3;
|
|
/** 延时解锁字体颜色*/
|
|
this.stationDelayUnlockTextColor = '#FFFFFF';
|
|
/** 延迟解锁边框颜色*/
|
|
this.stationDelayUnlockBorderColor = '#FFFFFF';
|
|
|
|
/** 列车长度*/
|
|
this.trainWidth = 40;
|
|
|
|
/** 列车高度*/
|
|
this.trainHeight = 20;
|
|
|
|
/** 列车字号*/
|
|
this.trainTextFontSize = 12;
|
|
|
|
/** 列车HDSA字号*/
|
|
this.trainHSDATextFontSize = 9;
|
|
|
|
/** 列车信号的半径*/
|
|
this.trainConflictR = 3;
|
|
|
|
/** 列车信号距离车的距离*/
|
|
this.trainConflictDistance = 5;
|
|
|
|
/** 列车车头比车身高出的长度;上下相比车体伸出去的边框*/
|
|
this.trainMoreLength = 0;
|
|
|
|
/** 列车和车头之间的间距*/
|
|
this.trainHeadDistance = 4;
|
|
|
|
/** 列车竖杠的宽度*/
|
|
this.trainConntWidth = 3;
|
|
|
|
/** 列车竖杠和方向之间的间隔*/
|
|
this.trainPadding = 4;
|
|
|
|
/** 列车方向的宽度*/
|
|
this.trainArrowWidth = 6;
|
|
|
|
/** 列车和区段之间的距离*/
|
|
this.trainDistance = 30;
|
|
|
|
/** 列车边线颜色*/
|
|
this.trainSidelineColor = '#C0C0C0';
|
|
|
|
/** 列车背景*/
|
|
this.trainBackground = '#000000';
|
|
|
|
/** 列车 灰色*/
|
|
this.trainGrayColor = '#C0C0C0';
|
|
|
|
/** 列车 白色*/
|
|
this.trainWitheColor = '#FFFFFF';
|
|
|
|
/** 列车 棕色*/
|
|
this.trainBrownColor = '#A0522D';
|
|
|
|
/** 列车 黄色*/
|
|
this.trainYellowColor = '#FFFF00';
|
|
|
|
/** 列车 棕灰色 */
|
|
this.trainBrown1Color = '#725A64';
|
|
|
|
/** 列车 绿色*/
|
|
this.trainGreenColor = '#00FF00';
|
|
|
|
/** 列车 蓝色*/
|
|
this.trainBlueColor = '#3265FF';
|
|
|
|
/** 列车 红色*/
|
|
this.trainRedColor = '#FF0000';
|
|
|
|
/** 列车 橘色*/
|
|
this.trainOrangeColor = 'orange';
|
|
|
|
/** 列车 紫色*/
|
|
this.trainPurpleColor = 'purple';
|
|
|
|
/** 列车 粉色*/
|
|
this.trainPinkColor = 'pink';
|
|
|
|
/** 车次窗高度*/
|
|
this.trainWindowWidth = 40;
|
|
|
|
/** 车次窗高度*/
|
|
this.trainWindowHeight = 15;
|
|
|
|
/** 车次窗颜色*/
|
|
this.trainWindowColor = '#fff';
|
|
|
|
/** 列车文字颜色*/
|
|
this.trainTextColor = '#ffffff';
|
|
}
|
|
}
|