소스 검색

fix(cue notes): add as VF.GraceNote instead of VF.StaveNote

possible since Vexflow 1.2.87
sschmidTU 6 년 전
부모
커밋
8d1371f0c3
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/MusicalScore/Graphical/VexFlow/VexFlowConverter.ts

+ 1 - 2
src/MusicalScore/Graphical/VexFlow/VexFlowConverter.ts

@@ -267,8 +267,7 @@ export class VexFlowConverter {
             (<any>vfnoteStruct).stroke_px = Vex.Flow.GraceNote.LEDGER_LINE_OFFSET;
         }
 
-        // if (gve.parentVoiceEntry.IsGrace || gve.notes[0].sourceNote.IsCueNote) { // needs Vexflow PR
-        if (gve.parentVoiceEntry.IsGrace) {
+        if (gve.parentVoiceEntry.IsGrace || gve.notes[0].sourceNote.IsCueNote) {
             vfnote = new Vex.Flow.GraceNote(vfnoteStruct);
         } else {
             vfnote = new Vex.Flow.StaveNote(vfnoteStruct);