def text.path.layout
gralha-svg-render@0.1.0.1 · svg.bend:3518
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
3518def text.path.layout(+as: List<&2, XML.Attr>, result: TextLayout, em: F32) -> TextLayout:
3519 TextLayout{nodes, cursor} = result
3520 +edges = text.path.geometry(as)
3521 TextLayout{instance.anonymous(Con{XML.Element{"g", Con{XML.Attr{"#text-path", "1"}, Con{XML.Attr{"#text-path-em", F32.show(em)}, as}}, nodes, ""}, Nil{}}), text.path.end(cursor, text.path.at(edges, text.path.total(edges), identity()))}
3522
3523@unsafe