14 lines
613 B
TypeScript
14 lines
613 B
TypeScript
import { FederatedPointerEvent, Point } from 'pixi.js';
|
|
import { GraphicDrawAssistant, IDrawApp } from 'jl-graphic';
|
|
import { JlPlatform } from './JlPlatform';
|
|
import { PlatformTemplate } from './PlatformTemplate';
|
|
import { IPlatformData } from './PlatformConfig';
|
|
export declare class PlatformDraw extends GraphicDrawAssistant<PlatformTemplate, IPlatformData> {
|
|
platformGraphic: JlPlatform;
|
|
constructor(app: IDrawApp, template: PlatformTemplate, icon: string);
|
|
bind(): void;
|
|
onLeftDown(e: FederatedPointerEvent): void;
|
|
redraw(p: Point): void;
|
|
prepareData(data: IPlatformData): boolean;
|
|
}
|