def outline.side.end
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport 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}