mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 19:12:46 +00:00
A path whose stroke has a gradient along or across it kept its slices under the node's address, so every nudge made the slices again for the whole path, although its stroke outline was already reused. The renderer now keeps the key of a stroke's latest slices under the object's id, the stroke's place and the tolerance level, and when the object has only moved (same stroke and gradient, same fill rule, anchors moved by one offset) it draws those slices moved by the offset, translating only the slices that reach the piece being clipped. Scale, rotate, an anchor edit or a change to the stroke or its gradient makes the slices again. The pixels are the same.