Background color of the signature field. Defaults to #fff
.
This is specified as a CSS color, ie. #fff
, red
, or rgb(128,0, 255)
.
Color of the signature (stroke) itself. Defaults to #000
.
This is specified as a CSS color, ie. #fff
, red
, or rgb(128,0, 255)
.
Optional initial stroke data that is drawn. Each stroke is an object with the properties
x
and y
, which both need contain the same number of x and y coordinates.
Color of decor elements such as the decor line. Defaults to #eee
.
This is specified as a CSS color, ie. #fff
, red
, or rgb(128,0, 255)
.
How high the signature area should be. Defaults to ratio
.
Can be either ratio
, in which case the given aspect ratio is preserved; or a height (in pixels).
The line width of the signature (stroke). Defaults to 0
(auto).
Optional compensation when drawing the signature with a finger (instead of with a stylus).
Defaults to -10
.
Whether an undo button is displayed for undoing the last stroke.
The aspect ratio of the signature area (width divided by height). Defaults
to 4
. Only used when the option height
is set to ratio
.
How wide the signature area should be. Defaults to ratio
.
Can be either ratio
, in which case it fills the entire available width and the height
adapts according to given aspect ratio; or a width (in pixels).
Optional settings that may be passed to JSignature.