|
|
@@ -111,7 +111,6 @@ const queryItems = computed(() =>
|
|
|
url: getResources(getFileUrl(image)),
|
|
|
}))
|
|
|
);
|
|
|
-console.log(props.tagging.styleId);
|
|
|
const taggingStyle = computed(() => getTaggingStyle(props.tagging.styleId));
|
|
|
const tag = markRaw(
|
|
|
sdk.createTagging({
|
|
|
@@ -130,8 +129,7 @@ tag.showDelete = (show) => {
|
|
|
tag.changeCanMove(false);
|
|
|
|
|
|
const changePos = () => {
|
|
|
- const old = { localPos: tag.getImageCenter(), modelId: props.scenePos.modelId };
|
|
|
- console.log(pos.value, old);
|
|
|
+ pos.value = { localPos: tag.getImageCenter(), modelId: props.scenePos.modelId };
|
|
|
};
|
|
|
|
|
|
watch(taggingStyle, (icon) => icon && tag.changeImage(getFileUrl(icon.icon)));
|