Custom Widget for Wakanda 8 BUILD : 8.158756 (http://wakanda.org)
The SignaturePad allows you drawing smooth signatures. It's HTML5 canvas based and uses variable width Bezier curve interpolation This widget is an integration of JQUERY PLUGIN from : https://github.com/szimek/signature_pad
It works in all modern desktop and mobile browsers and doesn't depend on any external libraries.
This widget has the following properties:
- dotSize (float or function) Radius of a single dot.
- minWidth (float) Minimum width of a line. Defaults to 0.5.
- maxWidth (float) Maximum width of a line. Defaults to 2.5.
- backgroundColor (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.
- penColor (string) Color used to draw the lines. Can be any color format accepted by context.fillStyle. Defaults to "black".
- velocityFilterWeight (float) Weight used to modify new velocity based on the previous velocity. Defaults to 0.7.
- onBegin (function) Callback when stroke begin.
- onEnd (function) Callback when stroke end.
####Methods :
- clear
- (function) clear the widget
- isEmpty
- (function) return true if there is not signature in the widget
For more information on how to install a custom widget, refer to Installing a Custom Widget.
For more information about Custom Widgets, refer to Custom Widgets in the Architecture of Wakanda Applications manual.