1.0.7 • Published 4 years ago

@ng-plus/signature-pad v1.0.7

Weekly downloads
673
License
MIT
Repository
-
Last release
4 years ago

Angular Signature Pad

See Demo on Stackblitz

Installation:

npm install @ng-plus/signature-pad --save

Usage (Blob/Image):

<ng-signature-pad (done)="saveImage($event)"></ng-signature-pad>

JavaScript:

saveImage(blob: Blob) {
    // Do something with the blob.
}

Options:

DirectivesDescriptionOptionsDefault
[editable]Turn pad on or offtrue, falsetrue
[emitOnDragEnd]Emit the (done) method as soon as drag end.true, falsefalse
[penColor]Color of signature penColorblack
[backgroundColor]Background of signature padColortransparent
(done)Fired on clicking Done buttonfunction($event: Blob/base64/json)null
(clear)Fired on clicking Clear buttonfunction()null
[(points)]JSON points modeljsonnull
[format]Output format foe (done) method. json output is same as points model.blob, base64, jsonblob
[width]Width of canvasnumber600
[height]Height of canvasnumber150
[responsive]Resize to 100% parent. But the points will still output widthxheight ratiotrue, falsetrue
[showDoneButton]Show or Hide Done Buttontrue, falsetrue
[showClearButton]Show or Hide Clear Buttontrue, falsetrue
[doneButtonText]Text of Done ButtonstringDone
[clearButtonText]Text of Clear ButtonstringClear
[doneButtonClass]Class classes of Done Buttonstringbtn btn-primary
[clearButtonClass]Class classes of Clear Buttonstringbtn btn-default
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago