2024-01-04 10:40:55 +08:00
|
|
|
import { GraphicData } from 'jl-graphic';
|
|
|
|
import { CategoryType } from '../Platform/PlatformConfig';
|
2024-01-04 15:14:25 +08:00
|
|
|
import { KilometerSystem } from 'common/common';
|
2024-01-04 10:40:55 +08:00
|
|
|
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 BeiJingConsts: {
|
|
|
|
codeColor: string;
|
|
|
|
codeFontSize: number;
|
|
|
|
kilometerCodeColor: string;
|
|
|
|
kilometerCodeFontSize: number;
|
|
|
|
kilometerCodeOffsetY: number;
|
|
|
|
};
|
|
|
|
export declare const XiAnConsts: {
|
|
|
|
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<CategoryType, 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;
|
|
|
|
}
|