mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
A native save was pretty-printed when the document had at most 2,000 layers and objects and its compact JSON was at most 1 MiB. Pretty printing puts every coordinate on its own indented line, so traced art with few paths and many anchors could pass that check and be written at about five times the size of its compact JSON. The 1 MiB limit now applies to the pretty-printed document, indented as the file holds it and in the form the save writes: version 1 anchors, and placed documents expanded for older versions or Include Linked Files. Documents whose pretty-printed JSON is over 1 MiB are saved as compact JSON, even when their compact JSON is under it. The 2,000-object rule and compressed saves are unchanged. docs/mcp.md describes the rule.