def glyph.edges

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

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

920def glyph.edges(xs: List<&2, XML.Element>, +tol: F32) -> List<&2, Edge>:
921  match xs:
922    case Nil{}: Nil{}
923    case Con{XML.Element{n, as, kids, txt}, rest}:
924      +attrs = as
925      glyph.edges.append(glyph.path(XML.attr.get(attrs, "d", ""), transform(XML.attr.get(attrs, "#glyph-transform", ""), identity()), tol), glyph.edges(rest, tol))

Uses (9)

Used by (1)