rt-graphic-component/components/packages/Platform/common/PlatformConfig.d.ts
joylink_zhaoerwei 3c81ca8a83 重新打包
2024-01-11 13:38:16 +08:00

91 lines
2.1 KiB
TypeScript

import { GraphicData } from 'jl-graphic';
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 GPConsts: {
width: number;
height: number;
lineWidth: number;
noTrainStop: string;
trainStop: string;
trainJump: string;
};
export declare const THConsts: {
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;
};
};
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 {};