def outline.dashed.runs
gralha-svg-render@0.1.0.1 · svg.bend:1765
import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U
1765def outline.dashed.runs(+pts: List<&2, Point>, +closed: Bool, +r: F32, +js: Joins, +pattern: DashPattern, +scale: F32, +acc: List<&2, Edge>) -> List<&2, Edge>:
1766 +xs = segments(pts, 0.0)
1767 +total = segments.length(xs)
1768 +runs = dash.runs(pattern, total)
1769 U.branch(List<&2, Edge>, closed && dash.whole(runs, total), _ => outline.closed(pts, r, js, scale, acc),
1770 _ => U.branch(List<&2, Edge>, closed && dash.start(runs) && dash.end(runs, total) && Bool.not(dash.whole(runs, total)),
1771 _ => outline.seam(xs, runs, total, r, js, scale, acc),
1772 _ => outline.runs(runs, xs, r, js, scale, acc)))