mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 03:08:00 +00:00
Besides the reader of its layers, a file whose layers come from its PDF part is read again over all of its data for its artboards (once more for the page scale), its variable library, its swatches, brushes, graphic styles and symbols. Each of those readers started with every envelope check (`MAX_CHECKED`) and every aligned-dash check (`MAX_DASH_CHECKS`) an import has, so such a file could draw several times the strokes the limit allows. - The artboard and variable-library readers start with no checks (`reader_aside`): neither depends on how a stroke or an envelope draws. - The swatch, brush, style and symbol readers, which need only what comes before the first layer, make no more checks once they reach it (`Reader::defs_only`). What they read is unchanged in files that write their definitions before their layers, as saved files do (symbols after the first layer aren't read at all). A pattern tile or brush art defined after the first layer is still read, without checks: it draws the same, and keeps its drawn art where it could have come in live. Definitions read before the layers (pattern tiles, brush art, symbols) are still checked by each of those readers within the limit. Test `the_reads_apart_from_the_layers_check_no_aligned_dashes`, which counts the checks made (`DASH_CHECKS_MADE`, in tests only). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>