diff --git a/Adding-new-objects.md b/Adding-new-objects.md index d3252ad..6c7d1f1 100644 --- a/Adding-new-objects.md +++ b/Adding-new-objects.md @@ -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. ### 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