def text.path.total

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

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import 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)

Uses (6)

Used by (2)