From e301c6868747c83e8c3dbf74435674dbfd20da44 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Mon, 18 Sep 2023 15:14:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E5=BD=A2=E4=BA=A4=E4=BA=92=E6=8F=92?= =?UTF-8?q?=E4=BB=B6app=E7=B1=BB=E5=9E=8B=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jlgraphic/plugins/InteractionPlugin.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/jlgraphic/plugins/InteractionPlugin.ts b/src/jlgraphic/plugins/InteractionPlugin.ts index 080f879..23e2210 100644 --- a/src/jlgraphic/plugins/InteractionPlugin.ts +++ b/src/jlgraphic/plugins/InteractionPlugin.ts @@ -4,11 +4,7 @@ import { FederatedPointerEvent, Point, } from 'pixi.js'; -import { - IGraphicApp, - IGraphicAppConfig, - IGraphicScene, -} from '../app/JlGraphicApp'; +import { IGraphicAppConfig, IGraphicScene } from '../app/JlGraphicApp'; import { JlGraphic } from '../core/JlGraphic'; export enum InteractionPluginType { @@ -417,10 +413,10 @@ export abstract class GraphicInteractionPlugin implements InteractionPlugin { readonly _type = InteractionPluginType.Graphic; - app: IGraphicApp; + app: IGraphicScene; name: string; // 唯一标识 _pause: boolean; - constructor(name: string, app: IGraphicApp) { + constructor(name: string, app: IGraphicScene) { this.app = app; this.name = name; this._pause = true;