mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 22:21:59 +00:00
The Pencil and the Paintbrush send their Fidelity in points at the current zoom, but path.freehand read at most 100 pt. At 3.13% zoom a 20 px Fidelity (639 pt) was fitted at 100 pt, the same as 3.13 px on screen, so a stroke drawn zoomed out kept far more anchors than the same stroke at 100%. - path.freehand, and brush.freehand, which runs it, take a Fidelity from MIN_FIT_TOLERANCE to MAX_FIT_TOLERANCE (100 / 0.0313 pt, the 100 px field maximum at the lowest zoom). A value outside that range is now rejected with an error instead of being read as the nearer end. The default stays 1.5 pt and path.blob keeps its 100 pt bound. - The Pencil and the Paintbrush keep the value they send within that range, so a stroke draws at any zoom. - An extending stroke still closes the path within four Fidelities of its other end, at most 400 pt, as before. It conflicts with open #7089 in crates/tools/src/draw2.rs. Docs: docs/mcp.md, docs/target-app-parity.md, path.freehand params.