mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 10:17:02 -06:00
The Shape Builder, Live Paint Bucket and Live Paint Selection keep the selection's region map between pointer events, keyed on the document's address and the selected ids. Every edit replaces the document, and after an undo followed by an edit a later document can be allocated at the address of the one the map was built from. The key then matched a map of an earlier revision, so a drag across the art merged nothing and a Live Paint Bucket click filled nothing. The key now also holds the tool context's revision, which moves with every edit, undo and selection change.