(string) Color used to clear the background. Can be any color format accepted by context.fillStyle. Defaults to "rgba(0,0,0,0)" (transparent black). Use a non-transparent color e.g. "rgb(255,255,255)" (opaque white) if you'd like to save signatures as JPEG images.
(float or function) Radius of a single dot.
(float) Maximum width of a line. Defaults to 2.5.
(float) Minimum width of a line. Defaults to 0.5.
(function) Callback when stroke end.
(function) Callback when stroke begin.
(string) Color used to draw the lines. Can be any color format accepted by context.fillStyle. Defaults to "black".
(float) Weight used to modify new velocity based on the previous velocity. Defaults to 0.7.
number
number
number
number
SignaturePad
(string) Color used to clear the background. Can be any color format accepted by context.fillStyle. Defaults to "rgba(0,0,0,0)" (transparent black). Use a non-transparent color e.g. "rgb(255,255,255)" (opaque white) if you'd like to save signatures as JPEG images.
(float or function) Radius of a single dot.
(float) Maximum width of a line. Defaults to 2.5.
(float) Minimum width of a line. Defaults to 0.5.
(function) Callback when stroke end.
(function) Callback when stroke begin.
(string) Color used to draw the lines. Can be any color format accepted by context.fillStyle. Defaults to "black".
(float) Weight used to modify new velocity based on the previous velocity. Defaults to 0.7.
number
number
number
number
Clears the canvas
Draws signature image from data URL
Returns true if canvas is empty, otherwise returns false
boolean
Returns signature image as data URL
string