mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 20:46:22 +01:00
A dashed tool overlay line was dashed over its whole screen length, so a line that runs far past the canvas at a high zoom built a dash shape for every 7 px of it, nearly all of them off screen. A line millions of pixels long built hundreds of thousands of shapes every frame. The line is now clipped to the canvas in f64 before it is dashed, with the pattern started where the whole line would have it, so the visible dashes stay where they were. A line off the canvas, or with an end at infinity, draws nothing.