def shape.of

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

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

905def shape.of(glyph: Bool, data: String, +name: String, +as: List<&2, XML.Attr>, +vw: F32, +vh: F32, +tol: F32) -> List<&2, Edge>:
906  match glyph:
907    case True{}: glyph.path(data, transform(XML.attr.get(as, "#glyph-transform", ""), identity()), tol)
908    case False{}: path(shape.data(name, as, vw, vh, data), tol)

Uses (12)

Used by (1)