Skip to content

Commit 65ff96d

Browse files
committed
(docs): add docs for on and off API methods
- `on` was recently added - `off` never had documentation, but should
1 parent 8295ae5 commit 65ff96d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ instance methods of the ref.
7373
- `isEmpty()` : `boolean`, self-explanatory
7474
- `clear()` : `void`, clears the canvas using the `backgroundColor` prop
7575
- `fromDataURL(base64String)` : `void`, writes a base64 image to canvas
76+
- `off()`: `void`, unbinds all event handlers
77+
- `on()`: `void`, rebinds all event handlers
7678
- `getCanvas()`: `canvas`, returns the underlying canvas ref. Allows you to
7779
modify the canvas however you want or call methods such as `toDataURL()`
7880
- `getTrimmedCanvas()`: `canvas`, creates a copy of the canvas and returns a

0 commit comments

Comments
 (0)