def pattern.frame
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
import gralha-xml-doc@0.1.0.1/xml.bend as XML
2979# pixels is the device pixels per user unit of the referencing element; the
2980# content is compiled for the pattern frame's own device scale.
2981# Pattern space to the referencing element's user space.
2982def pattern.frame(+as: List<&2, XML.Attr>, +units: Matrix, +uw: F32, +uh: F32) -> Matrix:
2983 matrix.mul(transform(XML.attr.get(as, "patternTransform", ""), identity()), matrix.mul(units,
2984 translate(dimension(as, "x", uw, "0"), dimension(as, "y", uh, "0"))))