angular2-signaturepad-backwards-compatbile
This is a modified package that allows for backwards compatibility with angular 1 based signaturepad using fromDataOld(pointData)
.
Angular 2 component for szimek/signature_pad.
Install
npm install angular2-signaturepad-backwards-compatbile --save
Reference Implementation
Usage example
API is identical to szimek/signature_pad.
Options are as per szimek/signature_pad with the following additions:
- canvasWidth: width of the canvas (px)
- canvasHeight: height of the canvas (px) The above options are provided to avoid accessing the DOM directly from your component to adjust the canvas size.
// import into app module ; ... // then import for use in a component ;;