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