Control bar: Hide Shape Widgets hides the selected live shapes' widgets

With the Rectangle, Rounded Rectangle, Ellipse, Polygon or Star tool, the
Control bar starts the tool's options with a Hide Shape Widgets button,
which reads Show Shape Widgets while the widgets are hidden
(`view.shapeWidgets {on?}`). Hidden, a selected live rectangle's or
polygon's corner widgets, a live ellipse's pie widgets and a live
polygon's side widget are not drawn, and the Selection tool and the shape
tools do not answer a press, a double-click or the cursor on them. The
bounding box and its handles, the center point and Direct Selection's
corner widgets (View › Hide Corner Widget) stay as they are.

The setting is on by default, saved with the interface state and kept
across tool switches; it adds no undo step. Its scope beyond the shape
tools, its default and what it leaves shown are VectorCraft's own rules.

The help page describes the button:
https://helpx.adobe.com/illustrator/using/live-shapes.html
This commit is contained in:
dotCooCoo
2026-11-16 15:45:34 -08:00
parent 4e3175bbbf
commit 0904472ffc
51 changed files with 389 additions and 16 deletions
+7
View File
@@ -6398,6 +6398,13 @@ outlining in red those that reach their limit; the Selection tool shows the widg
the Direct Selection tool those of any path. 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`).
`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
and those shape tools: hidden widgets are not drawn, and those tools do not answer a press, a double-click or the cursor
on them. `on` sets the state and is an error when it is not `true` or `false`; without it the command toggles. The
reply is the new state (`true` when shown, the default). The bounding box, the center point and Direct Selection's
corner widgets, which follow `view.cornerWidget` alone, stay as they are, and no undo step is added.
```json
{"name":"run_command","arguments":{"command":"object.setLiveShape","params":{"id":12,"corners":[1],"radius":16}}}