rt-graphic-component/components/packages/Platform/PlatformDrawAssistant.d.ts

14 lines
613 B
TypeScript
Raw Normal View History

2024-01-04 10:40:55 +08:00
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;
}