mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 16:42:52 +00:00
The line that a round Eraser, the Knife, the Path Eraser, the Pencil with Live preview off or a smoothing drag shows was one path of every point, copied, flattened and tessellated again each frame, and with the Eraser's Size following the pen each step was a new path each frame. - A drag of more than 64 segments now shows in pieces of 64 segments, each also holding the next piece's first segment so wide lines join as one. Pieces the drag has passed come back as the same shared path, and the canvas reuses their triangles while the view stays the same; only the last piece is built again, and only when it changed. - With Size following the pen, each step is kept as its own shared path and only a new or moved step is built. - The Knife's pieces carry where the dash pattern starts, so the dashes run on across pieces (Overlay::SharedPath gains `dash`). - The smoothing band is shared until it changes. The canvas still copies the kept triangles into each frame. Release commands (path.eraseRegion, path.knife, path.eraseSegments, path.freehand) are unchanged.