From 2a58dbfc297b206142a10d9d517440680399aa34 Mon Sep 17 00:00:00 2001 From: walker Date: Tue, 23 May 2023 13:04:14 +0800 Subject: [PATCH] =?UTF-8?q?bugfix-=E5=A4=8D=E5=88=B6=E6=8F=92=E4=BB=B6clon?= =?UTF-8?q?e=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jlgraphic/core/JlGraphic.ts | 1 - src/jlgraphic/plugins/CopyPlugin.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jlgraphic/core/JlGraphic.ts b/src/jlgraphic/core/JlGraphic.ts index 0888f2c..640b6fd 100644 --- a/src/jlgraphic/core/JlGraphic.ts +++ b/src/jlgraphic/core/JlGraphic.ts @@ -959,7 +959,6 @@ export abstract class JlGraphicTemplate { g.loadState(state); } g.id = GraphicIdGenerator.next(); - g.repaint(); return g; } } diff --git a/src/jlgraphic/plugins/CopyPlugin.ts b/src/jlgraphic/plugins/CopyPlugin.ts index b007944..2cbc71f 100644 --- a/src/jlgraphic/plugins/CopyPlugin.ts +++ b/src/jlgraphic/plugins/CopyPlugin.ts @@ -71,6 +71,7 @@ export class GraphicCopyPlugin { this.copys.push(clone); this.container.position.set(0, 0); this.container.addChild(clone); + clone.repaint(); }); this.app.canvas.on('mousemove', this.onPointerMove, this); this.app.canvas.on('mouseup', this.onFinish, this);