1
0
Fork 0
freesewing/markdown/dev/reference/api/snippet/asrenderprops/en.md
2023-11-12 11:13:38 +01:00

898 B

title
Snippet.asRenderProps()

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().

Signature

Object snippet.asRenderProps()

Returned object properties

This returns Javascript object has the following properties:

Name Description
attributes The result of Path.attributes.asRenderProps()
def The ID of the snippet's reference in the defs section of the SVG (the snippet code)
anchor The Point on which the snippet is anchored, or rather its Point.asRenderProps() result