Update 'Adding new objects'
parent
040553cd62
commit
eac51bbdaa
1 changed files with 5 additions and 1 deletions
|
@ -112,7 +112,11 @@ So to create a new object, choose one of the two to extend, and then create a cl
|
||||||
```
|
```
|
||||||
- You can also use `Function.drawFunction(canvas, ctx, expr, definitionDomain, destinationDomain, drawPoints = true, drawDash = true)` to rapidly draw a function created on the canvas.
|
- You can also use `Function.drawFunction(canvas, ctx, expr, definitionDomain, destinationDomain, drawPoints = true, drawDash = true)` to rapidly draw a function created on the canvas.
|
||||||
### Other optional methods:
|
### Other optional methods:
|
||||||
update() {
|
- `update()`
|
||||||
|
- Called every time a property of the object is changed.
|
||||||
|
- `getLabel()`
|
||||||
|
- Shorthand method you can use to get your label string depending on the state of labelContent.
|
||||||
|
- You can extend it to suit your own needs for your objects.
|
||||||
|
|
||||||
|
|
||||||
### Registering your object
|
### Registering your object
|
||||||
|
|
Loading…
Reference in a new issue