Round clip: true circle (Viewbox/1x1 ellipse) + grabbable corner handle (transparent source grid, non-hit-testable selection overlay); resize locks square in round mode

This commit is contained in:
2026-08-06 15:05:21 -07:00
parent b64830ed11
commit 7bc70872d9
4 changed files with 169 additions and 24 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ public partial class MainWindow : Window
if (selected is { } sel && IsDraggableSource(sel) && HitHandle(e.GetPosition(grid), sel))
{
_isResizing = true;
_resizeAspect = sel.Width / Math.Max(1, sel.Height);
_resizeAspect = sel.ClipShape == ClipShape.Round ? 1 : sel.Width / Math.Max(1, sel.Height);
grid.CaptureMouse();
e.Handled = true;
return;