mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 22:33:08 +00:00
Drawing or exporting a symbol instance looked its symbol up by scanning the document's symbol list, so a document with many instances and many symbols spent most of a frame or an export on name comparisons. The renderer, the SVG and PDF writers and the export walks now find symbols through SymbolBoxes::symbol, which builds the name index once per frame, export or walk and returns the first symbol of a name as before. - Renderer: plain instances, inline graphics, instances with object effects (their art and the symbol budget) and the effect bounds. - SVG export: instance art, symbol defs and their reuse check, and the paint reach of filter regions. - PDF export: instance art, inline graphics and the brush search of knockout masks. - Export warnings and artboard crops measured what each object paints with new symbol boxes per object, which built the name index again for every instance. painted_bounds_with and drawn_outline_with take the boxes once; Object › Rasterize's clipping mask uses them too.