140 lines
3.6 KiB
JavaScript
140 lines
3.6 KiB
JavaScript
export default class defaultStyle {
|
|
constructor() {
|
|
/** 透明填充 颜色*/
|
|
this.transparentColor = 'rgba(0,0,0,0)';
|
|
|
|
/** 默认背景 颜色*/
|
|
this.backgroundColor = '#000000';
|
|
|
|
/** 默认提示背景 颜色*/
|
|
this.tipBackgroundColor = 'yellow';
|
|
|
|
/** 默认边线 颜色*/
|
|
this.sidelineColor = '#FFFFFF';
|
|
|
|
/** 默认字体 大小*/
|
|
this.textFontSize = 10;
|
|
|
|
/** 默认字体 族类*/
|
|
this.fontFamily = '宋体';
|
|
|
|
/** 默认字体颜色*/
|
|
this.textFontColor = '#C0C0C0';
|
|
|
|
/** 默认提示字体大小*/
|
|
this.arrowFontSize = 10;
|
|
|
|
/** 列车长度*/
|
|
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.trainTextColor = '#ffffff';
|
|
|
|
/** 灯包围框样式 */
|
|
this.arcBorderStyle = {
|
|
lineDash: [3, 3],
|
|
stroke: '#FFFFFF',
|
|
fill: 'rgba(0,0,0,0)'
|
|
};
|
|
/** 字体包围框样式 */
|
|
this.textBorderStyle = {
|
|
lineDash: [3, 3],
|
|
stroke: '#FFFFFF',
|
|
fill: '#00FFFF'
|
|
};
|
|
/** 常规字体样式 */
|
|
this.textStyle = {
|
|
textAlign: 'center', // 文字居中
|
|
textVerticalAlign: 'middle', // 文字垂直对齐方式
|
|
textPosition: 'inside', // 文字位置
|
|
fontWeight: 'normal' // 字体粗细
|
|
};
|
|
}
|
|
}
|
|
export const drawSectionStyle = {
|
|
routePhysicalSection: 'rgba(255,255,0,0.5)',
|
|
continueProtectSection: 'rgba(255,0,255,0.5)',
|
|
signalNearSectionCBTC: 'rgba(255, 0, 0, 0.5)',
|
|
signalNearSectionReserve: 'rgba(160, 32, 240, 0.5)',
|
|
signalNearSection: 'rgba(124, 252, 0, 0.5)',
|
|
routingSection: 'rgba(255, 20, 147, 0.9)'
|
|
};
|