Part.asRenderProps()
The Part.asRenderProps()
method will return the data stored in the
part 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 part.asRenderProps()
Returned object properties
This returns JavaScript object has the following properties:
Name | Description |
---|---|
paths | The part's paths as Path.asRenderProps() |
points | The part's points as Point.asRenderProps() |
snippet | The part's snippets as Snippet.asRenderProps() |
attributes | The result of Part.attributes.asRenderProps() |
height | A number indicating the part height in mm |
width | A number indicating the part 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 |