A React wrapper for signature pad
MIT License
Published by michaeldzjap over 6 years ago
No major changes. Just a maintenance update.
Published by michaeldzjap over 6 years ago
...
render() {
return <SignaturePad
ref={ref => this.signaturePad = ref}
canvasProps={{className: 'signature-pad-canvas'}} />;
}
...
className
property on the signature pad component, which was passed down to the canvas element. This option has been removed, since now you can accomplish the same thing by defining a className
property on your canvasProps
object.Published by michaeldzjap over 6 years ago
Avoid needlessly updating the canvas dimensions (and hence, clearing the canvas content) when a resize event is fired that does not cause the canvas dimensions to change (thanks @lifzgreat)
Published by michaeldzjap almost 7 years ago
Replaced webpack in favor of rollup for bundling.
Note: the prop-types package needs to be installed explicitly now.