Commit Graph
5 Commits
Author SHA1 Message Date
dotCooCoo 0ae1949e68 Shapes: document that a given center moves the shape in addon.pathtools.shape.set
The params text and docs/mcp.md said the center stays when no reference point applies. With a center, the shape's center moves to the given point; the docs now name that case.
2026-11-26 00:32:00 -08:00
dotCooCoo cee4f8d276 Parametric Shape: measure the box the same way before and after a W or H edit
With `reference`, `addon.pathtools.shape.set` measured the shape's box
before the edit with Use Preview Bounds and fell back to the geometric
box when the preview gave none, and it chose again after the edit. When
the preview gave a box before the edit and none after it, or the
reverse, the shape moved by the difference between two different boxes. The measure used before the
edit is now used after it.

The params text and docs/mcp.md now say that snapping to the pixel grid
and an attachment to a path apply after the reference point is kept,
as they do for the Transform panel's W and H. The docs line in
docs/target-app-parity.md changes only the lines it needs.
2026-11-21 02:04:10 -08:00
dotCooCoo 4cb3b0d5b6 Parametric Shape: W and H keep the shared reference point in place
The Parametric Shape panel's W and H fields resized a shape about its
center whatever point the reference point locator showed, while the
Transform panel and the Control bar keep that point in place.

- addon.pathtools.shape.set takes `reference` (0 to 8; any other value
  is an error). With it and no `center`, the point of the bounding box
  that object.setBounds measures (rotated with rotated objects, and as
  drawn with Use Preview Bounds) keeps its place. Without it the center
  stays, as before.
- The panel's W and H pass the locator's point.
- A shape set by id and not selected that the edit would take past the
  coordinate limit is refused, as object.setLiveShape refuses one.
- The result's `shape` is read back after the edit, and is null when
  snapping to the pixel grid left a plain path.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-21 00:21:10 -08:00
HassanKhan b3860bf7d0 Commands: every angle and rotation param says which way it turns (#6340)
The params docs now state the direction (and the zero) of each angle or
rotation a command takes; behaviour is unchanged. Shape creation, text.create,
the grids, add-on shapes, saved views, Liquify, Puppet Warp pins, Mirror and
Radial Repeat and Vector Halftone turn clockwise; text character rotation,
gradients, the eraser tip and print screen angles turn counter-clockwise.

view.saved.new's rotation note changes its schema, so the API level goes to 3.

A test walks every command's params doc and fails when a param named like an
angle or rotation doesn't say clockwise or counter-clockwise.
2026-11-11 21:40:27 +05:00
bflatastic 27ed249b1f Add-ons: Parametric Shape Tool — re-editable stars, polygons, rings, arrows, gears and more
Path Precision Tools gains the Parametric Shape Tool: ten kinds of shape
(rectangle, ellipse, polygon, star, ring, arrow, cross, heart, gear,
speech bubble) that stay editable as numbers.

- Geometry in vectorcraft_pathops::addons::pathtools::shapes: each kind's
  outline, corner rounding limited to the middle of a side, a fingerprint
  of the outline, recovery of centre, size and rotation after a move,
  turn or scale, and recognition of plain rectangles, ellipses and
  regular polygons.
- The tool (parametricShape, All Tools drawer and Object › Plug-ins ›
  Path Precision Tools only, no shortcut): drag from the centre (Shift:
  45° steps), arrow keys change the count and values while dragging,
  handles edit a selected shape, double-click places one.
- Commands addon.pathtools.shape.create / .set / .convert, one undo step
  each; params checked (counts 3..1000, sizes up to 16384 pt).
- A shape keeps its numbers in one object-data entry (vc-pathtools-shape)
  that SVG export already leaves out; anchor edits make it a plain path.
- Parametric Shape panel, cursor stand-in, catalog rows in all 25
  languages, docs and tests.
2026-10-30 20:55:14 +07:00