The Snippet.asRenderProps() method will return the data stored in the snippet 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().


Object snippet.asRenderProps()

Returned object properties

This returns JavaScript object has the following properties:

attributesThe result of Path.attributes.asRenderProps()
defThe ID of the snippet’s reference in the defs section of the SVG (the snippet code)
anchorThe Point on which the snippet is anchored, or rather its Point.asRenderProps() result