|
@@ -4,7 +4,7 @@
|
|
|
<Collapse v-model:activeKey="showId" ghost accordion expandIconPosition="end">
|
|
|
<template v-for="(position, i) in positions" :key="position.id">
|
|
|
<PositionSign
|
|
|
- v-if="!(unKeepAdding && position.id !== showId)"
|
|
|
+ v-show="!(unKeepAdding && position.id !== showId)"
|
|
|
:position="position"
|
|
|
:title="`位置${i + 1}`"
|
|
|
@applyGlobal="(keys) => applyGlobal(position, keys)"
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
watch,
|
|
|
watchEffect,
|
|
|
} from "vue";
|
|
|
-import { sdk, taggingsGroup } from "@/sdk";
|
|
|
+import { getTaggingPosNode, sdk, taggingsGroup } from "@/sdk";
|
|
|
import { showTaggingPositionsStack } from "@/env";
|
|
|
import {
|
|
|
autoSaveTaggings,
|
|
@@ -93,7 +93,7 @@ const flyTaggingPosition = (position: TaggingPosition) => {
|
|
|
|
|
|
pop = showTaggingPositionsStack.push(ref(new WeakSet([position])));
|
|
|
sdk.comeTo({
|
|
|
- position: position.localPos,
|
|
|
+ position: getTaggingPosNode(position)!.getImageCenter(),
|
|
|
modelId: position.modelId,
|
|
|
dur: 300,
|
|
|
distance: 3,
|