@anyline/anyline-js
Advanced tools
Comparing version 51.2.0 to 51.3.1
{ | ||
"name": "@anyline/anyline-js", | ||
"version": "51.2.0", | ||
"version": "51.3.1", | ||
"description": "anyline sdk in the browser", | ||
@@ -5,0 +5,0 @@ "types": "./types/index.d.ts", |
@@ -32,3 +32,3 @@ # Web SDK | ||
[API documentation](https://js.anyline.com/release/51.2.0/docs/index.html) | ||
[API documentation](https://js.anyline.com/release/51.3.1/docs/index.html) | ||
@@ -83,3 +83,5 @@ For full documentation visit: [https://documentation.anyline.com/web-sdk-component/latest/index.html](https://documentation.anyline.com/web-sdk-component/latest/index.html) | ||
```JavaScript | ||
anyline.startScanning().catch(console.error); | ||
anyline.startScanning().catch((e) => { | ||
alert(e.message); | ||
}); | ||
``` | ||
@@ -90,5 +92,5 @@ | ||
```JavaScript | ||
anyline.onResult((data) => { | ||
console.log(data) | ||
}); | ||
anyline.onResult = (result) => { | ||
console.log(result) | ||
}; | ||
``` | ||
@@ -95,0 +97,0 @@ |
@@ -25,3 +25,2 @@ import { UiServiceInterface } from '../services/UI/ui.service.interface'; | ||
private preloadDone; | ||
private startScanningRequested; | ||
/** | ||
@@ -28,0 +27,0 @@ * Mounts anylineJS into the DOM and exposes api |
@@ -55,4 +55,3 @@ import CameraManager from './camera.manager'; | ||
getSubimage(imageData: any, frame: any): ImageData; | ||
cropImageBuffer({ compression, x, y, width, height, }?: { | ||
compression?: number; | ||
cropImageBuffer({ x, y, width, height, }?: { | ||
x?: number; | ||
@@ -59,0 +58,0 @@ y?: number; |
export declare const sleep: (ms: number) => Promise<void>; | ||
export declare const waitUntil: (condition: () => boolean, checkInterval?: number, maxWaitTime?: number) => Promise<void>; |
@@ -25,3 +25,2 @@ import { UiServiceInterface } from '../services/UI/ui.service.interface'; | ||
private preloadDone; | ||
private startScanningRequested; | ||
/** | ||
@@ -28,0 +27,0 @@ * Mounts anylineJS into the DOM and exposes api |
@@ -55,4 +55,3 @@ import CameraManager from './camera.manager'; | ||
getSubimage(imageData: any, frame: any): ImageData; | ||
cropImageBuffer({ compression, x, y, width, height, }?: { | ||
compression?: number; | ||
cropImageBuffer({ x, y, width, height, }?: { | ||
x?: number; | ||
@@ -59,0 +58,0 @@ y?: number; |
export declare const sleep: (ms: number) => Promise<void>; | ||
export declare const waitUntil: (condition: () => boolean, checkInterval?: number, maxWaitTime?: number) => Promise<void>; |
Sorry, the diff of this file is too big to display
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 too big to display
Sorry, the diff of this file is too big to display
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
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
53354254
146
4276
137
12