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
- not all users might know what trimmed means and I think it's good to
reference anyway
- maybe `trim-canvas` should have a GIF of trimming in addition to
the new demo?
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ All API methods require a ref to the SignatureCanvas in order to use and are ins
86
86
-`on()`: `void`, rebinds all event handlers
87
87
-`getCanvas()`: `canvas`, returns the underlying canvas ref.
88
88
Allows you to modify the canvas however you want or call methods such as `toDataURL()`
89
-
-`getTrimmedCanvas()`: `canvas`, creates a copy of the canvas and returns a trimmed version of it, with all whitespace removed.
89
+
-`getTrimmedCanvas()`: `canvas`, creates a copy of the canvas and returns a [trimmed version](https://github.com/agilgur5/trim-canvas) of it, with all whitespace removed.
90
90
-`getSignaturePad()`: `SignaturePad`, returns the underlying SignaturePad reference.
91
91
92
92
The API methods are _mostly_ just wrappers around [`signature_pad`'s API](https://github.com/szimek/signature_pad#api).
0 commit comments