
The replaces the NextJS site powering FreeSewing.dev with a Docusaurus setup. It's part of my efforts to simplify FreeSewing's setup so we can focus on our core value proposition.
24 lines
744 B
Text
24 lines
744 B
Text
---
|
|
title: Point.asRenderProps()
|
|
---
|
|
|
|
The `Point.asRenderProps()` method will return the data stored in the
|
|
point 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()`](/reference/api/pattern/getrenderprops).
|
|
|
|
## Signature
|
|
|
|
```js
|
|
Object point.asRenderProps()
|
|
```
|
|
|
|
## Returned object properties
|
|
|
|
This returns JavaScript object has the following properties:
|
|
|
|
| Name | Description |
|
|
| ----:| ----------- |
|
|
| `attributes` | The result of [Path.attributes.asRenderProps()](/reference/api/attributes/asrenderprops) |
|
|
| `x` | A number indicating the X-Coordinate of the point |
|
|
| `y` | A number indicating the Y-Coordinate of the point |
|