2019-07-29 13:45:38 +08:00
|
|
|
export default class defaultStyle {
|
2019-07-16 13:34:03 +08:00
|
|
|
constructor() {
|
2019-08-02 18:05:08 +08:00
|
|
|
/** 透明填充 颜色*/
|
|
|
|
this.transparentColor = 'rgba(0,0,0,0)';
|
|
|
|
|
2019-07-16 13:34:03 +08:00
|
|
|
/** 默认背景 颜色*/
|
|
|
|
this.backgroundColor = '#000000';
|
|
|
|
|
|
|
|
/** 默认提示背景 颜色*/
|
|
|
|
this.tipBackgroundColor = 'yellow';
|
|
|
|
|
|
|
|
/** 默认边线 颜色*/
|
|
|
|
this.sidelineColor = '#FFFFFF';
|
|
|
|
|
|
|
|
/** 默认字体 大小*/
|
2019-07-17 09:12:05 +08:00
|
|
|
this.textFontSize = 10;
|
2019-07-16 13:34:03 +08:00
|
|
|
|
|
|
|
/** 默认字体 族类*/
|
2019-08-06 13:09:11 +08:00
|
|
|
this.fontFamily = 'consolas';
|
2019-07-16 13:34:03 +08:00
|
|
|
|
|
|
|
/** 默认字体颜色*/
|
|
|
|
this.textFontColor = '#C0C0C0';
|
|
|
|
|
2019-08-02 18:05:08 +08:00
|
|
|
/** 默认提示字体大小*/
|
|
|
|
this.arrowFontSize = 10;
|
2019-07-23 13:40:55 +08:00
|
|
|
|
2019-07-16 13:34:03 +08:00
|
|
|
/** 列车长度*/
|
|
|
|
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;
|
|
|
|
|
2019-07-25 14:57:23 +08:00
|
|
|
/** 列车文字颜色*/
|
|
|
|
this.trainTextColor = '#ffffff';
|
2019-07-31 18:24:28 +08:00
|
|
|
|
|
|
|
/** 灯包围框样式 */
|
|
|
|
this.arcBorderStyle = {
|
|
|
|
lineDash: [3, 3],
|
|
|
|
stroke: '#FFFFFF',
|
|
|
|
fill: 'rgba(0,0,0,0)'
|
|
|
|
};
|
|
|
|
/** 字体包围框样式 */
|
|
|
|
this.textBorderStyle={
|
|
|
|
lineDash: [3, 3],
|
|
|
|
stroke: '#FFFFFF',
|
|
|
|
fill: '#00FFFF'
|
|
|
|
};
|
2019-07-16 13:34:03 +08:00
|
|
|
}
|
|
|
|
}
|