|
@@ -236,6 +236,7 @@ export const getAllNodes = (osmd: any) => {
|
|
|
for (const v of voiceEntries) {
|
|
|
// 始终只取第一个声部中第一个音符的时间
|
|
|
let note: any = v.notes[0]
|
|
|
+ // console.log( note.sourceMeasure.verticalMeasureList)
|
|
|
if (['Piano'].includes(state.activeDetail?.code) || state.activeDetail?.musicSheetType == 'CONCERT') {
|
|
|
let _notes = []
|
|
|
try {
|
|
@@ -1521,6 +1522,7 @@ const getImageSize = (src: string): Promise<HTMLImageElement> => {
|
|
|
|
|
|
// 计算选择范围内的小节宽度高度
|
|
|
export const setSettionBackground = () => {
|
|
|
+ // console.log(1111)
|
|
|
state.sectionBoundingBoxs = []
|
|
|
const [start, end] = state.section.sort((a, b) => a.i - b.i)
|
|
|
let startIndex = 0,
|
|
@@ -1553,7 +1555,7 @@ export const setSettionBackground = () => {
|
|
|
const boundingBox = getBoundingBoxByNote(item.noteElement, {
|
|
|
before: true,
|
|
|
})
|
|
|
- state.befireSection = item
|
|
|
+ state.befireSection = !boundingBox && state.befireSection ? state.befireSection : item
|
|
|
if (!boundingBox) {
|
|
|
continue
|
|
|
}
|