barkoder-wasm-ocr 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/barkoder-umd.d.ts +31 -1
- package/barkoder-umd.js +161 -26
- package/barkoder.wasm +0 -0
- package/package.json +1 -1
package/barkoder-umd.d.ts
CHANGED
|
@@ -20,6 +20,14 @@ export declare interface BKResult {
|
|
|
20
20
|
capturedBarcode?: ImageData,
|
|
21
21
|
formattedJSON?: string;
|
|
22
22
|
formattedText?: string;
|
|
23
|
+
extra?: {
|
|
24
|
+
location_document?: string;
|
|
25
|
+
location_signature?: string;
|
|
26
|
+
location_picture?: string;
|
|
27
|
+
raw: string;
|
|
28
|
+
non-formatted: string;
|
|
29
|
+
JSON: string;
|
|
30
|
+
};
|
|
23
31
|
|
|
24
32
|
results?: {
|
|
25
33
|
barcodeTypeName: string,
|
|
@@ -36,6 +44,14 @@ export declare interface BKResult {
|
|
|
36
44
|
capturedBarcode?: ImageData,
|
|
37
45
|
formattedJSON?: string;
|
|
38
46
|
formattedText?: string;
|
|
47
|
+
extra?: {
|
|
48
|
+
location_document?: string;
|
|
49
|
+
location_signature?: string;
|
|
50
|
+
location_picture?: string;
|
|
51
|
+
raw: string;
|
|
52
|
+
non-formatted: string;
|
|
53
|
+
JSON: string;
|
|
54
|
+
};
|
|
39
55
|
}[];
|
|
40
56
|
}
|
|
41
57
|
|
|
@@ -166,6 +182,12 @@ export declare enum CenterMark {
|
|
|
166
182
|
Crosshair = 1
|
|
167
183
|
}
|
|
168
184
|
|
|
185
|
+
export declare enum LineScanAnimationMode {
|
|
186
|
+
None = 0,
|
|
187
|
+
NormalBlinking = 1,
|
|
188
|
+
FastBlinking = 2
|
|
189
|
+
}
|
|
190
|
+
|
|
169
191
|
export declare interface Barkoder extends EventTarget {
|
|
170
192
|
constants: {
|
|
171
193
|
|
|
@@ -195,7 +217,9 @@ export declare interface Barkoder extends EventTarget {
|
|
|
195
217
|
|
|
196
218
|
CameraResolution: typeof CameraResolution,
|
|
197
219
|
|
|
198
|
-
CenterMark: typeof CenterMark
|
|
220
|
+
CenterMark: typeof CenterMark,
|
|
221
|
+
|
|
222
|
+
LineScanAnimationMode: typeof LineScanAnimationMode
|
|
199
223
|
};
|
|
200
224
|
|
|
201
225
|
configureBarkoder: (barkoderConfig: object) => boolean;
|
|
@@ -271,6 +295,9 @@ export declare interface Barkoder extends EventTarget {
|
|
|
271
295
|
setLocationLineColor: (color: string) => void;
|
|
272
296
|
setLocationLineWidth: (width: number) => void;
|
|
273
297
|
setRoiCenterMark: (centerMark: number) => void;
|
|
298
|
+
setLineScanAnimationMode: (animationMode: number) => void;
|
|
299
|
+
setLineScanColor: (color: string) => void;
|
|
300
|
+
setLineScanWidth: (width: number) => void;
|
|
274
301
|
setRoiLineColor: (color: string) => void;
|
|
275
302
|
setRoiOverlayBackgroundColor: (color: string) => void;
|
|
276
303
|
setRoiLineWidth: (width: number) => void;
|
|
@@ -285,6 +312,9 @@ export declare interface Barkoder extends EventTarget {
|
|
|
285
312
|
getRoiOverlayBackgroundColor: () => string;
|
|
286
313
|
getRoiLineWidth: () => number;
|
|
287
314
|
getRoiCenterMark: () => number;
|
|
315
|
+
getLineScanAnimationMode: () => number;
|
|
316
|
+
getLineScanColor: () => string;
|
|
317
|
+
getLineScanWidth: () => number;
|
|
288
318
|
isRegionOfInterestVisible: () => boolean;
|
|
289
319
|
isImageResultEnabled: () => boolean;
|
|
290
320
|
isLocationInImageResultEnabled: () => boolean;
|