97 lines
2.7 KiB
TypeScript
97 lines
2.7 KiB
TypeScript
|
import { GraphicData } from 'jl-graphic';
|
||
|
import { CategoryType } from '../Platform/PlatformConfig';
|
||
|
import { KilometerSystem } from 'src/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 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;
|
||
|
}
|