mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 12:21:54 +00:00
The answer whether Fit to Artwork Bounds has art to fit moves from a function-local thread_local to DocState, beside any_empty_artboards, and drops with the document. It is kept for that version of the document (held weakly, as any_empty_artboards holds its own) and the artboards asked about, and measured again when the installed plug-ins, whose effects draw art, or the installed fonts, which set type drawn by its effects' art, change: their generations are an explicit input of the measure. A change of the selection or the view keeps it. The test counts the measures, as the Delete Empty Artboards check's does: a later frame, select.set and a view change keep the answer; an edit, other artboards, and each generation measure again. Taking any part out of the key fails it.