rt-graphic-component/components/Platform/PlatformConfig.d.ts

96 lines
2.3 KiB
TypeScript
Raw Normal View History

2024-01-02 14:36:10 +08:00
import { GraphicData } from 'jl-graphic';
2023-12-25 13:25:01 +08:00
export declare enum CategoryType {
2023-12-25 17:20:03 +08:00
BeiJing = "BeiJing",//北京
XiAn = "XiAn"
2023-12-25 13:25:01 +08:00
}
export interface PlatformConstsConfig {
width: number;
height: number;
lineWidth: number;
2023-12-26 10:25:57 +08:00
noTrainStop: string;
trainStop: string;
trainJump: string;
2023-12-25 13:25:01 +08:00
doorGraphic?: DoorConstsConfig;
2023-12-25 17:20:03 +08:00
codeGraphic?: CodeConstsConfig;
lozengeGraphic?: LozengeConstsConfig;
2023-12-25 13:25:01 +08:00
}
export interface DoorConstsConfig {
doorGreen: string;
2023-12-25 17:20:03 +08:00
doorRed: string;
doorBlue: string;
doorOpenSpacing: number;
doorPlatformSpacing: number;
}
export interface CodeConstsConfig {
besideSpacing: number;
besideFontSize: number;
whiteNumbers: string;
whiteCircle: string;
2024-01-02 14:36:10 +08:00
circleRadius: number;
2023-12-25 17:20:03 +08:00
HCharYellow: string;
HCharWhite: string;
HCharRed: string;
}
export interface LozengeConstsConfig {
2024-01-02 14:36:10 +08:00
lozengeRed: string;
2023-12-25 17:20:03 +08:00
doorPlatformSpacing: number;
2023-12-25 13:25:01 +08:00
}
2024-01-02 14:36:10 +08:00
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;
};
};
2023-12-25 13:25:01 +08:00
export declare const platformConstsMap: Map<CategoryType, PlatformConstsConfig>;
2023-12-25 17:20:03 +08:00
declare enum TypeOfPlatform {
Unknown = 0,
up = 1,
down = 2
}
2023-12-25 13:25:01 +08:00
export interface IPlatformData extends GraphicData {
code: string;
2023-12-25 17:20:03 +08:00
hasdoor?: boolean;
direction?: string;
up?: boolean;
type?: TypeOfPlatform;
centralizedStation?: number;
2023-12-26 11:08:51 +08:00
refStation: number;
refSection: number;
2023-12-25 13:25:01 +08:00
refEsbRelayCode?: string;
clone(): IPlatformData;
copyFrom(data: IPlatformData): void;
eq(other: IPlatformData): boolean;
}
2023-12-25 17:20:03 +08:00
export {};