You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 1, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -76,8 +76,9 @@ Useful functions that you can call, e.g. when having a reference to this compone
76
76
77
77
-`getSaveData()` returns the drawing's save-data as a stringified object
78
78
-`loadSaveData(saveData: String, immediate: Boolean)` loads a previously saved drawing using the saveData string, as well as an optional boolean flag to load it immediately, instead of live-drawing it.
79
+
-`getDataURL(fileType, useBgImage, backgroundColour)` will export the canvas to a data URL, which can subsequently be used to share or manipulate the image file.
79
80
-`clear()` clears the canvas completely, including previously erased lines, and resets the view. After a clear, `undo()` will have no effect.
80
-
-`eraseAll()` clears the drawn lines but retains their data; calling `undo()` can restore the erased lines. *Note: erased lines are not included in the save data.*
81
+
-`eraseAll()` clears the drawn lines but retains their data; calling `undo()` can restore the erased lines. _Note: erased lines are not included in the save data._
81
82
-`resetView()` resets the canvas' view to defaults. Has no effect if the `enablePanAndZoom` property is `false`.
82
83
-`undo()` removes the latest change to the drawing. This includes everything drawn since the last MouseDown event.
0 commit comments