mirror of
https://github.com/storytold/cadcraft.git
synced 2026-10-24 10:56:51 -06:00
* Bound block expansion in drawing and extents (fixes #255) MAX_BLOCK_DEPTH bounds only the depth of nested block references, so a small DXF with a self-referencing block, blocks that each insert the next several times, or one large MINSERT expanded to billions of copies and hung the app (drawing, PNG/SVG/PDF export, extents, saving). - render: a per-display-list budget (MAX_BLOCK_EXPANSION, 2 million block copies and entities drawn inside blocks); past it the remaining block contents are not drawn. - doc: entity_bounds computes each block's content bounds once per call and reuses them for every further reference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Move Builder::expand below the drawing primitives Pure code motion so this branch merges cleanly with fix/272-aci7-only-flips (#272), which changes the Builder::polyline signature next to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>