Skip to content

A custom widget that capture a user signature like signing in a paper

Notifications You must be signed in to change notification settings

saadmos/SignaturePad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Example

It works in all modern desktop and mobile browsers and doesn't depend on any external libraries.

Properties and Events

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.

Events :

  • 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

More Information

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.

About

A custom widget that capture a user signature like signing in a paper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published