mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 13:08:32 +00:00
select.anchorsMany, which the Direct Selection and Group Selection marquees, the Lasso and Smart Pen send, checked and changed membership through Selection::contains, add and remove for each item, each a scan of the selected objects. It now keeps the selected objects in a map while the items run and writes them back once. The objects, their order, the anchors, segments, key, key anchor and the other selection fields come out as before, repeated ids and ids deselected and selected again included. Tests compare the result with the item-by-item loop for every mode, four starting selections and fifteen item lists, and bound the passes over the selected objects. An ignored benchmark times both loops on 2,000, 20,000 and 50,000 rectangles.