def outline.side.end

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

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

1555# At the end of an open side the last offset end is emitted; a closed loop
1556# emitted it through its first vertex.
1557def outline.side.end(previous: Maybe<&2, Prev>, closed: Bool, acc: List<&2, Point>) -> List<&2, Point>:
1558  match previous:
1559    case None{}: acc
1560    case Some{Prev{u, e, l}}:
1561      match closed:
1562        case True{}: acc
1563        case False{}: Con{e, acc}

Uses (5)

Used by (1)