rt-graphic-component/components/packages/Platform/common/PlatformDrawAssistant.d.ts
joylink_zhaoerwei 849c7ffb62 测试
2024-01-12 16:43:07 +08:00

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