def outline.seam

gralha-svg-render@0.1.0.1 · svg.bend:1757

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base

1757# The dashes of a closed subpath crossing the seam merge into one polyline:
1758# the last run's points followed by the first run's, minus the shared point.
1759def outline.seam(+xs: List<&2, Segment>, +runs: List<&2, DashRun>, +total: F32, +r: F32, +js: Joins, +scale: F32, acc: List<&2, Edge>) -> List<&2, Edge>:
1760  +s = dash.last.start(runs, 0.0)
1761  +e = dash.first.end(runs)
1762  outline.runs(dash.drop.last(dash.drop.first(runs)), xs, r, js, scale,
1763    outline.open(points.append(dash.points(xs, s, total), dash.points.tail(xs, 0.0, e)), r, js, scale, acc))

Uses (15)

Used by (1)