@pixelverse/strichjs-sdk 1.12.0 → 1.12.2
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/CHANGELOG.md +16 -0
- package/dist/strich-noesm.js +20 -3143
- package/dist/strich.d.ts +31 -1
- package/dist/strich.js +20 -3143
- package/package.json +4 -4
package/dist/strich.d.ts
CHANGED
|
@@ -32,6 +32,19 @@ export declare class BarcodeReader {
|
|
|
32
32
|
* App-supplied barcode detection handler.
|
|
33
33
|
*/
|
|
34
34
|
detected?: DetectionHandler;
|
|
35
|
+
/**
|
|
36
|
+
* Optional app-supplied camera selector.
|
|
37
|
+
*
|
|
38
|
+
* The callback receives a list of available cameras as its argument and must return one of the objects.
|
|
39
|
+
* In all other cases, the callback's result will be ignored and the default camera selection logic will apply
|
|
40
|
+
*
|
|
41
|
+
* The callback must be set before calling {@link BarcodeReader#initialize} to have an effect.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* This is an advanced property and should only be used in special circumstances where you really need to
|
|
45
|
+
* force a specific camera to be used.
|
|
46
|
+
*/
|
|
47
|
+
cameraSelector?: CameraSelector;
|
|
35
48
|
/**
|
|
36
49
|
* Optional app-supplied error callback, invoked by the BarcodeReader if an unexpected error occurred while
|
|
37
50
|
* processing frames.
|
|
@@ -124,6 +137,23 @@ export declare class BarcodeReader {
|
|
|
124
137
|
setFlashlight(enabled: boolean): Promise<void>;
|
|
125
138
|
}
|
|
126
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Representation of a camera device.
|
|
142
|
+
*/
|
|
143
|
+
export declare class CameraDevice {
|
|
144
|
+
deviceId: string;
|
|
145
|
+
label: string;
|
|
146
|
+
toString(): string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* App-supplied callback that is passed a list of available cameras and returns one of them.
|
|
151
|
+
*
|
|
152
|
+
* The callback must return one of the objects in the list argument. In all other cases, the callback's result will
|
|
153
|
+
* be ignored and the default camera selection logic will apply.
|
|
154
|
+
*/
|
|
155
|
+
export declare type CameraSelector = (cameraDevices: CameraDevice[]) => CameraDevice | undefined;
|
|
156
|
+
|
|
127
157
|
/**
|
|
128
158
|
* A code detection reported by the STRICH SDK.
|
|
129
159
|
*/
|
|
@@ -565,7 +595,7 @@ export declare interface OverlayConfiguration {
|
|
|
565
595
|
* Color to use for drawing the horizontal targeting line when a barcode was detected.
|
|
566
596
|
* Must be specified in rgb() format, with the color components given as integers with no separating whitespace.
|
|
567
597
|
*
|
|
568
|
-
* @
|
|
598
|
+
* @defaultValue rgb(255,0,0)
|
|
569
599
|
*/
|
|
570
600
|
targetingLineActiveColor?: string;
|
|
571
601
|
/**
|