@shopware-ag/dive 1.16.26-beta.1 → 1.16.26-beta.3
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/build/dive.cjs +8 -3
- package/build/dive.cjs.map +1 -1
- package/build/dive.js +8 -3
- package/build/dive.js.map +1 -1
- package/package.json +1 -1
- package/src/ar/AR.ts +10 -2
package/package.json
CHANGED
package/src/ar/AR.ts
CHANGED
|
@@ -110,7 +110,15 @@ export class DIVEAR {
|
|
|
110
110
|
encodeURIComponent(modelUrl.toString()),
|
|
111
111
|
);
|
|
112
112
|
|
|
113
|
-
const
|
|
113
|
+
const version = '1.0';
|
|
114
|
+
|
|
115
|
+
console.log('USING SCENE VIEWER');
|
|
116
|
+
console.log('version:', version);
|
|
117
|
+
console.log('params:', params.toString());
|
|
118
|
+
console.log('modelUrl:', modelUrl.toString());
|
|
119
|
+
console.log('locationUrl:', locationUrl.toString());
|
|
120
|
+
|
|
121
|
+
const intent = `intent://arvr.google.com/scene-viewer/${version}?${
|
|
114
122
|
params.toString() + '&file=' + modelUrl.toString()
|
|
115
123
|
}#Intent;scheme=https;package=com.google.android.googlequicksearchbox;action=android.intent.action.VIEW;S.browser_fallback_url=${encodeURIComponent(
|
|
116
124
|
locationUrl.toString(),
|
|
@@ -142,7 +150,7 @@ export class DIVEAR {
|
|
|
142
150
|
|
|
143
151
|
anchor.setAttribute('href', intent);
|
|
144
152
|
console.log('Attempting to present in AR with Scene Viewer...');
|
|
145
|
-
anchor.click();
|
|
153
|
+
// anchor.click();
|
|
146
154
|
}
|
|
147
155
|
|
|
148
156
|
private createSceneViewerSrc(): string {
|