rt-graphic-component/components/packages/Platform/PlatformConfig.js
2024-01-10 15:46:15 +08:00

52 lines
1.3 KiB
JavaScript

import { StyleType } from '../../common/common.js';
const GPConsts = {
width: 90,
height: 20,
lineWidth: 3,
noTrainStop: '0xffffff',
trainStop: '0xfbff00',
trainJump: '0xC0C0FE',
};
const THConsts = {
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([
[StyleType.GP, GPConsts],
[StyleType.TH, THConsts],
]);
var TypeOfPlatform;
(function (TypeOfPlatform) {
TypeOfPlatform[TypeOfPlatform["Unknown"] = 0] = "Unknown";
TypeOfPlatform[TypeOfPlatform["up"] = 1] = "up";
TypeOfPlatform[TypeOfPlatform["down"] = 2] = "down";
})(TypeOfPlatform || (TypeOfPlatform = {}));
export { GPConsts, THConsts, platformConstsMap };