mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-08 09:31:03 +00:00
A save with `precision` rounded only the native document, and drew the embedded preview and the `pdfCompatible` PDF from the exact document. An app reading the PDF showed paths up to 0.5 pt away from what VectorCraft reopens at `precision: 0`. When `precision` is set, the preview and the PDF are now drawn from a copy of the document rounded as the file holds it. For an older version, placed documents in that copy become groups of their art first, as the file stores them, so their rounded art shows too. Tests: a save at precision 0 puts the path in the embedded PDF on the rounded coordinates, and its preview matches the one drawn from the saved document; the same for a version 3 save of a placed document.