jq-signature.js
function() {
        if (this.drawing) {
        this.ctx.beginPath();
        this.ctx.moveTo(this.lastPos.x, this.lastPos.y);
        this.ctx.lineTo(this.currentPos.x, this.currentPos.y);
        this.ctx.stroke();
        this.lastPos = this.currentPos;
      }
    }
function() {
        if (this.drawing) {
        this.ctx.beginPath();
        this.ctx.moveTo(this.lastPos.x, this.lastPos.y);
        this.ctx.lineTo(this.currentPos.x, this.currentPos.y);
        this.ctx.stroke();
        this.lastPos = this.currentPos;
      }
    }
function ( ) { if ( this . drawing ) { this . ctx . beginPath ( ) ; this . ctx . moveTo ( this . lastPos . x , this . lastPos . y ) ; this . ctx . lineTo ( this . currentPos . x , this . currentPos . y ) ; this . ctx . stroke ( ) ; this . lastPos = this . currentPos ; } }
Render the signature to the canvas
Render the signature to the canvas