shopar-plugin 1.2.1-alpha.0 → 1.2.2-alpha.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/README.md CHANGED
@@ -292,6 +292,16 @@ Options used for the plugin setup:
292
292
  - Type: `function`
293
293
  - If provided, it will be called with the engagement duration on every (debounced) 3D engagement.
294
294
  - 3D engagement is measured as the time spent by the user rotating, panning or zooming the product in 3D.
295
+ - `trueScaleEnabled` (optional)
296
+ - Type: `boolean`
297
+ - If provided and set to `true`, enables ShopAR True Scale sizing for AR glasses, scaling them to the user's measured face. Otherwise the glasses are rendered at their authored size.
298
+ - Only applies to the Glasses category.
299
+ - Default value: `false`
300
+ - `customTrueScaleFaceWidth` (optional)
301
+ - Type: `number`
302
+ - If provided, AR glasses are scaled to this fixed face width, in millimeters, instead of measuring it with ShopAR True Scale technology.
303
+ - Sets the face width directly and works independently of `trueScaleEnabled`. When both are set, this fixed width takes precedence over the measured width.
304
+ - Only applies to the Glasses category.
295
305
 
296
306
  ### SkuData
297
307
 
@@ -476,16 +476,20 @@ type SetupOptions = {
476
476
  */
477
477
  customArVideo?: ArVideoConfig;
478
478
  /**
479
- * If provided, it will be used as the true scale face width, in millimeters, for AR glasses.
479
+ * If provided, AR glasses are scaled to this fixed face width, in millimeters.
480
480
  *
481
- * If not provided, the value is determined by ShopAR True Scale technology.
481
+ * This sets the face width directly and does not use ShopAR True Scale measurement, so it
482
+ * works independently of `trueScaleEnabled`. When both are set, this fixed width takes
483
+ * precedence over the measured width.
484
+ *
485
+ * Only applies to the Glasses category.
482
486
  */
483
487
  customTrueScaleFaceWidth?: number;
484
488
  /**
485
489
  * Controls whether ShopAR True Scale is used to size AR glasses to the user's face.
486
490
  *
487
- * Defaults to `true`. Set to `false` to disable True Scale, in which case glasses are
488
- * rendered at their authored size instead of being scaled to the measured face width.
491
+ * Defaults to `false`, in which case glasses are rendered at their authored size.
492
+ * Set to `true` to enable True Scale, scaling the glasses to the user's measured face width.
489
493
  *
490
494
  * Only applies to the Glasses category.
491
495
  */