91 lines
2.5 KiB
JavaScript
91 lines
2.5 KiB
JavaScript
import { CategoryType } from '../Platform/PlatformConfig.js';
|
|
|
|
const BeiJingConsts = {
|
|
codeColor: '0xF48815',
|
|
codeFontSize: 22,
|
|
kilometerCodeColor: '0xFFFFFF',
|
|
kilometerCodeFontSize: 8,
|
|
kilometerCodeOffsetY: -25,
|
|
};
|
|
const XiAnConsts = {
|
|
codeColor: '0xF48815',
|
|
codeFontSize: 22,
|
|
kilometerCodeColor: '0xFFFFFF',
|
|
kilometerCodeFontSize: 8,
|
|
kilometerCodeOffsetY: -25,
|
|
constrolGraphic: {
|
|
radius: 3,
|
|
borderWidth: 1,
|
|
codeControlFontSize: 12,
|
|
codeOffsetY: 30,
|
|
circleOffsetY: 20,
|
|
circleBetweenOffset: 40,
|
|
inArrowFillColor: '0x808080',
|
|
constrolConfig: [
|
|
{
|
|
codeText: '中控',
|
|
circleFillColor: '0x08F80D',
|
|
codeGraphFillColor: '0x08F80D',
|
|
},
|
|
{
|
|
codeText: '站控',
|
|
circleFillColor: '0x808080',
|
|
codeGraphFillColor: '0xFFFFFF',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
const otherConsts = {
|
|
codeColor: '0xF48815',
|
|
codeFontSize: 22,
|
|
kilometerCodeColor: '0xFFFFFF',
|
|
kilometerCodeFontSize: 8,
|
|
kilometerCodeOffsetY: -25,
|
|
constrolGraphic: {
|
|
radius: 3,
|
|
borderWidth: 1,
|
|
codeControlFontSize: 12,
|
|
codeOffsetY: 30,
|
|
circleOffsetY: 20,
|
|
circleBetweenOffset: 40,
|
|
constrolConfig: [
|
|
{
|
|
codeText: '紧急站控',
|
|
circleFillColor: '0x808080',
|
|
codeGraphFillColor: '0xFFFFFF',
|
|
},
|
|
{
|
|
codeText: '中控',
|
|
circleFillColor: '0x08F80D',
|
|
codeGraphFillColor: '0x08F80D',
|
|
},
|
|
{
|
|
codeText: '站控',
|
|
circleFillColor: '0x808080',
|
|
codeGraphFillColor: '0xFFFFFF',
|
|
},
|
|
{
|
|
codeText: '联锁控',
|
|
circleFillColor: '0x808080',
|
|
codeGraphFillColor: '0xFFFFFF',
|
|
},
|
|
{
|
|
codeText: '按图折返',
|
|
circleFillColor: '0xFFFA0C',
|
|
codeGraphFillColor: '0xFFFA0C',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
const stationConstsMap = new Map([
|
|
[CategoryType.BeiJing, BeiJingConsts],
|
|
[CategoryType.XiAn, XiAnConsts],
|
|
]);
|
|
var Direction;
|
|
(function (Direction) {
|
|
Direction[Direction["LEFT"] = 0] = "LEFT";
|
|
Direction[Direction["RIGHT"] = 1] = "RIGHT";
|
|
})(Direction || (Direction = {}));
|
|
|
|
export { BeiJingConsts, Direction, XiAnConsts, otherConsts, stationConstsMap };
|