23 lines
978 B
TypeScript
23 lines
978 B
TypeScript
import { FederatedPointerEvent, Point } from 'pixi.js';
|
|
import { GraphicDrawAssistant, GraphicInteractionPlugin, IDrawApp, JlGraphic } from 'jl-graphic';
|
|
import { JlStation } from './JlStation';
|
|
import { IStationData } from './StationConfig';
|
|
import { StationTemplate } from './StationTemplate';
|
|
export declare class StationDraw extends GraphicDrawAssistant<StationTemplate, IStationData> {
|
|
codeGraph: JlStation;
|
|
constructor(app: IDrawApp, template: StationTemplate, icon: string);
|
|
bind(): void;
|
|
onLeftDown(e: FederatedPointerEvent): void;
|
|
redraw(p: Point): void;
|
|
prepareData(data: IStationData): boolean;
|
|
}
|
|
export declare class StationInteraction extends GraphicInteractionPlugin<JlStation> {
|
|
static Name: string;
|
|
constructor(app: IDrawApp);
|
|
static init(app: IDrawApp): StationInteraction;
|
|
filter(...grahpics: JlGraphic[]): JlStation[] | undefined;
|
|
bind(g: JlStation): void;
|
|
unbind(g: JlStation): void;
|
|
onSelected(): void;
|
|
}
|