rt-graphic-component/components/packages/Platform/PlatformConfig.d.ts
2024-01-10 15:46:15 +08:00

93 lines
2.2 KiB
TypeScript

import { StyleType } from 'common/common';
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;
};
};
export declare const platformConstsMap: Map<StyleType, PlatformConstsConfig>;
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 {};