1.2.2 • Published 5 years ago

rp-esign v1.2.2

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Intro

This module provides an easy and simple way to esignature.

Installation

$ npm i rp-esign

Usage

var package = require('rp-esign'); // contains package.json data.

Example

HTML

<!DOCTYPE html>
<html>
    <head>
        <mate charest="utf-8" />
        <title>RP Sign</title>
    </head>
    <body>
        <div id="signature_dIv"></div>
		<button id="saveBtn">Save</button>
		<button id="clearbtn">Clear</button>
    </body>
</html>
Script
'let objSign = new rpSignature({
	signaturePad 	 : 'signature_dIv', //div name
	penColor	 	 :  '#000',         //Sign color
	pointSize		 :  2,				//Sign Size
	canvasbordercolor: 	'#c3c3c3',		//canvas border color
	canvasbordersize : 	'1',			//canvas border size
	canvaswidth 	 : 	'400',			//canvas  width
	canvasheight	 : 	'200',			//canvas  size
	imageformat      :	'image/png'		//image format
});

document.getElementById('saveBtn').onclick = function(){
	getresp = objSign.getSign();
	console.log(getresp);
}
document.getElementById('clearbtn').onclick = function(){
	objSign.clearSign();
}'
1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago