1
0
Fork 0

fix(docs) Add custom attributes and Snippets documentation

This commit is contained in:
Benjamin F 2022-12-14 21:24:28 -08:00
parent 265833d419
commit b53f62c4d1
8 changed files with 116 additions and 17 deletions

View file

@ -42,3 +42,7 @@ If the third parameter is set to `true` it will call [`this.attributes.set()`](/
```
</Example>
## Notes
See [Using Attributes](/howtos/code/attributes)
for information about custom Attributes that can be used with Points.

View file

@ -15,7 +15,7 @@ The point constructor takes two arguments:
- `x` : The X-coordinate of the point
- `y` : The Y-coordinate of the point
## Attributes
## Properties
Point objects come with the following properties:
@ -23,6 +23,11 @@ Point objects come with the following properties:
- `y` : The Y-coordinate of the point
- `attributes` : An [Attributes](/reference/api/attributes) instance holding the point's attributes
<Related>
See [Using Attributes](/howtos/code/attributes)
for information about custom Attributes that can be used with Points.
</Related>
## Example
<Example caption="Example of the Point constructor">