Skip to content

Commit

Permalink
πŸ› Remove orginial elements after staff rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Jun 14, 2023
1 parent 9462da1 commit 9cade63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/Resize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 9cade63

Please sign in to comment.