96 lines
2.3 KiB
TypeScript
96 lines
2.3 KiB
TypeScript
import { GraphicData } from 'jl-graphic';
|
|
export declare enum CategoryType {
|
|
BeiJing = "BeiJing",//北京
|
|
XiAn = "XiAn"
|
|
}
|
|
export interface PlatformConstsConfig {
|
|
width: number;
|
|
height: number;
|
|
lineWidth: number;
|
|
noTrainStop: string;
|
|
trainStop: string;
|
|
trainJump: string;
|
|
doorGraphic?: DoorConstsConfig;
|
|
codeGraphic?: CodeConstsConfig;
|
|
lozengeGraphic?: LozengeConstsConfig;
|
|
}
|
|
export interface DoorConstsConfig {
|
|
doorGreen: string;
|
|
doorRed: string;
|
|
doorBlue: string;
|
|
doorOpenSpacing: number;
|
|
doorPlatformSpacing: number;
|
|
}
|
|
export interface CodeConstsConfig {
|
|
besideSpacing: number;
|
|
besideFontSize: number;
|
|
whiteNumbers: string;
|
|
whiteCircle: string;
|
|
circleRadius: number;
|
|
HCharYellow: string;
|
|
HCharWhite: string;
|
|
HCharRed: string;
|
|
}
|
|
export interface LozengeConstsConfig {
|
|
lozengeRed: string;
|
|
doorPlatformSpacing: number;
|
|
}
|
|
export declare const BeiJingConsts: {
|
|
width: number;
|
|
height: number;
|
|
lineWidth: number;
|
|
noTrainStop: string;
|
|
trainStop: string;
|
|
trainJump: string;
|
|
};
|
|
export declare const XiAnConsts: {
|
|
width: number;
|
|
height: number;
|
|
lineWidth: number;
|
|
noTrainStop: string;
|
|
trainStop: string;
|
|
trainJump: string;
|
|
doorGraphic: {
|
|
doorOpenSpacing: number;
|
|
doorGreen: string;
|
|
doorRed: string;
|
|
doorBlue: string;
|
|
doorPlatformSpacing: number;
|
|
};
|
|
codeGraphic: {
|
|
circleRadius: number;
|
|
besideSpacing: number;
|
|
besideFontSize: number;
|
|
whiteNumbers: string;
|
|
whiteCircle: string;
|
|
HCharYellow: string;
|
|
HCharWhite: string;
|
|
HCharRed: string;
|
|
};
|
|
lozengeGraphic: {
|
|
lozengeRed: string;
|
|
doorPlatformSpacing: number;
|
|
};
|
|
};
|
|
export declare const platformConstsMap: Map<CategoryType, PlatformConstsConfig>;
|
|
declare enum TypeOfPlatform {
|
|
Unknown = 0,
|
|
up = 1,
|
|
down = 2
|
|
}
|
|
export interface IPlatformData extends GraphicData {
|
|
code: string;
|
|
hasdoor?: boolean;
|
|
direction?: string;
|
|
up?: boolean;
|
|
type?: TypeOfPlatform;
|
|
centralizedStation?: number;
|
|
refStation: number;
|
|
refSection: number;
|
|
refEsbRelayCode?: string;
|
|
clone(): IPlatformData;
|
|
copyFrom(data: IPlatformData): void;
|
|
eq(other: IPlatformData): boolean;
|
|
}
|
|
export {};
|