def text.paint.bounds
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
import gralha-xml-doc@0.1.0.1/xml.bend as XML
3607def text.paint.bounds(xs: List<&2, XML.Element>, +box: String) -> List<&2, XML.Element>:
3608 match xs:
3609 case Nil{}: Nil{}
3610 case Con{XML.Element{n, as, kids, txt}, rest}: Con{XML.Element{n, Con{XML.Attr{"#paint-box", box}, as}, text.paint.bounds(kids, box), txt}, text.paint.bounds(rest, box)}