Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'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;
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;