Skip to main content

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:

NameDescription
attributesThe result of Path.attributes.asRenderProps()
hiddenA boolean indicating whether the path is hidden or not
nameThe path name
opsAn array of drawing operations
heightA number indicating the path height in mm
widthA number indicating the path width in mm
topLeftThe Point at the top left of the part, or rather its Point.asRenderProps() result
bottomRightThe Point at the bottom right of the part, or rather its Point.asRenderProps() result
dThe path's pathstring for rendering as SVG