:transform = "startingOffset"
>
<rect
- ref="bubble"
+ ref="bubbleTag"
id="#bubble"
x="30"
y="10"
font-size="14"
font-family="SF Pro"
id="#message"
- ref="content"
+ ref="contentTag"
:fill="textFill"
>
<tspan
let textArr: string[] = reactive([]);
const signature = ref("");
+ const msgID = ref(props.item.id);
+ const bubbleTag = ref(`bubble${msgID.value}`);
+ const contentTag = ref(`content${msgID.value}`);
+
let bubble: any;
let content: any;
}
createTextBox(props.item.content, 32);
onMounted(async () => {
- bubble = document.getElementById("#bubble");
- content = document.getElementById("#message");
+ console.log(bubbleTag.value);
+ console.log(contentTag.value)
+ bubble = bubbleTag.value;
+ content = contentTag.value;
await adjustRect();
signaturePosition();
signaturePosition,
textArr,
signature,
- content
+ contentTag,
+ msgID,
+ bubbleTag
}
},