Explorar el Código

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

possible since Vexflow 1.2.87
sschmidTU hace 6 años
padre
commit
8d1371f0c3
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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);