@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/build/dive.cjs
CHANGED
|
@@ -1993,7 +1993,13 @@ var init_AR = __esm({
|
|
|
1993
1993
|
"encodeURIComponent(modelUrl.toString())",
|
|
1994
1994
|
encodeURIComponent(modelUrl.toString())
|
|
1995
1995
|
);
|
|
1996
|
-
const
|
|
1996
|
+
const version = "1.0";
|
|
1997
|
+
console.log("USING SCENE VIEWER");
|
|
1998
|
+
console.log("version:", version);
|
|
1999
|
+
console.log("params:", params.toString());
|
|
2000
|
+
console.log("modelUrl:", modelUrl.toString());
|
|
2001
|
+
console.log("locationUrl:", locationUrl.toString());
|
|
2002
|
+
const intent = `intent://arvr.google.com/scene-viewer/${version}?${params.toString() + "&file=" + modelUrl.toString()}#Intent;scheme=https;package=com.google.android.googlequicksearchbox;action=android.intent.action.VIEW;S.browser_fallback_url=${encodeURIComponent(
|
|
1997
2003
|
locationUrl.toString()
|
|
1998
2004
|
)};end;`;
|
|
1999
2005
|
console.log({ intent });
|
|
@@ -2009,7 +2015,6 @@ var init_AR = __esm({
|
|
|
2009
2015
|
self.addEventListener("hashchange", undoHashChange, { once: true });
|
|
2010
2016
|
anchor.setAttribute("href", intent);
|
|
2011
2017
|
console.log("Attempting to present in AR with Scene Viewer...");
|
|
2012
|
-
anchor.click();
|
|
2013
2018
|
}
|
|
2014
2019
|
createSceneViewerSrc() {
|
|
2015
2020
|
let uri = null;
|
|
@@ -4363,7 +4368,7 @@ init_Info();
|
|
|
4363
4368
|
// package.json
|
|
4364
4369
|
var package_default = {
|
|
4365
4370
|
name: "@shopware-ag/dive",
|
|
4366
|
-
version: "1.16.26-beta.
|
|
4371
|
+
version: "1.16.26-beta.3",
|
|
4367
4372
|
description: "Shopware Spatial Framework",
|
|
4368
4373
|
type: "module",
|
|
4369
4374
|
main: "./build/dive.cjs",
|