24 lines
657 B
TypeScript
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;
|
|
}
|