Closed stojankukrika closed 6 years ago
Nope
Did you plain to build it?
This component is a wrapper for szimek/signature_pad
API is identical to szimek/signature_pad
Options are as per szimek/signature_pad
Thus if you feel an "action for undo the last draw" feature would be useful, you need to raise an issue in the upstream repo.
The upstream repo is szimek/signature_pad
It's Ok bro, I see that. There I see that exists there https://jsfiddle.net/szimek/osenxvjc/ that is the reason why ask will you do that?
If someone needs undo and clear methods: ` drawUndo() { this.have_signed = false; let data = this.signaturePad.toData(); if (data) { data.pop(); this.signaturePad.fromData(data); } }
drawClear() {
this.signaturePad.clear();
this.have_signed = false;
}`
@stojankukrika thanks a lot for the example. If you want to make a PR with this feature we could include it in the repo
Hi, I find that exists clear method, is there action for undo the last draw?