31 lines
834 B
TypeScript
31 lines
834 B
TypeScript
|
import { GraphicData, GraphicState } from "jl-graphic";
|
||
|
export declare enum CategoryType {
|
||
|
JK = "JK",// 交控(11)
|
||
|
TH = "TH",// 通号(12)
|
||
|
ZDWX = "ZDWX"
|
||
|
}
|
||
|
export interface PlatformConstsConfig {
|
||
|
width: number;
|
||
|
height: number;
|
||
|
lineWidth: number;
|
||
|
rectColor: string;
|
||
|
doorGraphic?: DoorConstsConfig;
|
||
|
}
|
||
|
export interface DoorConstsConfig {
|
||
|
doorOpenSpacing: number;
|
||
|
doorGreen: string;
|
||
|
}
|
||
|
export declare const platformConstsMap: Map<CategoryType, PlatformConstsConfig>;
|
||
|
export interface IPlatformData extends GraphicData {
|
||
|
code: string;
|
||
|
refStation: string;
|
||
|
refSection: string;
|
||
|
refEsbRelayCode?: string;
|
||
|
clone(): IPlatformData;
|
||
|
copyFrom(data: IPlatformData): void;
|
||
|
eq(other: IPlatformData): boolean;
|
||
|
}
|
||
|
export interface IPlatformState extends GraphicState {
|
||
|
id?: number;
|
||
|
}
|