scandit-cordova-datacapture-id
Advanced tools
Comparing version 6.18.2 to 6.19.0-beta.0
{ | ||
"name": "scandit-cordova-datacapture-id", | ||
"version": "6.18.2", | ||
"version": "6.19.0-beta.0", | ||
"description": "Scandit Data Capture SDK for Cordova", | ||
@@ -19,3 +19,3 @@ "license": "Apache-2.0", | ||
"lint": "eslint ./www/ts", | ||
"coverage": "jest --coverage", | ||
"coverage": "jest --coverage --maxWorkers=12", | ||
"clear-jest-cache": "jest --clearCache || true", | ||
@@ -22,0 +22,0 @@ "clean": "npm run clear-jest-cache && node ../scandit-cordova-datacapture-core/scripts/clean.js", |
@@ -1,2 +0,2 @@ | ||
ScanditOCR / ScanditTextCaptureBase includes components licensed under the following licenses: | ||
ScanditOCR / ScanditTextCaptureBackend / ScanditIdCaptureBackend includes components licensed under the following licenses: | ||
@@ -451,3 +451,3 @@ ================================================================================================ | ||
The unchanged source code for Eigen used in ScanditOCR/ScanditTextCaptureBase can be found at | ||
The unchanged source code for Eigen used in ScanditOCR/ScanditTextCaptureBackend/ScanditIdCaptureBackend can be found at | ||
https://github.com/eigenteam/eigen-git-mirror |
@@ -11,3 +11,4 @@ /// <amd-module name="scandit-cordova-datacapture-id.Cordova" /> | ||
ResetIdCapture = "resetIdCapture", | ||
VerifyCapturedId = "verifyCapturedId" | ||
VerifyCapturedId = "verifyCapturedId", | ||
FinishCallback = "finishCallback" | ||
} |
@@ -26,2 +26,3 @@ "use strict"; | ||
CordovaFunction["VerifyCapturedId"] = "verifyCapturedId"; | ||
CordovaFunction["FinishCallback"] = "finishCallback"; | ||
})(CordovaFunction = exports.CordovaFunction || (exports.CordovaFunction = {})); |
@@ -11,7 +11,5 @@ /// <amd-module name="scandit-cordova-datacapture-id.Defaults" /> | ||
export interface DefaultsJSON { | ||
IdCapture: { | ||
RecommendedCameraSettings: CameraSettingsDefaultsJSON; | ||
IdCaptureOverlayDefaults: IdCaptureOverlayDefaultsJSON; | ||
}; | ||
RecommendedCameraSettings: CameraSettingsDefaultsJSON; | ||
IdCaptureOverlay: IdCaptureOverlayDefaultsJSON; | ||
} | ||
export declare const defaultsFromJSON: (json: DefaultsJSON) => Defaults; |
@@ -12,24 +12,24 @@ "use strict"; | ||
RecommendedCameraSettings: Camera_Related_1.CameraSettings | ||
.fromJSON(json.IdCapture.RecommendedCameraSettings), | ||
.fromJSON(json.RecommendedCameraSettings), | ||
IdCaptureOverlayDefaults: { | ||
defaultCapturedBrush: { | ||
fillColor: Common_1.Color | ||
.fromJSON(json.IdCapture.IdCaptureOverlayDefaults.defaultCapturedBrush.fillColor), | ||
.fromJSON(json.IdCaptureOverlay.DefaultCapturedBrush.fillColor), | ||
strokeColor: Common_1.Color | ||
.fromJSON(json.IdCapture.IdCaptureOverlayDefaults.defaultCapturedBrush.strokeColor), | ||
strokeWidth: json.IdCapture.IdCaptureOverlayDefaults.defaultCapturedBrush.strokeWidth, | ||
.fromJSON(json.IdCaptureOverlay.DefaultCapturedBrush.strokeColor), | ||
strokeWidth: json.IdCaptureOverlay.DefaultCapturedBrush.strokeWidth, | ||
}, | ||
defaultLocalizedBrush: { | ||
fillColor: Common_1.Color | ||
.fromJSON(json.IdCapture.IdCaptureOverlayDefaults.defaultLocalizedBrush.fillColor), | ||
.fromJSON(json.IdCaptureOverlay.DefaultLocalizedBrush.fillColor), | ||
strokeColor: Common_1.Color | ||
.fromJSON(json.IdCapture.IdCaptureOverlayDefaults.defaultLocalizedBrush.strokeColor), | ||
strokeWidth: json.IdCapture.IdCaptureOverlayDefaults.defaultLocalizedBrush.strokeWidth, | ||
.fromJSON(json.IdCaptureOverlay.DefaultLocalizedBrush.strokeColor), | ||
strokeWidth: json.IdCaptureOverlay.DefaultLocalizedBrush.strokeWidth, | ||
}, | ||
defaultRejectedBrush: { | ||
fillColor: Common_1.Color | ||
.fromJSON(json.IdCapture.IdCaptureOverlayDefaults.defaultRejectedBrush.fillColor), | ||
.fromJSON(json.IdCaptureOverlay.DefaultRejectedBrush.fillColor), | ||
strokeColor: Common_1.Color | ||
.fromJSON(json.IdCapture.IdCaptureOverlayDefaults.defaultRejectedBrush.strokeColor), | ||
strokeWidth: json.IdCapture.IdCaptureOverlayDefaults.defaultRejectedBrush.strokeWidth, | ||
.fromJSON(json.IdCaptureOverlay.DefaultRejectedBrush.strokeColor), | ||
strokeWidth: json.IdCaptureOverlay.DefaultRejectedBrush.strokeWidth, | ||
}, | ||
@@ -36,0 +36,0 @@ }, |
@@ -8,5 +8,5 @@ "use strict"; | ||
(function (IdCaptureListenerEvent) { | ||
IdCaptureListenerEvent["DidCapture"] = "didCaptureInIdCapture"; | ||
IdCaptureListenerEvent["DidLocalize"] = "didLocalizeInIdCapture"; | ||
IdCaptureListenerEvent["DidReject"] = "didRejectInIdCapture"; | ||
IdCaptureListenerEvent["DidCapture"] = "IdCaptureListener.didCaptureId"; | ||
IdCaptureListenerEvent["DidLocalize"] = "IdCaptureListener.didLocalizeId"; | ||
IdCaptureListenerEvent["DidReject"] = "IdCaptureListener.didRejectId"; | ||
})(IdCaptureListenerEvent || (IdCaptureListenerEvent = {})); | ||
@@ -45,2 +45,7 @@ class IdCaptureListenerProxy { | ||
} | ||
if (!event.shouldNotifyWhenFinished) { | ||
IdCaptureListenerProxy.cordovaExec(null, null, Cordova_1.CordovaFunction.FinishCallback, [ | ||
{ 'finishCallbackID': IdCaptureListenerEvent.DidCapture, 'result': { 'enabled': this.idCapture.isEnabled } } | ||
]); | ||
} | ||
break; | ||
@@ -52,2 +57,7 @@ case IdCaptureListenerEvent.DidLocalize: | ||
} | ||
if (!event.shouldNotifyWhenFinished) { | ||
IdCaptureListenerProxy.cordovaExec(null, null, Cordova_1.CordovaFunction.FinishCallback, [ | ||
{ 'finishCallbackID': IdCaptureListenerEvent.DidLocalize, 'result': { 'enabled': this.idCapture.isEnabled } } | ||
]); | ||
} | ||
break; | ||
@@ -59,2 +69,5 @@ case IdCaptureListenerEvent.DidReject: | ||
} | ||
IdCaptureListenerProxy.cordovaExec(null, null, Cordova_1.CordovaFunction.FinishCallback, [ | ||
{ 'finishCallbackID': IdCaptureListenerEvent.DidReject, 'result': { 'enabled': this.idCapture.isEnabled } } | ||
]); | ||
break; | ||
@@ -61,0 +74,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1908
133975
36
2