Git Product home page Git Product logo

angular2-signaturepad-demo's People

Contributors

angular-cli avatar lathonez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

angular2-signaturepad-demo's Issues

Cannot save data and load signature shows black

It's a great job for all ng2 lover. Thanks!
Could it be possible to give couple of lines demo codes about save signature and reload signature?
It shows black for me when I do this:
`
public save() {
this.tmpURL = this.signature;
}
public load() {
this.signaturePad.clear();
// Unbinds all event handlers
this.signaturePad.off();

// Rebinds all event handlers
this.signaturePad.on();

console.log('data:' + this.tmpURL);
this.signature = this.signaturePad.fromDataURL(this.tmpURL);

}
`

Multiple signature issue

Hi,

Is there any solution for multiple signature under this pad?
How to change following code for multiple signature? I tried many possibility with no luck.
@ViewChild(SignaturePad) signaturePad: SignaturePad;

.

Find the length of signature in canvas(angular2-signaturepad) ?

 <signature-pad [options]="signaturePadOptions"
                  (onEndEvent)="drawComplete()">
      </signature-pad>//html code

drawComplete() {
   signaturePad.toData()[0].length //get length 
 }//js code

Center the image on canvas??

Hi I wanted to know how can we center the image on the canvas we drew using this method :
signaturePad.fromDataURL(base64_image_data);

Module load failure

Hi,

I have existing ionic2 project, and tried to add angular2-signaturepad.

I installed it via npm. I edited config file like below.

      commonjs({
          include: [
            'node_modules/rxjs/**',
            'node_modules/angular2-signaturepad/**'
          ],
          namedExports: {
            'node_modules/angular2-signaturepad/signature-pad.js': ['SignaturePadModule']
          }
        }

How ever, when I import it from app.module.ts even without doing anything, I get

signature_pad.js:13Uncaught TypeError: Cannot set property 'SignaturePad' of undefined
Error, and it's pointing

root['SignaturePad'] = factory();

line. If it's relevant I use

"@ionic/app-scripts": "^0.0.36",
"typescript": "^2.0.3"

I appreciate for any help.

Thank you.

Error: SignatureFieldComponent class SignatureFieldComponent - inline template:0:0 caused by: sp is not a constructor

Hello - i am trying to implement your demo and i get this error upon running. i've tried using this demo as well as the simpler version on the main git hub page and get the same error.

SignatureFieldComponent class SignatureFieldComponent - inline template:0:0 caused by: sp is not a constructor
Error: Error in ./SignatureFieldComponent class SignatureFieldComponent - inline template:0:0 caused by: sp is not a constructor

Save signature along with image?

I saw on your demo that it's possible to sign over an image, but the saved image contains the signature only. Is there a way to save both as a single image file?

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.