Transform: a shape turn past the coordinate limit is an error

- object.setLiveShape checks every shape named in `ids` against the
  coordinate limit (±4,000,000 pt) after the edit, so a rectangle,
  ellipse or polygon that is not selected can no longer be turned
  out of range; the call is an error and changes nothing.
- LiveShape::set_shape_angle brings the angle into [0, 360) before it
  works out the turn, so a very large angle reaches the same final
  angle from any starting angle.
- The params text and docs/mcp.md say that `null` counts as an
  omitted key, that a pixel-aligned shape goes back on the pixel grid
  after the turn, and that a turn out of range is an error.
- The panel test reads the Rotate and Angle fields by name, and checks
  that the Angle field is empty for mixed angles.
This commit is contained in:
dotCooCoo
2026-11-18 18:25:27 -08:00
parent 72cf14640d
commit eb7f64d5b3
7 changed files with 77 additions and 13 deletions
+7 -4
View File
@@ -7061,11 +7061,14 @@ A live rectangle's Rectangle Angle and a live ellipse's Ellipse Angle are `recta
(https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/modify-live-shapes/live-shape-properties.html) lists
both as the shape's rotation on the canvas from 0° to 360°. The rest are VectorCraft's own rules: each selected shape
of that kind turns about its own center, keeping its size, corners and pie (an ellipse's pie turns with it), and other
objects stay as they are. The Transform and Properties panels show the angle in each shape's Properties section, blank
when the selected shapes of that kind differ. It is the shape's own angle: after Reset Bounding Box
objects stay as they are. A pixel-aligned shape then goes back on the pixel grid, as after other edits, which can move
its center or change its size. The Transform and Properties panels show the angle in each shape's Properties section,
blank when the selected shapes of that kind differ. It is the shape's own angle: after Reset Bounding Box
(`object.resetBoundingBox`) the Rotate field reads 0° while the shape angle keeps the turn. An angle that is not a
number is an error and changes nothing, and the angle the shape already has records no undo step; the same holds for
`polygonAngle`, and the Polygon Properties angle is blank, too, when the selected polygons differ.
number is an error and changes nothing (`null` counts as an omitted key), a shape that the turn would take past the
coordinate limit (±4,000,000 pt) is an error that changes nothing, whether or not it is selected, and the angle the
shape already has records no undo step; the same holds for `polygonAngle`, and the Polygon Properties angle is blank,
too, when the selected polygons differ.
```json
{"name":"run_command","arguments":{"command":"object.setLiveShape","params":{"rectangleAngle":30}}}