graphic-pixi/lib/plugins/CopyPlugin.d.ts
2023-12-14 13:07:42 +08:00

24 lines
657 B
TypeScript

import { Container, FederatedPointerEvent, Point } from 'pixi.js';
import { IGraphicScene } from '../app';
import { JlGraphic } from '../core';
import { KeyListener } from './KeyboardPlugin';
/**
* 图形复制插件
*/
export declare class GraphicCopyPlugin {
container: Container;
scene: IGraphicScene;
keyListeners: KeyListener[];
copys: JlGraphic[];
start?: Point;
running: boolean;
moveLimit?: 'x' | 'y';
constructor(scene: IGraphicScene);
updateMoveLimit(limit?: 'x' | 'y'): void;
init(): void;
clear(): void;
onPointerMove(e: FederatedPointerEvent): void;
onFinish(): void;
cancle(): void;
}