mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 10:46:46 +00:00
The drawing commands that read pen values at their points (path.freehand, brush.freehand, path.knife, path.eraseRegion, path.eraseSegments, path.smoothRegion, path.joinScrub and path.blob) now refuse a pressure outside 0 to 1, a tiltX or tiltY outside -90 to 90 and a rotation outside 0 to 360, naming the key. A tilt was kept within range and a pressure or rotation was passed on. A point array of more than six numbers is refused, naming the point, instead of having its extra entries ignored. path.blob and path.eraseRegion refuse a size outside 0.1 to 1000 pt, the range of the Blob Brush and Eraser tool options. path.blob refuses a sizeVariation outside 0 to 1000 pt in every sizeMode and with the mode left out. path.eraseRegion refuses a sizeVariation over 1000 pt in every mode with the same message, and a negative one still gives "sizeVariation must be 0 or more". Each refusal leaves the document, the selection and the undo history unchanged; null and omitted values still take the defaults. The tip variation test uses a 1000 pt tip and a 1000 pt Fixed variation, the largest values path.eraseRegion now takes. Docs: params text, docs/mcp.md, docs/target-app-parity.md.