2024-01-04 10:40:55 +08:00
|
|
|
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;
|
|
|
|
}
|
2024-01-04 10:42:05 +08:00
|
|
|
export interface KilometerSystem {
|
|
|
|
get coordinateSystem(): string;
|
|
|
|
set coordinateSystem(v: string);
|
|
|
|
get kilometer(): number;
|
|
|
|
set kilometer(v: number);
|
|
|
|
get direction(): Direction;
|
|
|
|
set direction(v: Direction);
|
|
|
|
}
|
|
|
|
export declare enum Direction {
|
|
|
|
LEFT = 0,
|
|
|
|
RIGHT = 1
|
|
|
|
}
|