def text.path.total
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
3309def text.path.total(xs: List<&2, Edge>) -> F32:
3310 match xs:
3311 case Nil{}: 0.0
3312 case Con{Edge{ax, ay, bx, by, stroked, closed}, rest}: (point.distance(Point{ax, ay}, Point{bx, by}) + text.path.total(rest) : F32)