mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 17:46:59 +00:00
A click with the Ellipse tool opens a dialog with a new Anchors field under Height, 4 by default. With 4, OK draws the same live ellipse as before. Any other count from 2 to 1000 draws a closed plain path with that many smooth anchors spaced evenly by angle, from the left one and clockwise, with handles of 4/3*tan(theta/4) scaled along each axis and the path fitted to the typed width and height. The dialog sends the nearest whole number from 2 to 1000 (4 for an empty field or text that is not a number). The count confirmed last is kept as the Ellipse tool's anchors option, and the next Ellipse dialog opens on it. shape.ellipse takes an optional anchors param (default 4). A number that is not a whole number from 2 to 1000 gets one error naming that range, a value that is not a number gets the usual type error, and nothing is drawn. The MCP draw_shape tool lists anchors for ellipses. Docs: params text, docs/mcp.md, docs/target-app-parity.md (Shapes).