@pixelverse/strichjs-sdk 1.5.1 → 1.5.3
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 +28 -0
- package/dist/strich-noesm.js +13 -13
- package/dist/strich.d.ts +31 -2
- package/dist/strich.js +13 -13
- package/package.json +3 -2
package/dist/strich.d.ts
CHANGED
|
@@ -410,8 +410,8 @@ export declare interface OverlayConfiguration {
|
|
|
410
410
|
/**
|
|
411
411
|
* Override the STRICH logo displayed in the bottom-right corner with a custom image.
|
|
412
412
|
*
|
|
413
|
-
* The image is supplied as
|
|
414
|
-
*
|
|
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.
|
|
415
415
|
*
|
|
416
416
|
* @remarks This is a capability that is only available as a paid add-on for Enterprise licenses.
|
|
417
417
|
*/
|
|
@@ -580,6 +580,20 @@ export declare class StrichSDK {
|
|
|
580
580
|
* if the check fails for any reason (including missing/denied permissions).
|
|
581
581
|
*/
|
|
582
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'>;
|
|
583
597
|
}
|
|
584
598
|
|
|
585
599
|
/**
|
|
@@ -612,6 +626,21 @@ export declare type SymbologySpec = {
|
|
|
612
626
|
* There is rarely a need to change the default.
|
|
613
627
|
*/
|
|
614
628
|
qz?: number;
|
|
629
|
+
/**
|
|
630
|
+
* The mode to use for symbologies which support an optional checksum mechanism.
|
|
631
|
+
*
|
|
632
|
+
* Setting the mode to `0` or leaving it unset disables processing of the checksum.
|
|
633
|
+
* `1` will expect the check digit to be present, validate the barcode data against it, and strip it from the
|
|
634
|
+
* transmitted data.
|
|
635
|
+
* `2` will validate and also transmit the check digit along with the data portion.
|
|
636
|
+
*
|
|
637
|
+
* @remarks
|
|
638
|
+
* Setting this option to `1` or `2` requires that all barcodes of this symbology include a check digit.
|
|
639
|
+
* Barcodes that lack the check digit will not be readable anymore.
|
|
640
|
+
*
|
|
641
|
+
* @defaultValue 0
|
|
642
|
+
*/
|
|
643
|
+
checksumMode?: number;
|
|
615
644
|
};
|
|
616
645
|
|
|
617
646
|
export { }
|