|
@@ -297,7 +297,7 @@ export default defineComponent({
|
|
|
const boundingBox = getBoundingBoxByverticalNote(item)
|
|
|
let X: number | undefined = undefined
|
|
|
try {
|
|
|
- const bbox = item.svgElelent.bbox || item.svgElelent?.getBoundingBox()
|
|
|
+ const bbox = item.svgElelent?.bbox || item.svgElelent?.getBoundingBox && item.svgElelent?.getBoundingBox()
|
|
|
X = formatZoom(bbox?.x || (index === 0 ? boundingBox.start_x : boundingBox.end_x))
|
|
|
} catch (error) {
|
|
|
console.log(error)
|