mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 10:51:11 +01:00
Since #9972 a thin stroke along a curve is drawn as lines, and where two of those lines met at a sharp angle the stroke's own join was drawn there. Along smooth anchors that sit close together after a bend, or a curve that bends tightly, the lines turn sharply, so a miter join drew a spike past the stroke and the smooth curve showed sharp corners on the canvas. The document's anchors are unchanged; only the drawing was wrong. The stroke's join is now drawn only at the path's own corners, where two segments meet with tangents that are not in line. Where the lines a curve is drawn with turn sharply they meet with a round join, as the stroke along the curve itself is round there. Tests: a bend followed by smooth anchors 0.1 and 1 apart keeps every outline point within the stroke's width of the curve and covers it; with long handles the outline matches the curve's own outline away from its edge; 200 random cubics with a miter join keep their outline within the stroke's width of the curve.