99 lines
2.7 KiB
TypeScript
99 lines
2.7 KiB
TypeScript
|
import { GraphicData } from 'jl-graphic';
|
||
|
import { CategoryType } from '../Platform/PlatformConfig';
|
||
|
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[];
|
||
|
inArrowFillColor?: string;
|
||
|
}
|
||
|
export interface ConstrolItemConfig {
|
||
|
codeText: string;
|
||
|
circleFillColor: string;
|
||
|
codeGraphFillColor: 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;
|
||
|
inArrowFillColor: string;
|
||
|
constrolConfig: {
|
||
|
codeText: string;
|
||
|
circleFillColor: string;
|
||
|
codeGraphFillColor: 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;
|
||
|
kilometerSystem: KilometerSystem;
|
||
|
hasControl: boolean;
|
||
|
concentrationStations: boolean;
|
||
|
name: string;
|
||
|
manageStations: number[];
|
||
|
depots: boolean;
|
||
|
clone(): IStationData;
|
||
|
copyFrom(data: IStationData): void;
|
||
|
eq(other: IStationData): boolean;
|
||
|
}
|
||
|
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
|
||
|
}
|