|
@@ -68,7 +68,7 @@ export default defineComponent({
|
|
|
if (item.svgElement) {
|
|
|
const noteEle = document.querySelector(`#vf-${item.svgElement?.attrs?.id}`);
|
|
|
if (noteEle) {
|
|
|
- const noteBbox = noteEle.getBoundingClientRect?.() || { x: 0, width: 0 };
|
|
|
+ let noteBbox = noteEle.getBoundingClientRect?.() || { x: 0, width: 0 };
|
|
|
if (state.musicRenderType !== EnumMusicRenderType.staff) {
|
|
|
noteItem.bbox = {
|
|
|
left: noteBbox.x - parentLeft - noteBbox.width / 4 + "px",
|