1
0
Fork 0
freesewing/markdown/dev/reference/api/part/props/en.md

28 lines
548 B
Markdown
Raw Normal View History

2023-04-12 13:52:36 +00:00
---
title: Part.asProps()
---
2023-04-21 12:58:37 +00:00
This `Part.asProps()` method can be used to return the part as an object that is suitable for inclusion in renderprops. This method is used internally and is only required when building your own render system.
2023-04-12 13:52:36 +00:00
2023-04-16 17:34:13 +00:00
## Signature
2023-04-12 13:52:36 +00:00
```js
Part.prototype.asProps = function ()
return {
paths: this.paths,
points: this.points,
snippets: this.snippets,
attributes: this.attributes,
height: this.height,
width: this.width,
bottomRight: this.bottomRight,
topLeft: this.topLeft,
}
2023-04-16 17:34:13 +00:00
2023-04-12 13:52:36 +00:00
```
2023-04-16 17:34:13 +00:00
2023-04-12 13:52:36 +00:00