@pixelverse/strichjs-sdk 1.6.0 → 1.6.1

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.