23 lines
1.1 KiB
TypeScript
23 lines
1.1 KiB
TypeScript
import { FederatedPointerEvent, Point } from 'pixi.js';
|
|
import { GraphicDrawAssistant, GraphicInteractionPlugin, GraphicTransformEvent, IDrawApp, JlGraphic } from 'jl-graphic';
|
|
import { Transponder, TransponderTemplate } from './Transponder';
|
|
import { ITransponderData } from './TransponderConfig';
|
|
export declare class TransponderDraw extends GraphicDrawAssistant<TransponderTemplate, ITransponderData> {
|
|
TransponderGraph: Transponder;
|
|
constructor(app: IDrawApp, template: TransponderTemplate);
|
|
bind(): void;
|
|
onLeftDown(e: FederatedPointerEvent): void;
|
|
redraw(p: Point): void;
|
|
prepareData(data: ITransponderData): boolean;
|
|
}
|
|
export declare class TransponderInteraction extends GraphicInteractionPlugin<Transponder> {
|
|
static Name: string;
|
|
constructor(app: IDrawApp);
|
|
static init(app: IDrawApp): TransponderInteraction;
|
|
filter(...grahpics: JlGraphic[]): Transponder[] | undefined;
|
|
bind(g: Transponder): void;
|
|
unbind(g: Transponder): void;
|
|
transformstart(e: GraphicTransformEvent): void;
|
|
codetransformstart(e: GraphicTransformEvent): void;
|
|
}
|