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

97 lines
2.7 KiB
TypeScript

import { GraphicData } from 'jl-graphic';
import { StyleType } from 'common/common';
import { KilometerSystem } from 'common/common';
export interface StationConstsConfig {
codeColor: string;
codeFontSize: number;
kilometerCodeColor: string;
kilometerCodeFontSize: number;
kilometerCodeOffsetY: number;
constrolGraphic?: ConstrolConstsConfig;
}
export interface ConstrolConstsConfig {
radius: number;
borderWidth: number;
codeControlFontSize: number;
codeOffsetY: number;
circleOffsetY: number;
circleBetweenOffset: number;
constrolConfig: ConstrolItemConfig[];
inArrowConfig?: InArrowConfig;
}
export interface ConstrolItemConfig {
codeText: string;
circleFillColor: string;
codeGraphFillColor: string;
}
export interface InArrowConfig {
inArrowFillColorGray: string;
inArrowFillColorBlue: string;
}
export declare const GPConsts: {
codeColor: string;
codeFontSize: number;
kilometerCodeColor: string;
kilometerCodeFontSize: number;
kilometerCodeOffsetY: number;
};
export declare const THConsts: {
codeColor: string;
codeFontSize: number;
kilometerCodeColor: string;
kilometerCodeFontSize: number;
kilometerCodeOffsetY: number;
constrolGraphic: {
radius: number;
borderWidth: number;
codeControlFontSize: number;
codeOffsetY: number;
circleOffsetY: number;
circleBetweenOffset: number;
constrolConfig: {
codeText: string;
circleFillColor: string;
codeGraphFillColor: string;
}[];
inArrowConfig: {
inArrowFillColorGray: string;
inArrowFillColorBlue: string;
};
};
};
export declare const otherConsts: {
codeColor: string;
codeFontSize: number;
kilometerCodeColor: string;
kilometerCodeFontSize: number;
kilometerCodeOffsetY: number;
constrolGraphic: {
radius: number;
borderWidth: number;
codeControlFontSize: number;
codeOffsetY: number;
circleOffsetY: number;
circleBetweenOffset: number;
constrolConfig: {
codeText: string;
circleFillColor: string;
codeGraphFillColor: string;
}[];
};
};
export declare const stationConstsMap: Map<StyleType, StationConstsConfig>;
export interface IStationData extends GraphicData {
code: string;
stationName?: string;
kilometerSystem: KilometerSystem;
hasControl?: boolean;
concentrationStations: boolean;
name?: string;
manageStations: number[];
depots: boolean;
refIbpMapCode?: string;
clone(): IStationData;
copyFrom(data: IStationData): void;
eq(other: IStationData): boolean;
}