2023-12-25 13:25:01 +08:00
|
|
|
import { GraphicData, GraphicState } from "jl-graphic";
|
|
|
|
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-25 17:20:03 +08:00
|
|
|
grey: string;
|
|
|
|
yellow: string;
|
|
|
|
blue: 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;
|
|
|
|
blueShowColor: string;
|
|
|
|
doorPlatformSpacing: number;
|
|
|
|
}
|
|
|
|
export interface CodeConstsConfig {
|
|
|
|
circleRadius: number;
|
|
|
|
besideSpacing: number;
|
|
|
|
besideFontSize: number;
|
|
|
|
whiteNumbers: string;
|
|
|
|
whiteCircle: string;
|
|
|
|
HCharYellow: string;
|
|
|
|
HCharWhite: string;
|
|
|
|
HCharRed: string;
|
|
|
|
}
|
|
|
|
export interface LozengeConstsConfig {
|
|
|
|
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-25 13:25:01 +08:00
|
|
|
refStation: string;
|
|
|
|
refSection: string;
|
|
|
|
refEsbRelayCode?: string;
|
|
|
|
clone(): IPlatformData;
|
|
|
|
copyFrom(data: IPlatformData): void;
|
|
|
|
eq(other: IPlatformData): boolean;
|
|
|
|
}
|
2023-12-25 17:20:03 +08:00
|
|
|
export interface IXiAnPlatformState extends GraphicState {
|
|
|
|
get emergstop(): boolean;
|
|
|
|
set emergstop(v: boolean);
|
|
|
|
get trainberth(): boolean;
|
|
|
|
set trainberth(v: boolean);
|
|
|
|
get close(): boolean;
|
|
|
|
set close(v: boolean);
|
|
|
|
get upHold(): boolean;
|
|
|
|
set upHold(v: boolean);
|
|
|
|
get downHold(): boolean;
|
|
|
|
set downHold(v: boolean);
|
|
|
|
get upOccHold(): boolean;
|
|
|
|
set upOccHold(v: boolean);
|
|
|
|
get downOccHold(): boolean;
|
|
|
|
set downOccHold(v: boolean);
|
|
|
|
get psdOpen(): boolean;
|
|
|
|
set psdOpen(v: boolean);
|
|
|
|
get psdCut(): boolean;
|
|
|
|
set psdCut(v: boolean);
|
|
|
|
get upSkipstop(): boolean;
|
|
|
|
set upSkipstop(v: boolean);
|
|
|
|
get downSkipstop(): boolean;
|
|
|
|
set downSkipstop(v: boolean);
|
|
|
|
get upTrainSkipstop(): boolean;
|
|
|
|
set upTrainSkipstop(v: boolean);
|
|
|
|
get downTrainSkipstop(): boolean;
|
|
|
|
set downTrainSkipstop(v: boolean);
|
|
|
|
get nextSectionRunTime(): number;
|
|
|
|
set nextSectionRunTime(v: number);
|
|
|
|
get nextSectionRunLevel(): number;
|
|
|
|
set nextSectionRunLevel(v: number);
|
|
|
|
get stopTime(): number;
|
|
|
|
set stopTime(v: number);
|
|
|
|
get rtuId(): number;
|
|
|
|
set rtuId(v: number);
|
|
|
|
}
|
|
|
|
export interface IBriJingPlatformState extends GraphicState {
|
2023-12-25 13:25:01 +08:00
|
|
|
id?: number;
|
|
|
|
}
|
2023-12-25 17:20:03 +08:00
|
|
|
export {};
|