Skip to content

Commit

Permalink
Fix: SVG Mask transformation when zooming
Browse files Browse the repository at this point in the history
  • Loading branch information
SonarSonic committed Oct 21, 2024
1 parent 9746212 commit 7c240bb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ public void onShapeDisplayed(JFXShape shape){
if(getViewport() == null){
return;
}
shape.jfxShape.getTransforms().add(getViewport().getCanvasToViewportTransform());
shape.jfxShape.getTransforms().add(getMaskToCanvasTransform());
shape.jfxShape.getTransforms().add(0, getViewport().getCanvasToViewportTransform());
shape.jfxShape.getTransforms().add(1, getMaskToCanvasTransform());
shape.jfxShape.strokeWidthProperty().bind(strokeWidthProperty());
shape.jfxShape.setOnMousePressed(e -> onSelectableClicked(shape, e));
getViewport().getBackgroundOverlayNodes().add(shape.jfxShape);
Expand Down

0 comments on commit 7c240bb

Please sign in to comment.