Skip to content

Commit

Permalink
Merge pull request #1026 from DDMAL/staff-resize-fix
Browse files Browse the repository at this point in the history
πŸ› Remove orginial elements after staff rotation
  • Loading branch information
yinanazhou authored Jun 15, 2023
2 parents 9462da1 + 9cade63 commit ee9ab89
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 ee9ab89

Please sign in to comment.