angular2-signaturepad
Advanced tools
Comparing version 2.0.1 to 2.1.0
{ | ||
"name": "angular2-signaturepad", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Angular2 Component wrapper for szimek / signature_pad", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -37,3 +37,3 @@ # angular2-signaturepad | ||
@Component({ | ||
template: '<signature-pad [options]="signaturePadOptions" (onEndEvent)="drawComplete()"></signature-pad>' | ||
template: '<signature-pad [options]="signaturePadOptions" (onBeginEvent)="drawStart()" (onEndEvent)="drawComplete()"></signature-pad>' | ||
}) | ||
@@ -61,6 +61,11 @@ | ||
doOnEnd() { | ||
drawComplete() { | ||
// will be notified of szimek/signature_pad's onEnd event | ||
console.log(this.signaturePad.toDataURL()); | ||
} | ||
drawStart() { | ||
// will be notified of szimek/signature_pad's onBegin event | ||
console.log('begin drawing'); | ||
} | ||
} | ||
@@ -67,0 +72,0 @@ ``` |
import { ElementRef, EventEmitter } from '@angular/core'; | ||
export declare class SignaturePad { | ||
options: Object; | ||
onBeginEvent: EventEmitter<boolean>; | ||
onEndEvent: EventEmitter<boolean>; | ||
@@ -17,3 +18,4 @@ private signaturePad; | ||
set(option: string, value: any): void; | ||
onBegin(): void; | ||
onEnd(): void; | ||
} |
@@ -8,2 +8,3 @@ 'use strict'; | ||
this.options = this.options || {}; | ||
this.onBeginEvent = new core_1.EventEmitter(); | ||
this.onEndEvent = new core_1.EventEmitter(); | ||
@@ -21,2 +22,3 @@ } | ||
this.signaturePad = new sp(canvas, this.options); | ||
this.signaturePad.onBegin = this.onBegin.bind(this); | ||
this.signaturePad.onEnd = this.onEnd.bind(this); | ||
@@ -72,2 +74,6 @@ }; | ||
}; | ||
// notify subscribers on signature begin | ||
SignaturePad.prototype.onBegin = function () { | ||
this.onBeginEvent.emit(true); | ||
}; | ||
// notify subscribers on signature end | ||
@@ -89,2 +95,3 @@ SignaturePad.prototype.onEnd = function () { | ||
'options': [{ type: core_1.Input },], | ||
'onBeginEvent': [{ type: core_1.Output },], | ||
'onEndEvent': [{ type: core_1.Output },], | ||
@@ -95,2 +102,2 @@ }; | ||
exports.SignaturePad = SignaturePad; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmF0dXJlLXBhZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNpZ25hdHVyZS1wYWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsWUFBWSxDQUFDO0FBRWIscUJBQW1FLGVBQWUsQ0FBQyxDQUFBO0FBTW5GO0lBUUUsc0JBQVksVUFBc0I7UUFDaEMsUUFBUTtRQUNSLElBQUksQ0FBQyxVQUFVLEdBQUcsVUFBVSxDQUFDO1FBQzdCLElBQUksQ0FBQyxPQUFPLEdBQUcsSUFBSSxDQUFDLE9BQU8sSUFBSSxFQUFFLENBQUM7UUFDbEMsSUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLG1CQUFZLEVBQUUsQ0FBQztJQUN2QyxDQUFDO0lBRU0seUNBQWtCLEdBQXpCO1FBQ0UsSUFBSSxFQUFFLEdBQVEsT0FBTyxDQUFDLGVBQWUsQ0FBQyxDQUFDO1FBQ3ZDLElBQUksTUFBTSxHQUFRLElBQUksQ0FBQyxVQUFVLENBQUMsYUFBYSxDQUFDLGFBQWEsQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUV4RSxFQUFFLENBQUMsQ0FBTyxJQUFJLENBQUMsT0FBUSxDQUFDLGNBQWMsQ0FBQyxDQUFDLENBQUMsQ0FBQztZQUN4QyxNQUFNLENBQUMsTUFBTSxHQUFTLElBQUksQ0FBQyxPQUFRLENBQUMsY0FBYyxDQUFDLENBQUM7UUFDdEQsQ0FBQztRQUVELEVBQUUsQ0FBQyxDQUFPLElBQUksQ0FBQyxPQUFRLENBQUMsYUFBYSxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQ3ZDLE1BQU0sQ0FBQyxLQUFLLEdB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U6IE91dHB1dCB9LF0sXG4nb25FbmRFdmVudCc6IFt7IHR5cGU6IE91dHB1dCB9LF0sXG59O1xufVxuXG5pbnRlcmZhY2UgRGVjb3JhdG9ySW52b2NhdGlvbiB7XG4gIHR5cGU6IEZ1bmN0aW9uO1xuICBhcmdzPzogYW55W107XG59XG4iXX0= |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"SignaturePad":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"template":"<canvas></canvas>","selector":"signature-pad"}]}],"members":{"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onEndEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"resizeCanvas":[{"__symbolic":"method"}],"toDataURL":[{"__symbolic":"method"}],"fromDataURL":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"isEmpty":[{"__symbolic":"method"}],"off":[{"__symbolic":"method"}],"on":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"onEnd":[{"__symbolic":"method"}]}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"SignaturePad":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"template":"<canvas></canvas>","selector":"signature-pad"}]}],"members":{"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onBeginEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onEndEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"resizeCanvas":[{"__symbolic":"method"}],"toDataURL":[{"__symbolic":"method"}],"fromDataURL":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"isEmpty":[{"__symbolic":"method"}],"off":[{"__symbolic":"method"}],"on":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"onBegin":[{"__symbolic":"method"}],"onEnd":[{"__symbolic":"method"}]}}}} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24601
285
74