def gradient.merge
gralha-svg-render@0.1.0.1 · svg.bend:2107
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
2107def gradient.merge(local: XML.Element, template: XML.Element) -> XML.Element:
2108 XML.Element{n, as, kids, txt} = local
2109 XML.Element{tn, tas, tkids, ttxt} = template
2110 +children = kids
2111 XML.Element{n, XML.attrs.append(as, tas), U.choose(List<&2, XML.Element>, gradient.has.stops(children), children, tkids), txt}