mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
With Use Preview Bounds on, every hover frame's cursor and every pointer move measured the selection again, and with Smart Guides on each selected object too, evaluating their geometry effects each time. The session now keeps a PreviewMemo, which ToolContext::preview_memo passes to the tools. selection_bounds, selection_box and the object bounds that Smart Guides find centers in while hovering read it. The memo holds the measurements for one key: the document's uid and revision, the selected objects and Use Preview Bounds. A new key replaces them. VectorcraftApp::selection_box in the UI keys on the uid, the revision and Use Preview Bounds. A ToolContext without a memo measures on every call.