mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-29 01:34:37 +01:00
Follows the page-only scan of the retained canvas: - Pattern sources come from every paint a layer draws with: its fills and strokes, and also its vector regions' own fills and its text runs' own fills. Before, the scan read only fills and strokes, so an edit to the source of a region's or a run's pattern left the canvas stale unless that source also filled an ordinary layer somewhere in the file. - A layer inside pattern sources is walked once, so a real tree stays within the walk's budget of three visits a layer. - A child list that repeats (a hostile file) runs out the budget; the scan then counts every layer of the file, as it did before the page scan, instead of what it had reached. New tests: glass and a small blur on the page with a wider blur on another page (full renders, a pan, an edit and band-by-band renders against render_view), a looping child list over blurs, and a vector region filled with a pattern from another page. Each fails with its part of this change taken out. The explanations of render_part, render_bands, render_columns and band_overlap now sit on the functions the canvas calls. large_doc_digests prints the same digests as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>