|
@@ -1,10 +1,11 @@
|
|
|
import { diffArrayChange, mount, shallowWatchArray } from "@/utils";
|
|
|
import TaggingComponent from "@/components/path/list.vue";
|
|
|
import { Path as PathData, paths } from "@/store/path";
|
|
|
-import { Path, SDK } from "../sdk";
|
|
|
+import { sdk, Path, SDK } from "../sdk";
|
|
|
import { reactive, watch } from "vue";
|
|
|
import { groupProxy } from "@/store/group";
|
|
|
import { isScenePlayRun, pauseScene, playScene } from "@/utils/full";
|
|
|
+import { analysisPose, setPose } from ".";
|
|
|
|
|
|
// -----------------导览线关联--------------------
|
|
|
export type PathNode = Path;
|
|
@@ -36,18 +37,21 @@ export const taggingsGroup = groupProxy(() => {
|
|
|
|
|
|
export const playScenePath = (
|
|
|
path: PathData,
|
|
|
- forceFull = false
|
|
|
+ forceFull = false,
|
|
|
) => {
|
|
|
const node = getPathNode(path)
|
|
|
if (!node) return null;
|
|
|
|
|
|
+ let initPose: any;
|
|
|
playScene({
|
|
|
play: () => {
|
|
|
return new Promise(resolve => {
|
|
|
+ initPose = analysisPose(sdk.getPose());
|
|
|
node.play(resolve)
|
|
|
})
|
|
|
},
|
|
|
pause: () => {
|
|
|
+ setPose(initPose)
|
|
|
node.pause();
|
|
|
}
|
|
|
}, forceFull)
|