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

31 lines
834 B
TypeScript
Raw Normal View History

2023-12-25 13:25:01 +08:00
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;
}