def text.path.resolve
gralha-svg-render@0.1.0.1 · svg.bend:3293
import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-xml-doc@0.1.0.1/xml.bend as XML
import gralha-css-style@0.1.0.1/css.bend as CSS
3293def text.path.resolve(xs: List<&2, XML.Element>, +all: List<&2, XML.Element>, +w: F32, +h: F32, +root: Bool) -> List<&2, XML.Element>:
3294 match xs:
3295 case Nil{}: Nil{}
3296 case Con{XML.Element{n, attrs, kids, txt}, rest}:
3297 +as = CSS.properties(attrs)
3298 +tagname = n
3299 Con{text.path.resolve.node(tagname, as, kids, txt, all, w, h, element.viewport(tagname, as, identity(), w, h, root), nodes => scope => vw => vh => text.path.resolve(nodes, scope, vw, vh, False{})), text.path.resolve(rest, all, w, h, root)}