@plattar/plattar-ar-adapter 1.136.1 → 1.139.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/README.md +2 -35
- package/build/es2015/plattar-ar-adapter.js +3090 -5432
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +79 -36
- package/build/es2019/plattar-ar-adapter.min.js +1 -1
- package/dist/ar/raw-ar.d.ts +4 -1
- package/dist/ar/raw-ar.js +75 -32
- package/dist/embed/controllers/configurator-controller.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -30,39 +30,6 @@ https://cdn.jsdelivr.net/npm/@plattar/plattar-ar-adapter/build/es2019/plattar-ar
|
|
|
30
30
|
npm install @plattar/plattar-ar-adapter
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
###
|
|
33
|
+
### _Documentation and Examples_
|
|
34
34
|
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
```typescript
|
|
38
|
-
import {ProductAR} from "@plattar/plattar-ar-adapter";
|
|
39
|
-
|
|
40
|
-
// grab your product/variation ID from the Plattar CMS
|
|
41
|
-
const productID:string = "{YOUR_PRODUCT_ID}";
|
|
42
|
-
const variationID:string = "{YOUR_VARIATION_ID}";
|
|
43
|
-
|
|
44
|
-
const webAR:ProductAR = new ProductAR(productID, variationID);
|
|
45
|
-
|
|
46
|
-
webAR.init().then((ar:ProductAR) => {
|
|
47
|
-
ar.start();
|
|
48
|
-
}).catch((err) => {
|
|
49
|
-
console.error("AR Not Available");
|
|
50
|
-
});
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
- Launch AR for Plattar Scenes
|
|
54
|
-
|
|
55
|
-
```typescript
|
|
56
|
-
import {SceneAR} from "@plattar/plattar-ar-adapter";
|
|
57
|
-
|
|
58
|
-
// grab your scene ID from the Plattar CMS
|
|
59
|
-
const sceneID:string = "{YOUR_SCENE_ID}";
|
|
60
|
-
|
|
61
|
-
const webAR:SceneAR = new SceneAR(sceneID);
|
|
62
|
-
|
|
63
|
-
webAR.init().then((ar:SceneAR) => {
|
|
64
|
-
ar.start();
|
|
65
|
-
}).catch((err) => {
|
|
66
|
-
console.error("AR Not Available");
|
|
67
|
-
});
|
|
68
|
-
```
|
|
35
|
+
- Visit [Documentation](https://plattar.github.io/plattar-ar-adapter) page for usage, guides and code examples
|