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

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