Liking cljdoc? Tell your friends :D

thi.ng.geom.svg.adapter


all-as-svgclj/s

(all-as-svg form)
source

inject-element-attribsclj/s

(inject-element-attribs root)
(inject-element-attribs f root)

Walks SVG DOM tree with thi.ng.dstruct.core/postwalk and applies given function to each element node. The fn takes 2 args: the element itself and its attribute map. The fn's return value will be used as the new attribute map.

Walks SVG DOM tree with thi.ng.dstruct.core/postwalk and applies
given function to each element node. The fn takes 2 args: the
element itself and its attribute map. The fn's return value will be
used as the new attribute map.
sourceraw docstring

key-attrib-injectorclj/s

(key-attrib-injector el attribs)

To be used with inject-element-attribs, generates an unique :key attrib for each SVG element w/o :key attrib. Returns updated attribs.

To be used with inject-element-attribs, generates an unique :key
attrib for each SVG element w/o :key attrib. Returns updated attribs.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close