|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <!-- <div
|
|
|
|
|
|
+ <div
|
|
v-if="show && posStyle"
|
|
v-if="show && posStyle"
|
|
class="hot-item pc"
|
|
class="hot-item pc"
|
|
:style="posStyle"
|
|
:style="posStyle"
|
|
@@ -38,7 +38,7 @@
|
|
v-if="!!~pullIndex"
|
|
v-if="!!~pullIndex"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
- </div> -->
|
|
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
@@ -66,6 +66,12 @@ const emit = defineEmits<{
|
|
): void;
|
|
): void;
|
|
}>();
|
|
}>();
|
|
|
|
|
|
|
|
+// const pos = ref();
|
|
|
|
+const [posStyle, pos] = usePixel(() => ({
|
|
|
|
+ localPos: { x: 0, y: 0, z: 0 },
|
|
|
|
+ modelId: "0",
|
|
|
|
+}));
|
|
|
|
+
|
|
const queryItems = computed(() =>
|
|
const queryItems = computed(() =>
|
|
props.tagging.images.map((image) => ({
|
|
props.tagging.images.map((image) => ({
|
|
type: MediaType.img,
|
|
type: MediaType.img,
|
|
@@ -149,11 +155,6 @@ tag.bus.on("leave", () => {
|
|
});
|
|
});
|
|
tag.bus.on("click", () => iconClickHandler());
|
|
tag.bus.on("click", () => iconClickHandler());
|
|
|
|
|
|
-const [posStyle, pos] = usePixel(() => ({
|
|
|
|
- localPos: { x: 0, y: 0, z: 0 },
|
|
|
|
- modelId: "0",
|
|
|
|
-}));
|
|
|
|
-
|
|
|
|
const changePos = () => {
|
|
const changePos = () => {
|
|
const c = tag.getImageCenter();
|
|
const c = tag.getImageCenter();
|
|
pos.value = { localPos: c };
|
|
pos.value = { localPos: c };
|