mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 06:31:41 +00:00
Deleting ruler guides and moving or scaling an artboard's guides asked each layer whether its whole subtree held a matching guide, then asked every sublayer the same question again on the way down. A layer nested N deep was scanned N times, so a chain of N layers cost N(N+1)/2 layer scans. One read walk now records which children match and which sublayers hold a match, and the edit visits and copies only those layers. The guides removed, the count returned, the selection, the order the guides are changed in and the sharing of untouched layers are the same as before. The same walk replaces the repeated subtree scans in the other guide edits in this file: - tidying the ruler guides of an opened file (guides below art, in objects, in opacity-mask art, in symbols and patterns) - saving the guides as a list - removing an editing layer while keeping its guides