Merge pull request #8818 from dotCooCoo/fix/selection-widget-double-click-transform

Live Corners: a Selection tool double-click on a corner widget shows the Transform panel
This commit is contained in:
BFlat
2026-11-24 16:01:41 +07:00
committed by GitHub
10 changed files with 75 additions and 15 deletions
+6 -2
View File
@@ -7807,8 +7807,12 @@ outlining in red those that reach their limit; the Selection tool shows the widg
the Direct Selection tool those of any path. `rectanglesOnly: true` sets them on the live rectangles among the targets
alone and leaves the other objects as they are (the Rectangle Properties corner fields and menus send it with the
selection, so an action that records them acts on the rectangles selected when it plays). Several objects each with their own corners are one call:
`items: [{id, corners?}]` in place of `ids` and `corners`. Alt-clicking one cycles their kind and double-clicking one opens Corners (`ui.corners {id?, corners?}`,
dialog `corners`: `kind`, `radius`; OK runs `object.setLiveShape`).
`items: [{id, corners?}]` in place of `ids` and `corners`. Alt-clicking one cycles their kind. Double-clicking one with Direct Selection opens Corners (`ui.corners {id?, corners?}`,
dialog `corners`: `kind`, `radius`; OK runs `object.setLiveShape`). Double-clicking a selected live shape's corner
widget with the Selection tool shows and selects the Transform panel, as the Rectangle, Rounded Rectangle, Ellipse,
Polygon and Star tools do. With the headless backend, the `pointer_gesture` reply carries `{"panel": "transform"}` in its
`requests`; the desktop app runs `window.panel.activate {"panel": "transform"}` instead, and its reply has no `requests`. The tool, the selection and the document stay as they are, and
no undo step is added.
`view.shapeWidgets {on?}` (desktop app, the Hide Shape Widgets and Show Shape Widgets button in the Control bar of the
Rectangle, Rounded Rectangle, Ellipse, Polygon and Star tools) hides or shows the corner widgets of selected live
rectangles and polygons, the pie widgets of live ellipses and the side widget of a live polygon, for the Selection tool