def image.svg.normalized

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

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

3861def image.svg.normalized(root: XML.Element, size: Point) -> XML.Element:
3862  XML.Element{n, as, kids, txt} = root
3863  Point{w, h} = size
3864  XML.Element{n, Con{XML.Attr{"width", F32.show(w)}, Con{XML.Attr{"height", F32.show(h)}, as}}, kids, txt}

Uses (5)

Used by (1)