angular2-signaturepad
Angular 2 component for szimek/signature_pad. This is forked from https://github.com/wulfsolter/angular2-signaturepad
Install
npm install angular-signaturepad --save
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.
What's different from the original
In this package, fixed the scaling issue on high DPI devices. Reported here.(https://github.com/szimek/signature_pad/issues/89)
// import into app module ; ... // then import for use in a component ;;