@pixelverse/strichjs-sdk 1.6.0 → 1.7.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
@@ -360,7 +360,7 @@ export declare interface OverlayConfiguration {
360
360
  */
361
361
  focusOnTap?: boolean;
362
362
  /**
363
- * Color to use for drawing UI elements such as the view finder and camera selector. Must be specified in rgb()
363
+ * Color to use for drawing UI elements such as the viewfinder and camera selector. Must be specified in rgb()
364
364
  * format, with the color components given as integers with no separating whitespace.
365
365
  *
366
366
  * @defaultValue rgb(255,255,255)
@@ -401,13 +401,43 @@ export declare interface OverlayConfiguration {
401
401
  */
402
402
  targetingLineActiveColor?: string;
403
403
  /**
404
- * Corner radius in pixels for rectangular elements such as view finder and camera selector.
404
+ * Corner radius in pixels for rectangular elements such as viewfinder and camera selector.
405
405
  *
406
406
  * The allowed range of the corner radius is 0 to 8 pixels.
407
407
  *
408
408
  * @defaultValue 0
409
409
  */
410
410
  cornerRadius?: number;
411
+ /**
412
+ * Border width in pixels of the viewfinder, the rectangle around the region of interest.
413
+ *
414
+ * @remarks
415
+ * The allowed range is 1 to 20 pixels. Values outside the range are clamped.
416
+ *
417
+ * @defaultValue 1
418
+ */
419
+ viewfinderBorderWidth?: number;
420
+ /**
421
+ * Corner radius in pixels of the viewfinder, the rectangle around the region of interest.
422
+ *
423
+ * This property applies only to the viewfinder and overrides the {@link OverlayConfiguration.cornerRadius} property.
424
+ *
425
+ * The allowed range of the corner radius is 0 to 20 pixels.
426
+ *
427
+ * @defaultValue 0
428
+ */
429
+ viewfinderCornerRadius?: number;
430
+ /**
431
+ * Color to use for de-emphasizing the area around the viewfinder.
432
+ *
433
+ * The color will be used to create a mask around the viewfinder/region of interest to aid the user in focusing
434
+ * the camera on the barcode.
435
+ *
436
+ * A semi-translucent dark color works best, e.g. rgba(0,0,0,0.5) would use a semi-translucent black.
437
+ *
438
+ * @defaultValue undefined
439
+ */
440
+ maskColor?: string;
411
441
  /**
412
442
  * Override the STRICH logo displayed in the bottom-right corner with a custom image.
413
443
  *
@@ -460,7 +490,7 @@ export declare interface PopupConfiguration {
460
490
  */
461
491
  resolution?: 'hd' | 'full-hd';
462
492
  /**
463
- * Optional overrides for textual popup elements.
493
+ * Optional overrides for textual content.
464
494
  */
465
495
  labels?: {
466
496
  /**
@@ -478,6 +508,9 @@ export declare interface PopupConfiguration {
478
508
  */
479
509
  cancel?: string;
480
510
  };
511
+ /**
512
+ * Optional overrides for title area and cancel button.
513
+ */
481
514
  style?: {
482
515
  /**
483
516
  * Background color to use for title. Must be specified in rgb() or rgba() notation.
@@ -708,9 +741,9 @@ export declare type SymbologyName = 'ean13' | 'ean8' | 'upca' | 'upce' | 'databa
708
741
  */
709
742
  export declare type SymbologySpec = {
710
743
  /**
711
- * The name of the symbology.
744
+ * The name of the 1D barcode symbology.
712
745
  */
713
- name: SymbologyName;
746
+ name: 'ean13' | 'ean8' | 'upca' | 'upce' | 'databar' | 'databar-exp' | 'code39' | 'code93' | 'code128' | 'i25' | 'codabar';
714
747
  /**
715
748
  * The minimum length of the barcode, only has an effect for variable-length symbologies.
716
749
  */
@@ -741,6 +774,35 @@ export declare type SymbologySpec = {
741
774
  * @defaultValue 0
742
775
  */
743
776
  checksumMode?: number;
777
+ } | {
778
+ /** The name of the QR Code symbology */
779
+ name: 'qr';
780
+ /**
781
+ * Enable detection of QR Codes with rounded finder patterns.
782
+ *
783
+ * @remarks
784
+ * The finder patterns of a QR Code are nominally square with straight edges. The straight edges
785
+ * are useful in optimizing the detection of finder pattern triplets and mapping of the QR Code.
786
+ * The ISO specification mandates square finder patterns, but rounded finder patterns are used
787
+ * in practice, especially outside of industrial use cases.
788
+ *
789
+ * @defaultValue false
790
+ */
791
+ roundedFPs: boolean;
792
+ /**
793
+ * Enable detection of QR Codes on curved/bent surfaces.
794
+ *
795
+ * @remarks
796
+ * More advanced algorithms will be used to read QR Codes from curved or bent surfaces. This option
797
+ * incurs extra processing time and only makes sense if your QR Codes are printed on curved surfaces
798
+ * such as bottles, barrels and other cylindrical or spherical items.
799
+ *
800
+ * @defaultValue false
801
+ */
802
+ curved: boolean;
803
+ } | {
804
+ /** The name of the 2D symbology */
805
+ name: 'aztec' | 'datamatrix' | 'pdf417';
744
806
  };
745
807
 
746
808
  export { }