def expand.images

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

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

3917# The expansion passes each rebuild the whole tree, so a document without
3918# images, uses or text skips them; an embedded SVG image may bring any of the
3919# three, so images imply all passes.
3920def expand.images(has: Bool, xs: List<&2, XML.Element>, +w: F32, +h: F32) -> List<&2, XML.Element>:
3921  match has:
3922    case True{}: image.svg.expand(16n, xs, w, h)
3923    case False{}: xs

Uses (5)

Used by (1)