rt-graphic-component/components/packages/Station/StationDrawAssistant.d.ts
joylink_zhaoerwei 352025daf8 计轴
2024-01-04 10:40:55 +08:00

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;
}