55 lines
1.4 KiB
JavaScript
55 lines
1.4 KiB
JavaScript
var CategoryType;
|
|
(function (CategoryType) {
|
|
CategoryType["BeiJing"] = "BeiJing";
|
|
CategoryType["XiAn"] = "XiAn";
|
|
})(CategoryType || (CategoryType = {}));
|
|
const BeiJingConsts = {
|
|
width: 90,
|
|
height: 20,
|
|
lineWidth: 3,
|
|
noTrainStop: '0xffffff',
|
|
trainStop: '0xfbff00',
|
|
trainJump: '0xC0C0FE',
|
|
};
|
|
const XiAnConsts = {
|
|
width: 90,
|
|
height: 20,
|
|
lineWidth: 3,
|
|
noTrainStop: '0x7F7F7F',
|
|
trainStop: '0xfbff00',
|
|
trainJump: '0xC0C0FE',
|
|
doorGraphic: {
|
|
doorOpenSpacing: 15,
|
|
doorGreen: '0x00FF00',
|
|
doorRed: '0xff0000',
|
|
doorBlue: '0x3149c3',
|
|
doorPlatformSpacing: 10,
|
|
},
|
|
codeGraphic: {
|
|
circleRadius: 1,
|
|
besideSpacing: 10,
|
|
besideFontSize: 12,
|
|
whiteNumbers: '0xffffff',
|
|
whiteCircle: '0xffffff',
|
|
HCharYellow: '0xfbff00',
|
|
HCharWhite: '0xffffff',
|
|
HCharRed: '0xff0000',
|
|
},
|
|
lozengeGraphic: {
|
|
lozengeRed: '0xff0000',
|
|
doorPlatformSpacing: 10,
|
|
},
|
|
};
|
|
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 = {}));
|
|
|
|
export { BeiJingConsts, CategoryType, XiAnConsts, platformConstsMap };
|