@pixelverse/strichjs-sdk 1.5.0 → 1.5.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 +27 -0
- package/dist/strich-noesm.js +13 -13
- package/dist/strich.d.ts +23 -8
- package/dist/strich.js +13 -13
- package/package.json +3 -2
package/dist/strich.d.ts
CHANGED
|
@@ -155,12 +155,6 @@ export declare interface EngineConfiguration {
|
|
|
155
155
|
* (all symbologies enabled - NOT RECOMMENDED)
|
|
156
156
|
*/
|
|
157
157
|
symbologies?: (SymbologyName | SymbologySpec)[];
|
|
158
|
-
/**
|
|
159
|
-
* The number of scanlines to run over a located barcode candidate.
|
|
160
|
-
*
|
|
161
|
-
* @defaultValue 10
|
|
162
|
-
*/
|
|
163
|
-
numScanlines?: number;
|
|
164
158
|
/**
|
|
165
159
|
* The number of scanlines that need to decoded successfully for a valid decode.
|
|
166
160
|
*
|
|
@@ -416,8 +410,8 @@ export declare interface OverlayConfiguration {
|
|
|
416
410
|
/**
|
|
417
411
|
* Override the STRICH logo displayed in the bottom-right corner with a custom image.
|
|
418
412
|
*
|
|
419
|
-
* The image is supplied as
|
|
420
|
-
*
|
|
413
|
+
* The image is supplied as an absolute URL or inline as a data URL. The image should have a transparent background
|
|
414
|
+
* (WebP or PNG format). The recommended size is 140x30 pixels.
|
|
421
415
|
*
|
|
422
416
|
* @remarks This is a capability that is only available as a paid add-on for Enterprise licenses.
|
|
423
417
|
*/
|
|
@@ -586,6 +580,20 @@ export declare class StrichSDK {
|
|
|
586
580
|
* if the check fails for any reason (including missing/denied permissions).
|
|
587
581
|
*/
|
|
588
582
|
static hasCameraDevice(): Promise<boolean>;
|
|
583
|
+
/**
|
|
584
|
+
* Return the current state of the camera permission.
|
|
585
|
+
*
|
|
586
|
+
* Uses the Permissions API (https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API) to determine
|
|
587
|
+
* if the user has granted or denied camera permission or if a prompt will occur when the camera is accessed.
|
|
588
|
+
* In all other cases, the value 'unknown' is returned.
|
|
589
|
+
*
|
|
590
|
+
* @remarks
|
|
591
|
+
* The Permissions API is currently not available on Firefox: 'unknown' will be returned.
|
|
592
|
+
*
|
|
593
|
+
* @returns The current state of the camera permission: 'granted' if it is granted, 'denied' if it is denied,
|
|
594
|
+
* 'prompt' if a prompt will occur, and 'unknown' if it could not be determined for any reason.
|
|
595
|
+
*/
|
|
596
|
+
static getCameraPermissionState(): Promise<'denied' | 'granted' | 'prompt' | 'unknown'>;
|
|
589
597
|
}
|
|
590
598
|
|
|
591
599
|
/**
|
|
@@ -611,6 +619,13 @@ export declare type SymbologySpec = {
|
|
|
611
619
|
* The maximum length of the barcode, only has an effect for variable-length symbologies.
|
|
612
620
|
*/
|
|
613
621
|
maxLen?: number;
|
|
622
|
+
/**
|
|
623
|
+
* The minimum length of the leading and trailing quiet zone for this symbology, expressed as multiples of X.
|
|
624
|
+
*
|
|
625
|
+
* @remarks
|
|
626
|
+
* There is rarely a need to change the default.
|
|
627
|
+
*/
|
|
628
|
+
qz?: number;
|
|
614
629
|
};
|
|
615
630
|
|
|
616
631
|
export { }
|