How to use the angular2-signaturepad/signature-pad.SignaturePad function in angular2-signaturepad

To help you get started, we’ve selected a few angular2-signaturepad examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github formio / angular-formio / dist / components / signature / signature.js View on Github external
'minWidth': this.component.settings.minWidth,
            'canvasWidth': this.setWidth,
            'canvasHeight': this.setHeight,
            'backgroundColor': this.component.settings.backgroundColor,
            'penColor': this.component.settings.penColor
        };
    };
    SignatureElement.prototype.ngAfterViewInit = function () {
        this.signaturePad.clear();
        if (this.component.data[this.component.settings.key] != null) {
            this.signaturePad.fromDataURL(this.component.data[this.component.settings.key]);
        }
    };
    __decorate([
        core_1.ViewChild(signature_pad_1.SignaturePad), 
        __metadata('design:type', signature_pad_1.SignaturePad)
    ], SignatureElement.prototype, "signaturePad", void 0);
    __decorate([
        core_1.ViewChild(AlignDirective), 
        __metadata('design:type', AlignDirective)
    ], SignatureElement.prototype, "alignDirective", void 0);
    return SignatureElement;
}(base_1.BaseElement));
exports.SignatureElement = SignatureElement;
github formio / angular-formio / dist / components / signature / signature.js View on Github external
this.signaturePadOptions = {
            'minWidth': this.component.settings.minWidth,
            'canvasWidth': this.setWidth,
            'canvasHeight': this.setHeight,
            'backgroundColor': this.component.settings.backgroundColor,
            'penColor': this.component.settings.penColor
        };
    };
    SignatureElement.prototype.ngAfterViewInit = function () {
        this.signaturePad.clear();
        if (this.component.data[this.component.settings.key] != null) {
            this.signaturePad.fromDataURL(this.component.data[this.component.settings.key]);
        }
    };
    __decorate([
        core_1.ViewChild(signature_pad_1.SignaturePad), 
        __metadata('design:type', signature_pad_1.SignaturePad)
    ], SignatureElement.prototype, "signaturePad", void 0);
    __decorate([
        core_1.ViewChild(AlignDirective), 
        __metadata('design:type', AlignDirective)
    ], SignatureElement.prototype, "alignDirective", void 0);
    return SignatureElement;
}(base_1.BaseElement));
exports.SignatureElement = SignatureElement;

angular2-signaturepad

Angular2 Component wrapper for szimek / signature_pad

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis