rt-graphic-component/components/Platform/PlatformConfig.js

54 lines
1.5 KiB
JavaScript
Raw Normal View History

2023-12-25 13:25:01 +08:00
var CategoryType;
(function (CategoryType) {
2023-12-25 17:20:03 +08:00
CategoryType["BeiJing"] = "BeiJing";
CategoryType["XiAn"] = "XiAn";
2023-12-25 13:25:01 +08:00
})(CategoryType || (CategoryType = {}));
2023-12-25 17:20:03 +08:00
const BeiJingConsts = {
width: 90,
height: 20,
2023-12-25 13:25:01 +08:00
lineWidth: 3,
2023-12-26 11:08:51 +08:00
noTrainStop: '0xffffff',
2023-12-26 10:25:57 +08:00
trainStop: '0xfbff00',
trainJump: '0xC0C0FE',
2023-12-25 13:25:01 +08:00
};
2023-12-25 17:20:03 +08:00
const XiAnConsts = {
2023-12-25 13:25:01 +08:00
width: 90,
height: 20,
lineWidth: 3,
2023-12-26 11:08:51 +08:00
noTrainStop: '0x7F7F7F',
2023-12-26 10:25:57 +08:00
trainStop: '0xfbff00',
trainJump: '0xC0C0FE',
2023-12-25 17:20:03 +08:00
blueShowColor: '0x3149c3',
2023-12-25 13:25:01 +08:00
doorGraphic: {
2023-12-25 17:20:03 +08:00
blueShowColor: '0x3149c3',
2023-12-25 13:25:01 +08:00
doorOpenSpacing: 15,
doorGreen: '0x00FF00',
2023-12-25 17:20:03 +08:00
doorRed: '0xff0000',
doorBlue: '0x4048C4',
doorPlatformSpacing: 10,
},
codeGraphic: {
circleRadius: 1,
besideSpacing: 10,
besideFontSize: 12,
whiteNumbers: '0xffffff',
whiteCircle: '0xffffff',
HCharYellow: '0xfbff00',
HCharWhite: '0xffffff',
HCharRed: '0xff0000',
},
lozengeGraphic: {
lozengeRed: '0xff0000',
doorPlatformSpacing: 10,
},
2023-12-25 13:25:01 +08:00
};
2023-12-25 17:20:03 +08:00
const platformConstsMap = new Map([[CategoryType.BeiJing, BeiJingConsts], [CategoryType.XiAn, XiAnConsts]]);
var TypeOfPlatform;
(function (TypeOfPlatform) {
TypeOfPlatform[TypeOfPlatform["Unknown"] = 0] = "Unknown";
TypeOfPlatform[TypeOfPlatform["up"] = 1] = "up";
TypeOfPlatform[TypeOfPlatform["down"] = 2] = "down";
})(TypeOfPlatform || (TypeOfPlatform = {}));
2023-12-25 13:25:01 +08:00
export { CategoryType, platformConstsMap };