|
@@ -1,10 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<LoadingLogo v-if="workEnable" />
|
|
<LoadingLogo v-if="workEnable" />
|
|
<template v-if="workEnable">
|
|
<template v-if="workEnable">
|
|
- <Opening
|
|
|
|
- :coverData="coverInfo"
|
|
|
|
- v-if="coverInfo.isShowCover && !hasPasswordLock"
|
|
|
|
- />
|
|
|
|
|
|
+ <Opening :coverData="coverInfo" v-if="coverInfo.isShowCover && !hasPasswordLock" />
|
|
<Password @pass="handlePass" />
|
|
<Password @pass="handlePass" />
|
|
<Share />
|
|
<Share />
|
|
<div class="ui-view-layout" :class="{ show: show }">
|
|
<div class="ui-view-layout" :class="{ show: show }">
|
|
@@ -30,16 +27,8 @@ import Opening from "@/components/assembly/OpeningMobile";
|
|
import LoadingLogo from "@/components/assembly/Loading";
|
|
import LoadingLogo from "@/components/assembly/Loading";
|
|
import { createApp } from "@/app";
|
|
import { createApp } from "@/app";
|
|
|
|
|
|
-import {
|
|
|
|
- ref,
|
|
|
|
- onMounted,
|
|
|
|
- computed,
|
|
|
|
- unref,
|
|
|
|
- onBeforeMount,
|
|
|
|
- watch,
|
|
|
|
- nextTick,
|
|
|
|
-} from "vue";
|
|
|
|
-import { getPanoInfo, checkWork, exchangeId } from "@/apis";
|
|
|
|
|
|
+import { ref, onMounted, computed, unref, onBeforeMount, watch, nextTick } from "vue";
|
|
|
|
+import { getPanoInfo, checkWork, exchangeId, getWorkInfo } from "@/apis";
|
|
import { useStore } from "vuex";
|
|
import { useStore } from "vuex";
|
|
import config from "@/utils/config";
|
|
import config from "@/utils/config";
|
|
import browser from "@/utils/browser";
|
|
import browser from "@/utils/browser";
|
|
@@ -61,9 +50,7 @@ const lang = getLocale();
|
|
const hasPasswordLock = ref(false);
|
|
const hasPasswordLock = ref(false);
|
|
|
|
|
|
const currentScene = computed(() => store.getters["scene/currentScene"]);
|
|
const currentScene = computed(() => store.getters["scene/currentScene"]);
|
|
-const currentCatalogRoot = computed(
|
|
|
|
- () => store.getters["scene/currentCatalogRoot"]
|
|
|
|
-);
|
|
|
|
|
|
+const currentCatalogRoot = computed(() => store.getters["scene/currentCatalogRoot"]);
|
|
|
|
|
|
const isAutoRotate = computed(() => store.getters["functions/isAutoRotate"]);
|
|
const isAutoRotate = computed(() => store.getters["functions/isAutoRotate"]);
|
|
|
|
|
|
@@ -80,25 +67,22 @@ onBeforeMount(() => {
|
|
|
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
if (!browser.isMobile()) {
|
|
if (!browser.isMobile()) {
|
|
- window.location.href = window.location.href.replace(
|
|
|
|
- "showMobile.html",
|
|
|
|
- "show.html"
|
|
|
|
- );
|
|
|
|
|
|
+ window.location.href = window.location.href.replace("showMobile.html", "show.html");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
const idRes = await exchangeId({
|
|
const idRes = await exchangeId({
|
|
- id: config.projectNum
|
|
|
|
- })
|
|
|
|
- const { id, num, calcStatus } = idRes.data
|
|
|
|
- config.projectNum = id
|
|
|
|
|
|
+ id: config.projectNum,
|
|
|
|
+ });
|
|
|
|
+ const { id, num, calcStatus } = idRes.data;
|
|
|
|
+ config.projectNum = id;
|
|
|
|
|
|
if (calcStatus === 0) {
|
|
if (calcStatus === 0) {
|
|
Dialog.alert({
|
|
Dialog.alert({
|
|
title: t("common.tips"),
|
|
title: t("common.tips"),
|
|
- content: t('common.calcing'),
|
|
|
|
|
|
+ content: t("common.calcing"),
|
|
okText: t("common.confirm"),
|
|
okText: t("common.confirm"),
|
|
});
|
|
});
|
|
- return
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
|
|
let res = await checkWork();
|
|
let res = await checkWork();
|
|
@@ -106,25 +90,36 @@ onMounted(async () => {
|
|
workEnable.value = res.data;
|
|
workEnable.value = res.data;
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- getPanoInfo().then(async (data) => {
|
|
|
|
- isShowOpeningAnimation.value = data.isShowOpeningAnimation
|
|
|
|
- ? Number(data.isShowOpeningAnimation)
|
|
|
|
- : 0;
|
|
|
|
|
|
+ // getPanoInfo().then(async (data) => {
|
|
|
|
+ getWorkInfo().then(async (res) => {
|
|
|
|
+ let data = res.data;
|
|
|
|
+
|
|
|
|
+ let { workOpeningAnimation, work, navigationTrees, workVisualAngleList, workCustomMaskList, workHotList } = data;
|
|
|
|
+ store.commit("tags/setData", { hotspots: workHotList });
|
|
|
|
+ isShowOpeningAnimation.value = workOpeningAnimation.isShowOpeningAnimation ? Number(workOpeningAnimation.isShowOpeningAnimation) : 0;
|
|
//TODO 兼容1.2.0或以下数据
|
|
//TODO 兼容1.2.0或以下数据
|
|
- if (
|
|
|
|
- !("isShowOpeningAnimation" in data) &&
|
|
|
|
- "openingAnimationType" in data &&
|
|
|
|
- data.openingAnimationType.length > 0
|
|
|
|
- ) {
|
|
|
|
|
|
+ if (!("isShowOpeningAnimation" in workOpeningAnimation) && "openingAnimationType" in workOpeningAnimation && workOpeningAnimation.openingAnimationType.length > 0) {
|
|
console.log("小行星没有开关,但有openingAnimationType强制开启");
|
|
console.log("小行星没有开关,但有openingAnimationType强制开启");
|
|
isShowOpeningAnimation.value = 1;
|
|
isShowOpeningAnimation.value = 1;
|
|
}
|
|
}
|
|
- store.commit("scene/setScenes", data.scenes);
|
|
|
|
- store.commit(
|
|
|
|
- "scene/setPassword",
|
|
|
|
- data.password === "" ? false : data.password
|
|
|
|
- );
|
|
|
|
- if (data.password.length > 0) {
|
|
|
|
|
|
+
|
|
|
|
+ let scenes = [];
|
|
|
|
+ navigationTrees.forEach((item) => {
|
|
|
|
+ item.children.forEach((s_item) => {
|
|
|
|
+ if (s_item.type != "group") {
|
|
|
|
+ scenes.push(s_item);
|
|
|
|
+ }
|
|
|
|
+ s_item.children.forEach((t_item) => {
|
|
|
|
+ if (t_item.type != "group") {
|
|
|
|
+ scenes.push(t_item);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ store.commit("scene/setScenes", scenes);
|
|
|
|
+ store.commit("scene/setPassword", work.password === "" ? false : work.password);
|
|
|
|
+ if (work.password.length > 0) {
|
|
hasPasswordLock.value = true;
|
|
hasPasswordLock.value = true;
|
|
}
|
|
}
|
|
store.commit("scene/setMetaData", data);
|
|
store.commit("scene/setMetaData", data);
|
|
@@ -132,77 +127,90 @@ onMounted(async () => {
|
|
// document.title = data.name || t("common.no_title");
|
|
// document.title = data.name || t("common.no_title");
|
|
|
|
|
|
let firstScene = "";
|
|
let firstScene = "";
|
|
-
|
|
|
|
if (config.sceneNum) {
|
|
if (config.sceneNum) {
|
|
- console.log(config.sceneNum);
|
|
|
|
- firstScene = data.scenes.find(
|
|
|
|
- (item) => item.sceneCode == config.sceneNum
|
|
|
|
- );
|
|
|
|
|
|
+ firstScene = scenes.find((item) => item.sceneCode == config.sceneNum);
|
|
} else if (data.firstScene) {
|
|
} else if (data.firstScene) {
|
|
- firstScene = data.scenes.find(
|
|
|
|
- (item) => item.sceneCode == data.firstScene.sceneCode
|
|
|
|
- );
|
|
|
|
|
|
+ firstScene = scenes.find((item) => item.sceneCode == data.firstScene.sceneCode);
|
|
}
|
|
}
|
|
|
|
|
|
// 所有audio入口
|
|
// 所有audio入口
|
|
|
|
|
|
- const currentSceneData = firstScene || data.scenes[0];
|
|
|
|
|
|
+ const currentSceneData = firstScene || scenes[0];
|
|
// debugger;
|
|
// debugger;
|
|
- store.dispatch(
|
|
|
|
- "audio/initNormalBGM",
|
|
|
|
- data.backgroundMusic ? data.backgroundMusic.ossPath : ""
|
|
|
|
- );
|
|
|
|
|
|
+ store.dispatch("audio/initNormalBGM", data.workBackgroundMusic ? data.workBackgroundMusic.ossPath : "");
|
|
store.commit("scene/setCurrentScene", currentSceneData);
|
|
store.commit("scene/setCurrentScene", currentSceneData);
|
|
-
|
|
|
|
- // 过滤空分组
|
|
|
|
- let ttt = data.catalogRoot.filter((item) => {
|
|
|
|
- let flag = "";
|
|
|
|
-
|
|
|
|
- if (item.children) {
|
|
|
|
- item.children.some((sub) => {
|
|
|
|
- flag = data.scenes.some((son) => {
|
|
|
|
- // console.log(String(son.category).toLowerCase(), String(sub).toLowerCase());
|
|
|
|
- return (
|
|
|
|
- String(son.category).toLowerCase() == String(sub).toLowerCase()
|
|
|
|
- );
|
|
|
|
- });
|
|
|
|
- return flag;
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- return flag;
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- data.catalogRoot = ttt;
|
|
|
|
-
|
|
|
|
- let catalog = data.catalogs.find(
|
|
|
|
- (item) => item.id == currentScene.value.category
|
|
|
|
- );
|
|
|
|
-
|
|
|
|
- // 查询初始场景的所在1级分组
|
|
|
|
- data.catalogRoot.forEach((item) => {
|
|
|
|
- let temp =
|
|
|
|
- item.children && item.children.find((sub) => sub == catalog.id);
|
|
|
|
- if (temp) {
|
|
|
|
- store.commit("scene/setCurrentCatalogRoot", item);
|
|
|
|
- return;
|
|
|
|
|
|
+ let activeScene = null;
|
|
|
|
+ navigationTrees.forEach((item, index) => {
|
|
|
|
+ activeScene = item.children.find((pano) => pano.id == currentSceneData.id);
|
|
|
|
+
|
|
|
|
+ if (activeScene) {
|
|
|
|
+ store.commit("scene/setCurrentScenesList", item.children);
|
|
|
|
+ store.commit("scene/setData", { currentSecondId: null, currentRootId: item.id });
|
|
|
|
+ // throw new Error("LoopTerminated");
|
|
}
|
|
}
|
|
|
|
+ item = item.children.forEach((s_item, s_index) => {
|
|
|
|
+ activeScene = s_item.children.find((pano) => pano.id == currentSceneData.id);
|
|
|
|
+
|
|
|
|
+ if (activeScene) {
|
|
|
|
+ store.commit("scene/setCurrentScenesList", s_item.children);
|
|
|
|
+ store.commit("scene/setData", { currentSecondId: s_item.id, currentRootId: item.id });
|
|
|
|
+ // throw new Error("LoopTerminated");
|
|
|
|
+ }
|
|
|
|
+ s_item = s_item.children.forEach((t_item, t_index) => {
|
|
|
|
+ activeScene = t_item.children.find((pano) => pano.id == currentSceneData.id);
|
|
|
|
+
|
|
|
|
+ if (activeScene) {
|
|
|
|
+ store.commit("scene/setCurrentScenesList", s_item.children);
|
|
|
|
+ store.commit("scene/setData", { currentSecondId: s_item.id, currentRootId: item.id });
|
|
|
|
+ // throw new Error("LoopTerminated");
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
});
|
|
});
|
|
-
|
|
|
|
- // 查询初始场景的所在2级分组
|
|
|
|
- store.commit("scene/setCurrentSecondary", catalog);
|
|
|
|
-
|
|
|
|
- store.commit("functions/setAutoRotate", !!data.isAuto);
|
|
|
|
|
|
+ // // 过滤空分组
|
|
|
|
+ // let ttt = data.catalogRoot.filter((item) => {
|
|
|
|
+ // let flag = "";
|
|
|
|
+
|
|
|
|
+ // if (item.children) {
|
|
|
|
+ // item.children.some((sub) => {
|
|
|
|
+ // flag = data.scenes.some((son) => {
|
|
|
|
+ // // console.log(String(son.category).toLowerCase(), String(sub).toLowerCase());
|
|
|
|
+ // return String(son.category).toLowerCase() == String(sub).toLowerCase();
|
|
|
|
+ // });
|
|
|
|
+ // return flag;
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // return flag;
|
|
|
|
+ // });
|
|
|
|
+
|
|
|
|
+ // data.catalogRoot = ttt;
|
|
|
|
+
|
|
|
|
+ // let catalog = data.catalogs.find((item) => item.id == currentScene.value.category);
|
|
|
|
+
|
|
|
|
+ // // 查询初始场景的所在1级分组
|
|
|
|
+ // data.catalogRoot.forEach((item) => {
|
|
|
|
+ // let temp = item.children && item.children.find((sub) => sub == catalog.id);
|
|
|
|
+ // if (temp) {
|
|
|
|
+ // store.commit("scene/setCurrentCatalogRoot", item);
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+
|
|
|
|
+ // // 查询初始场景的所在2级分组
|
|
|
|
+ // store.commit("scene/setCurrentSecondary", catalog);
|
|
|
|
+
|
|
|
|
+ store.commit("functions/setAutoRotate", !!work.isAuto);
|
|
|
|
|
|
show.value = true;
|
|
show.value = true;
|
|
|
|
|
|
- let isHavePano = data.scenes.some((item) => item.type == "pano");
|
|
|
|
|
|
+ let isHavePano = scenes.some((item) => item.type == "pano");
|
|
|
|
+ let currnetVisual = workVisualAngleList.forEach((item) => item.navigationId == currentScene.value.id);
|
|
|
|
+
|
|
document.body.setAttribute("is-mobile", true);
|
|
document.body.setAttribute("is-mobile", true);
|
|
|
|
|
|
const app = createApp({
|
|
const app = createApp({
|
|
// xml: "%HTMLPATH%/static/template/tour.xml",
|
|
// xml: "%HTMLPATH%/static/template/tour.xml",
|
|
- xml: `${process.env.VUE_APP_CDN}/720yun_fd_manage/${
|
|
|
|
- config.projectNum
|
|
|
|
- }/tour.xml?rnd=${Math.random()}`,
|
|
|
|
|
|
+ xml: `${process.env.VUE_APP_CDN}/720yun_fd_manage/${config.projectNum}/tour.xml?rnd=${Math.random()}`,
|
|
swf: "%HTMLPATH%/showviewer/lib/krpano/tour.swf",
|
|
swf: "%HTMLPATH%/showviewer/lib/krpano/tour.swf",
|
|
target: "pano",
|
|
target: "pano",
|
|
html5: "auto",
|
|
html5: "auto",
|
|
@@ -210,23 +218,16 @@ onMounted(async () => {
|
|
isHavePano,
|
|
isHavePano,
|
|
vars: {
|
|
vars: {
|
|
startscene: "scene_" + currentScene.value.sceneCode,
|
|
startscene: "scene_" + currentScene.value.sceneCode,
|
|
- "view.org_vlookat": currentScene.value.initVisual
|
|
|
|
- ? currentScene.value.initVisual.vlookat
|
|
|
|
- : 0,
|
|
|
|
- "view.org_hlookat": currentScene.value.initVisual
|
|
|
|
- ? currentScene.value.initVisual.hlookat
|
|
|
|
- : 0,
|
|
|
|
- "autorotate.enabled": !!data.isAuto,
|
|
|
|
- "skin_settings.littleplanetintro":
|
|
|
|
- typeof data.openingAnimationType === "number"
|
|
|
|
- ? data.openingAnimationType
|
|
|
|
- : 1,
|
|
|
|
|
|
+ "view.org_vlookat": currnetVisual ? currnetVisual.vlookat : 0,
|
|
|
|
+ "view.org_hlookat": currnetVisual ? currnetVisual.hlookat : 0,
|
|
|
|
+ "autorotate.enabled": !!work.isAuto,
|
|
|
|
+ "skin_settings.littleplanetintro": typeof workOpeningAnimation.openingAnimationType === "number" ? workOpeningAnimation.openingAnimationType : 1,
|
|
"skin_settings.lptswitch": unref(isShowOpeningAnimation),
|
|
"skin_settings.lptswitch": unref(isShowOpeningAnimation),
|
|
},
|
|
},
|
|
passQueryParameters: true,
|
|
passQueryParameters: true,
|
|
});
|
|
});
|
|
if (app) {
|
|
if (app) {
|
|
- coverInfo.value = data.coverInfo || {};
|
|
|
|
|
|
+ coverInfo.value = data.workCoverType || {};
|
|
app.Scene.lock();
|
|
app.Scene.lock();
|
|
//如果不需要开场封面就直接渲染
|
|
//如果不需要开场封面就直接渲染
|
|
if (!coverInfo.value?.isShowCover) {
|
|
if (!coverInfo.value?.isShowCover) {
|
|
@@ -236,22 +237,23 @@ onMounted(async () => {
|
|
if (isHavePano) {
|
|
if (isHavePano) {
|
|
app.Scene.on("sceneReady", () => {
|
|
app.Scene.on("sceneReady", () => {
|
|
if (app.krpanoDom) {
|
|
if (app.krpanoDom) {
|
|
- const { sky, earth } = currentScene.value.customMask;
|
|
|
|
|
|
+ // const { sky, earth } = currentScene.value.customMask;
|
|
|
|
+ let customMask = workCustomMaskList.find((item) => item.navigationId == currentScene.value.id);
|
|
|
|
+ const { sky, earth } = customMask.data;
|
|
handleMasksUpdate(sky, earth, app);
|
|
handleMasksUpdate(sky, earth, app);
|
|
- app.krpanoDom.set(
|
|
|
|
- `layer[webvr_exitbutton].html`,
|
|
|
|
- t("common.exit_vr")
|
|
|
|
- );
|
|
|
|
|
|
+ app.krpanoDom.set(`layer[webvr_exitbutton].html`, t("common.exit_vr"));
|
|
}
|
|
}
|
|
|
|
|
|
- let hotspots = [];
|
|
|
|
- if (currentScene.value.someData) {
|
|
|
|
- hotspots =
|
|
|
|
- typeof currentScene.value.someData == "string"
|
|
|
|
- ? JSON.parse(currentScene.value.someData).hotspots
|
|
|
|
- : currentScene.value.someData.hotspots;
|
|
|
|
|
|
+ // let hotspots = [];
|
|
|
|
+ // if (currentScene.value.someData) {
|
|
|
|
+ // 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);
|
|
|
|
+ if (currentHotspots.length) {
|
|
|
|
+ app.Tags.initHotspot(currentHotspots, false);
|
|
}
|
|
}
|
|
- app.Tags.initHotspot(hotspots, false);
|
|
|
|
|
|
+
|
|
handleVisualLimit(app, currentScene.value);
|
|
handleVisualLimit(app, currentScene.value);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -267,11 +269,12 @@ const handlePass = () => {
|
|
hasPasswordLock.value = false;
|
|
hasPasswordLock.value = false;
|
|
};
|
|
};
|
|
const handleVisualLimit = (app, currentScene) => {
|
|
const handleVisualLimit = (app, currentScene) => {
|
|
- 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);
|
|
app.krpanoDom.set(`view.limitview`, "lookat");
|
|
app.krpanoDom.set(`view.limitview`, "lookat");
|
|
- app.krpanoDom.set(`view.vlookatmin`, vlookatmin);
|
|
|
|
- app.krpanoDom.set(`view.vlookatmax`, vlookatmax);
|
|
|
|
|
|
+ app.krpanoDom.set(`view.vlookatmin`, currnetVisual.vlookatmin || -90);
|
|
|
|
+ app.krpanoDom.set(`view.vlookatmax`, currnetVisual.vlookatmax || 90);
|
|
};
|
|
};
|
|
const handleMasksUpdate = (skyMask, earthMask, app) => {
|
|
const handleMasksUpdate = (skyMask, earthMask, app) => {
|
|
const lang = getLocale();
|
|
const lang = getLocale();
|
|
@@ -282,10 +285,7 @@ const handleMasksUpdate = (skyMask, earthMask, app) => {
|
|
}
|
|
}
|
|
|
|
|
|
if (skyMask.icon) {
|
|
if (skyMask.icon) {
|
|
- app.krpanoDom.set(
|
|
|
|
- `hotspot[peaklogo].url`,
|
|
|
|
- skyMask.icon + "?x-oss-process=image/resize,w_1000"
|
|
|
|
- );
|
|
|
|
|
|
+ app.krpanoDom.set(`hotspot[peaklogo].url`, skyMask.icon + "?x-oss-process=image/resize,w_1000");
|
|
} else {
|
|
} else {
|
|
app.krpanoDom.set(`hotspot[peaklogo].url`, defaultMask);
|
|
app.krpanoDom.set(`hotspot[peaklogo].url`, defaultMask);
|
|
}
|
|
}
|
|
@@ -301,25 +301,16 @@ const handleMasksUpdate = (skyMask, earthMask, app) => {
|
|
}
|
|
}
|
|
if (earthMask) {
|
|
if (earthMask) {
|
|
if ("isShow" in earthMask) {
|
|
if ("isShow" in earthMask) {
|
|
- app.krpanoDom.set(
|
|
|
|
- `hotspot[nadirlogo].visible`,
|
|
|
|
- Boolean(earthMask.isShow)
|
|
|
|
- );
|
|
|
|
|
|
+ app.krpanoDom.set(`hotspot[nadirlogo].visible`, Boolean(earthMask.isShow));
|
|
}
|
|
}
|
|
if (earthMask.icon) {
|
|
if (earthMask.icon) {
|
|
- app.krpanoDom.set(
|
|
|
|
- `hotspot[nadirlogo].url`,
|
|
|
|
- earthMask.icon + "?x-oss-process=image/resize,w_1000"
|
|
|
|
- );
|
|
|
|
|
|
+ app.krpanoDom.set(`hotspot[nadirlogo].url`, earthMask.icon + "?x-oss-process=image/resize,w_1000");
|
|
}
|
|
}
|
|
if ("scale" in earthMask) {
|
|
if ("scale" in earthMask) {
|
|
app.krpanoDom.set(`hotspot[nadirlogo].scale`, earthMask.scale);
|
|
app.krpanoDom.set(`hotspot[nadirlogo].scale`, earthMask.scale);
|
|
}
|
|
}
|
|
if ("antidistorted" in earthMask) {
|
|
if ("antidistorted" in earthMask) {
|
|
- app.krpanoDom.set(
|
|
|
|
- `hotspot[nadirlogo].distorted`,
|
|
|
|
- earthMask.antidistorted
|
|
|
|
- );
|
|
|
|
|
|
+ app.krpanoDom.set(`hotspot[nadirlogo].distorted`, earthMask.antidistorted);
|
|
if (!earthMask.antidistorted) {
|
|
if (!earthMask.antidistorted) {
|
|
app.krpanoDom.set(`hotspot[nadirlogo].scale`, earthMask.scale * 1.5);
|
|
app.krpanoDom.set(`hotspot[nadirlogo].scale`, earthMask.scale * 1.5);
|
|
}
|
|
}
|