|
@@ -56,6 +56,15 @@ const calcNoteData = () => {
|
|
width: noteBbox.width * 1.5 + "px",
|
|
width: noteBbox.width * 1.5 + "px",
|
|
height: noteBbox.height * 3 + "px",
|
|
height: noteBbox.height * 3 + "px",
|
|
};
|
|
};
|
|
|
|
+ const noteHead = noteEle.querySelector(".vf-numbered-note-head");
|
|
|
|
+ const noteHeadBbox = noteHead?.getBoundingClientRect?.();
|
|
|
|
+ if (noteHeadBbox) {
|
|
|
|
+ item.bbox = {
|
|
|
|
+ left: noteHeadBbox.x - parentLeft - noteHeadBbox.width / 4,
|
|
|
|
+ width: noteHeadBbox.width * 1.5,
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
noteItem.bbox = {
|
|
noteItem.bbox = {
|
|
left: noteBbox.x - parentLeft - noteBbox.width / 4 + "px",
|
|
left: noteBbox.x - parentLeft - noteBbox.width / 4 + "px",
|