rt-graphic-component/components/Station/JlStation.d.ts

31 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-01-02 14:36:10 +08:00
import { Container, Point } from 'pixi.js';
import { JlGraphic, VectorText } from 'jl-graphic';
import { ConstrolConstsConfig, ConstrolItemConfig, IStationData, StationConstsConfig } from './StationConfig';
import { CategoryType } from '../Platform/PlatformConfig';
declare class constrolGraphic extends Container {
categoryType: CategoryType;
constrolConfig?: ConstrolItemConfig[];
stateArrowFillColor?: string;
constructor(categoryType: CategoryType);
draw(stationConsts: StationConstsConfig): void;
drawCircleCode(constrolConsts: ConstrolConstsConfig, code: string, circleFillColor: string, codeGraphFillColor: string, pos: {
circlePs: Point;
codeGraphPs: Point;
}): void;
clear(): void;
}
export declare class JlStation extends JlGraphic {
static Type: string;
private categoryType;
stationConsts: StationConstsConfig;
codeGraph: VectorText;
kilometerGraph: VectorText;
controlGraphic?: constrolGraphic;
_ipRtuStusDown: boolean;
constructor(categoryType: CategoryType);
get datas(): IStationData;
get code(): string;
doRepaint(): void;
}
export {};