1
0
Fork 0
freesewing/markdown/dev/reference/api/path/asrenderprops/en.md
2024-01-21 11:16:40 -08:00

1.2 KiB

title
Path.asRenderProps()

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

Returned object properties

This returns JavaScript object has the following properties:

Name Description
attributes The result of Path.attributes.asRenderProps()
hidden A boolean indicating whether the path is hidden or not
name The path name
ops An array of drawing operations
height A number indicating the path height in mm
width A number indicating the path width in mm
topLeft The Point at the top left of the part, or rather its Point.asRenderProps() result
bottomRight The Point at the bottom right of the part, or rather its Point.asRenderProps() result
d The path's pathstring for rendering as SVG