From 9cade6355cdc3e98547a20d3898626a355d80ae8 Mon Sep 17 00:00:00 2001 From: Yinan Zhou Date: Wed, 14 Jun 2023 16:47:58 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Remove=20orginial=20elements=20a?= =?UTF-8?q?fter=20staff=20rotation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/Resize.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/Resize.ts b/src/utils/Resize.ts index 5972ecd14..18a065747 100644 --- a/src/utils/Resize.ts +++ b/src/utils/Resize.ts @@ -415,11 +415,11 @@ export function resize (element: SVGGraphicsElement, neonView: NeonView, dragHan await neonView.updateForCurrentPage(); } element = document.getElementById(element.id) as unknown as SVGGraphicsElement; - ulx = undefined; - uly = undefined; - lrx = undefined; - lry = undefined; + ulx = undefined, uly = undefined, lrx = undefined, lry = undefined; dy = undefined; + d3.selectAll('.resizePoint').remove(); + d3.selectAll('#resizeRect').remove(); + d3.selectAll('.rotatePoint').remove(); drawInitialRect(); selectAll([element], neonView, dragHandler); if (element.classList.contains('syl')) {