Giter Site home page Giter Site logo

Undo action about angular2-signaturepad HOT 6 CLOSED

wulfsolter avatar wulfsolter commented on July 29, 2024
Undo action

from angular2-signaturepad.

Comments (6)

stojankukrika avatar stojankukrika commented on July 29, 2024 1

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;
}`

from angular2-signaturepad.

lathonez avatar lathonez commented on July 29, 2024

Nope

from angular2-signaturepad.

stojankukrika avatar stojankukrika commented on July 29, 2024

Did you plain to build it?

from angular2-signaturepad.

lathonez avatar lathonez commented on July 29, 2024

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

from angular2-signaturepad.

stojankukrika avatar stojankukrika commented on July 29, 2024

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?

from angular2-signaturepad.

lathonez avatar lathonez commented on July 29, 2024

@stojankukrika thanks a lot for the example. If you want to make a PR with this feature we could include it in the repo

from angular2-signaturepad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.