@pixelverse/strichjs-sdk 1.10.0 → 1.11.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/dist/strich.d.ts CHANGED
@@ -567,15 +567,55 @@ export declare interface OverlayConfiguration {
567
567
  */
568
568
  maskColor?: string;
569
569
  /**
570
- * Override the STRICH logo displayed in the bottom-right corner with a custom image.
570
+ * Indicate if the zoom control should be shown in the overlay.
571
+ *
572
+ * @remarks
573
+ * This is only supported for browsers that support the 'zoom' constraint, see:
574
+ * https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints#zoom
575
+ * Notably, Safari versions earlier than 17.4 and Firefox do not support this feature.
571
576
  *
572
- * The image is supplied as an absolute URL or inline as a data URL. The image should have a transparent background
573
- * (WebP or PNG format). The recommended size is 140x30 pixels.
577
+ * @defaultValue true
578
+ */
579
+ showZoom?: boolean;
580
+ /**
581
+ * Indicate if double-tapping the overlay should cause the camera to zoom in.
574
582
  *
575
- * @remarks This is a capability that is only available as a paid add-on for Enterprise licenses. Please note that
583
+ * @remarks
584
+ * This is only supported for browsers that support the 'zoom' constraint, see:
585
+ * https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints#zoom
586
+ * Notably, Safari versions earlier than 17.4 and Firefox do not support this feature.
587
+ *
588
+ * @defaultValue true (where supported)
589
+ */
590
+ zoomOnDoubleTap?: boolean;
591
+ /**
592
+ * Override the STRICH logo displayed in the bottom-right corner with a custom image.
593
+ *
594
+ * This capability is only available for Enterprise licenses. Please note that
576
595
  * attempting to hide or replace the STRICH logo by other means is a violation of the License Agreement.
596
+ *
597
+ * The image should ideally be supplied in SVG format, either inline as a data URL or as an absolute HTTPS URL.
598
+ *
599
+ * The image will be rendered at its intrinsic size (pixel size = CSS size), which can lead to blurriness
600
+ * on high-density screens if the image is not supplied in SVG format.
601
+ *
602
+ * Setting the property to `null` will display no logo at all.
603
+ */
604
+ customLogoSrc?: string | null;
605
+ /**
606
+ * The size (in CSS pixels) used to render the custom logo.
607
+ *
608
+ * Example:
609
+ *
610
+ * ```ts
611
+ * configuration.overlay.customLogoSize = { width: 80, height: 20 };
612
+ * ```
613
+ *
614
+ * When providing a custom logo in a raster image format such as PNG, JPEG or WEBP, the image will be
615
+ * scaled to fit the specified dimensions. In this case, it's recommended to provide a high-resolution (2x or 3x)
616
+ * raster image.
577
617
  */
578
- customLogoSrc?: string;
618
+ customLogoSize?: Size;
579
619
  }
580
620
 
581
621
  /**
@@ -958,7 +998,7 @@ export declare type SymbologySpec = {
958
998
  * @remarks
959
999
  * More advanced algorithms will be used to read QR Codes from curved or bent surfaces. This option
960
1000
  * incurs extra processing time and only makes sense if your QR Codes are printed on curved surfaces
961
- * such as bottles, barrels and other cylindrical or spherical items.
1001
+ * such as bottles, barrels, and other cylindrical or spherical items.
962
1002
  *
963
1003
  * @defaultValue false
964
1004
  */