shopar-plugin 1.2.1 → 1.2.2
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 +6 -5
- package/dist/shopar-plugin.d.ts +8 -4
- package/dist/shopar-plugin.esm.js +2 -2
- package/dist/shopar-plugin.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ There are two distinct ways of integrating the plugin: via Script tag and via NP
|
|
|
33
33
|
Add the following script to your HTML.
|
|
34
34
|
|
|
35
35
|
```html
|
|
36
|
-
<script src="https://cdn.jsdelivr.net/npm/shopar-plugin@1.2.
|
|
36
|
+
<script src="https://cdn.jsdelivr.net/npm/shopar-plugin@1.2.2/dist/shopar-plugin.js"></script>
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
It is possible to use a different CDN instead of [jsDelivr](https://www.jsdelivr.com/) (e.g. [cdnjs](https://cdnjs.com/), [unpkg](https://www.unpkg.com/)), or even a relative path if the plugin is distributed as a static asset to your app. Just make sure to set the `baseUrl` parameter accordingly (see [setup options](#shoparpluginsetupoptions) for more details).
|
|
@@ -205,7 +205,7 @@ Options used for the plugin setup:
|
|
|
205
205
|
- `baseUrl` (optional)
|
|
206
206
|
- Type: `string`
|
|
207
207
|
- If provided, defines where the additional ShopAR plugin files are fetched from.
|
|
208
|
-
- Default value: `https://cdn.jsdelivr.net/npm/shopar-plugin@1.2.
|
|
208
|
+
- Default value: `https://cdn.jsdelivr.net/npm/shopar-plugin@1.2.2/dist`
|
|
209
209
|
- `defaultUI` (optional)
|
|
210
210
|
- Type: `boolean`
|
|
211
211
|
- If provided and set to `false`, disables the default UI (buttons and error UI).
|
|
@@ -294,12 +294,13 @@ Options used for the plugin setup:
|
|
|
294
294
|
- 3D engagement is measured as the time spent by the user rotating, panning or zooming the product in 3D.
|
|
295
295
|
- `trueScaleEnabled` (optional)
|
|
296
296
|
- Type: `boolean`
|
|
297
|
-
- If provided and set to `
|
|
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
298
|
- Only applies to the Glasses category.
|
|
299
|
-
- Default value: `
|
|
299
|
+
- Default value: `false`
|
|
300
300
|
- `customTrueScaleFaceWidth` (optional)
|
|
301
301
|
- Type: `number`
|
|
302
|
-
- If provided,
|
|
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.
|
|
303
304
|
- Only applies to the Glasses category.
|
|
304
305
|
|
|
305
306
|
### SkuData
|
package/dist/shopar-plugin.d.ts
CHANGED
|
@@ -476,16 +476,20 @@ type SetupOptions = {
|
|
|
476
476
|
*/
|
|
477
477
|
customArVideo?: ArVideoConfig;
|
|
478
478
|
/**
|
|
479
|
-
* If provided,
|
|
479
|
+
* If provided, AR glasses are scaled to this fixed face width, in millimeters.
|
|
480
480
|
*
|
|
481
|
-
*
|
|
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 `
|
|
488
|
-
*
|
|
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
|
*/
|