Skip to main content

Svg.asRenderProps()

The Svg.asRenderProps() method will return the data stored in the svg as a serializable JavaScript object. This method is typically not invoked directly but rather called under the hood as a result of calling Pattern.getRenderProps().

Signature

Object svg.asRenderProps()

Returned object properties

The returned JavaScript object has the following properties:

NameDescription
attributesThe result of Path.attributes.asRenderProps()
layoutA plain object describing the layout of the SVG
bodyA string holding the SVG body
styleA string holding the SVG style
defsA string holding the SVG defs