shopar-plugin 0.0.8-alpha.0 → 0.0.8-alpha.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 +5 -0
- package/dist/shopar-deepar.js +1 -1
- package/dist/shopar-plugin.d.ts +10 -5
- package/dist/shopar-plugin.esm.js +1 -1
- package/dist/shopar-plugin.js +1 -1
- package/dist/shopar-qr.js +1 -1
- package/dist/shopar-three.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -106,12 +106,17 @@ const shopAR = await ShopAR.plugin.setup({
|
|
|
106
106
|
});
|
|
107
107
|
|
|
108
108
|
myARButton.onclick = shopAR.launchAR;
|
|
109
|
+
myARButton.disabled = shopAR.launchAR === undefined;
|
|
109
110
|
my3DButton.onclick = shopAR.launch3D;
|
|
111
|
+
myARButton.disabled = shopAR.launch3D === undefined;
|
|
110
112
|
|
|
111
113
|
myCloseARButton.onclick = shopAR.closeAR;
|
|
114
|
+
myCloseARButton.disabled = shopAR.closeAR === undefined;
|
|
112
115
|
myClose3DButton.onclick = shopAR.close3D;
|
|
116
|
+
myClose3DButton.disabled = shopAR.close3D === undefined;
|
|
113
117
|
// or just:
|
|
114
118
|
myCloseButton.onclick = shopAR.close;
|
|
119
|
+
myCloseButton.disabled = shopAR.close === undefined;
|
|
115
120
|
```
|
|
116
121
|
|
|
117
122
|
If you wish to change the SKU or target element at runtime, simply call `setup()` with different parameters.
|