def bounds
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
570def bounds(edges: List<&2, Edge>, box: Bounds) -> Bounds:
571 match edges:
572 case Nil{}: box
573 case Con{Edge{ax, ay, bx, by, stroked, closed}, t}: bounds(t, bounds.at(bounds.at(box, ax, ay), bx, by))