1.0.0 • Published 4 years ago
@edaniels2/signature-pad v1.0.0
SignaturePad
angular 12+ Bluemoon signature pad
usage
Import SignaturePadModule in NgModule and use tag bm-signature-pad.
Requires an [options] property binding - import SignaturePadOptions for type definition.
options attributes
width: number | string (required) - px or % allowedheight: number | string (required) - px or % allowedlineWidth: number - line width in px - default 3base64: boolean - false to output as plain text, true to encode as data url; default falsepublic properties
isEmpty: booleanoutput events
drawComplete: string: triggered on mouse up or call to clear()viewReady: boolean: emitstruewhen component initialization is complete
methods
clear(): clear canvas, triggersdrawCompleteto emit an empty svg documentloadSvg(svg: string): load a path specified svg to the signature pad. Note: if provided with an svg generated from text this method has the same effect asclear()