def marker.instances

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

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U
import gralha-xml-doc@0.1.0.1/xml.bend as XML

3096def marker.instances(+name: String, +as: List<&2, XML.Attr>, +s: Style, all: List<&2, XML.Element>, active: List<&2, String>, +w: F32, +h: F32) -> List<&2, XML.Element>:
3097  Style{fill, stroke, col, fo, so, width, even, visible, ss, ms, rendering, order} = s
3098  U.branch(List<&2, XML.Element>, marker.enabled(ms) && marker.shape(name),
3099    _ => marker.instances.loop(marker.trace(shape.data(name, as, w, h, XML.attr.get(as, "d", ""))), True{}, ms, all, active, width, w, h), _ => Nil{})

Uses (15)

Used by (1)