From eac51bbdaaca71be70aa99b023d448377cac50fe Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Wed, 23 Jun 2021 10:53:21 -0400 Subject: [PATCH] Update 'Adding new objects' --- Adding-new-objects.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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