|
@@ -1,6 +1,6 @@
|
|
|
import { SceneGuide, sdk } from "../sdk";
|
|
|
import { toRaw, ref, watch, watchEffect, computed } from "vue";
|
|
|
-import { viewModeStack, showLeftPanoStack, custom, showTaggingsStack, showPathsStack, showMeasuresStack, showSearchStack } from "@/env";
|
|
|
+import { viewModeStack, showLeftPanoStack, custom, showTaggingsStack, showPathsStack, showMeasuresStack, showSearchStack, showViewSettingStack } from "@/env";
|
|
|
import { togetherCallback, asyncTimeout } from "@/utils";
|
|
|
import { fuseModels, isEdit, sysBus, fuseModelsLoaded, selectPaths } from "@/store";
|
|
|
import type { FuseModel, FuseModels, Guide, GuidePath } from "@/store";
|
|
@@ -105,7 +105,8 @@ export const playSceneGuide = (
|
|
|
const oldSelect = [...selectPaths.selects.value]
|
|
|
const oldUSelect = [...selectPaths.unSelects.value]
|
|
|
selectPaths.all.value = guide ? guide.showPath : true
|
|
|
- pop = togetherCallback([
|
|
|
+
|
|
|
+ const cleanups = [
|
|
|
showTaggingsStack.push(computed(() => guide ? guide.showTagging : true)),
|
|
|
() => {
|
|
|
oldSelect.forEach(item => selectPaths.updateSelectId(item.id, true))
|
|
@@ -114,7 +115,12 @@ export const playSceneGuide = (
|
|
|
// showPathsStack.push(computed(() => guide ? guide.showPath : true)),
|
|
|
showMeasuresStack.push(computed(() => guide ? guide.showMeasure : true)),
|
|
|
showSearchStack.push(ref(false))
|
|
|
- ])
|
|
|
+ ]
|
|
|
+ if (forceFull) {
|
|
|
+ cleanups.push(showViewSettingStack.push(ref(false)))
|
|
|
+ }
|
|
|
+
|
|
|
+ pop = togetherCallback(cleanups)
|
|
|
},
|
|
|
play: () => {
|
|
|
sceneGuide.play();
|