We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
on
off
1 parent 8295ae5 commit 65ff96dCopy full SHA for 65ff96d
README.md
@@ -73,6 +73,8 @@ instance methods of the ref.
73
- `isEmpty()` : `boolean`, self-explanatory
74
- `clear()` : `void`, clears the canvas using the `backgroundColor` prop
75
- `fromDataURL(base64String)` : `void`, writes a base64 image to canvas
76
+- `off()`: `void`, unbinds all event handlers
77
+- `on()`: `void`, rebinds all event handlers
78
- `getCanvas()`: `canvas`, returns the underlying canvas ref. Allows you to
79
modify the canvas however you want or call methods such as `toDataURL()`
80
- `getTrimmedCanvas()`: `canvas`, creates a copy of the canvas and returns a
0 commit comments