Updated doc

This commit is contained in:
Luis Leiva 2019-07-22 15:57:46 +03:00
parent c4cae4d8e0
commit f645ced6da
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@
* // This will remove strokes data as well. * // This will remove strokes data as well.
* $canvas.clear(); * $canvas.clear();
* // If you only need to clear the canvas, just do: * // If you only need to clear the canvas, just do:
* $canvas.clear(true);
* // Or, alternatively:
* $canvas.sketchable('handler', function(elem, data) { * $canvas.sketchable('handler', function(elem, data) {
* data.sketch.clear(); * data.sketch.clear();
* }); * });