|
@@ -261,13 +261,11 @@ onMounted(async () => {
|
|
// if (currentScene.value.someData) {
|
|
// if (currentScene.value.someData) {
|
|
// hotspots = typeof currentScene.value.someData == "string" ? JSON.parse(currentScene.value.someData).hotspots : currentScene.value.someData.hotspots;
|
|
// hotspots = typeof currentScene.value.someData == "string" ? JSON.parse(currentScene.value.someData).hotspots : currentScene.value.someData.hotspots;
|
|
// }
|
|
// }
|
|
-
|
|
|
|
let currentHotspots = hotspots.value.filter((item) => item.navigationId == currentScene.value.id);
|
|
let currentHotspots = hotspots.value.filter((item) => item.navigationId == currentScene.value.id);
|
|
if (currentHotspots.length) {
|
|
if (currentHotspots.length) {
|
|
app.Tags.initHotspot(currentHotspots, false);
|
|
app.Tags.initHotspot(currentHotspots, false);
|
|
}
|
|
}
|
|
-
|
|
|
|
- handleVisualLimit(app, currentScene.value);
|
|
|
|
|
|
+ handleVisualLimit(app, currentScene.value,workVisualAngleList);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
initWxShare(lang);
|
|
initWxShare(lang);
|
|
@@ -281,10 +279,11 @@ onMounted(async () => {
|
|
const handlePass = () => {
|
|
const handlePass = () => {
|
|
hasPasswordLock.value = false;
|
|
hasPasswordLock.value = false;
|
|
};
|
|
};
|
|
-const handleVisualLimit = (app, currentScene) => {
|
|
|
|
|
|
+const handleVisualLimit = (app, currentScene,workVisualAngleList) => {
|
|
// const { vlookatmax, vlookatmin } = currentScene.initVisual;
|
|
// const { vlookatmax, vlookatmin } = currentScene.initVisual;
|
|
// console.log('initVisual',currentScene.initVisual)
|
|
// console.log('initVisual',currentScene.initVisual)
|
|
- let currnetVisual = workVisualAngleList.forEach((item) => item.navigationId == currentScene.value.id);
|
|
|
|
|
|
+ // let currnetVisual = workVisualAngleList.find((item) => item.navigationId == currentScene.value.id);
|
|
|
|
+ let currnetVisual = workVisualAngleList.find((item) => item.navigationId == currentScene.id);
|
|
app.krpanoDom.set(`view.limitview`, "lookat");
|
|
app.krpanoDom.set(`view.limitview`, "lookat");
|
|
app.krpanoDom.set(`view.vlookatmin`, currnetVisual.vlookatmin || -90);
|
|
app.krpanoDom.set(`view.vlookatmin`, currnetVisual.vlookatmin || -90);
|
|
app.krpanoDom.set(`view.vlookatmax`, currnetVisual.vlookatmax || 90);
|
|
app.krpanoDom.set(`view.vlookatmax`, currnetVisual.vlookatmax || 90);
|