Bläddra i källkod

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

possible since Vexflow 1.2.87
sschmidTU 6 år sedan
förälder
incheckning
8d1371f0c3
1 ändrade filer med 1 tillägg och 2 borttagningar
  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);