@wemap/camera 10.1.0 → 10.11.1
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/index.d.ts +8 -0
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type EventEmitter from 'events';
|
|
2
|
+
import type { BarcodeFormat } from '@zxing/library';
|
|
2
3
|
|
|
3
4
|
declare module '@wemap/camera' {
|
|
4
5
|
|
|
@@ -59,6 +60,13 @@ declare module '@wemap/camera' {
|
|
|
59
60
|
|
|
60
61
|
}
|
|
61
62
|
|
|
63
|
+
export class QrCodeScanner extends EventEmitter {
|
|
64
|
+
static DEFAULT_FORMATS: BarcodeFormat[];
|
|
65
|
+
constructor(camera: Camera);
|
|
66
|
+
start(intervalTime?: number, formats?: BarcodeFormat[]): void;
|
|
67
|
+
stop(): void;
|
|
68
|
+
}
|
|
69
|
+
|
|
62
70
|
export class SharedCameras extends EventEmitter {
|
|
63
71
|
list: { container: Node, camera: Camera }[];
|
|
64
72
|
getCameraByContainer(container: Node): Camera | null;
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"directory": "packages/camera"
|
|
13
13
|
},
|
|
14
14
|
"name": "@wemap/camera",
|
|
15
|
-
"version": "10.1
|
|
15
|
+
"version": "10.11.1",
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/wemap/wemap-modules-js/issues"
|
|
18
18
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "ISC",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@wemap/logger": "^10.
|
|
27
|
+
"@wemap/logger": "^10.11.1",
|
|
28
28
|
"@zxing/library": "^0.18.4",
|
|
29
29
|
"events": "^3.3.0"
|
|
30
30
|
},
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"@types/events": "^3.0.0"
|
|
33
33
|
},
|
|
34
34
|
"type": "module",
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "e01001affc1f02f2c847a63de870f63734b98a1c"
|
|
36
36
|
}
|