Selaa lähdekoodia

Fixed bug with endInstructionWidth (getLineWidth problem)

Andrea Condoluci 9 vuotta sitten
vanhempi
commit
ad6067a2c1
1 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa
  1. 6 6
      src/MusicalScore/Graphical/VexFlow/VexFlowMeasure.ts

+ 6 - 6
src/MusicalScore/Graphical/VexFlow/VexFlowMeasure.ts

@@ -54,17 +54,17 @@ export class VexFlowMeasure extends StaffMeasure {
         // FIXME: See values in VexFlow's stavebarline.js
         switch (line) {
             case SystemLinesEnum.SingleThin:
-                return 5;
+                return 5 / this.unit;
             case SystemLinesEnum.DoubleThin:
-                return 5;
+                return 5 / this.unit;
             case SystemLinesEnum.ThinBold:
-                return 5;
+                return 5 / this.unit;
             case SystemLinesEnum.BoldThinDots:
-                return 5;
+                return 5 / this.unit;
             case SystemLinesEnum.DotsThinBold:
-                return 5;
+                return 5 / this.unit;
             case SystemLinesEnum.DotsBoldBoldDots:
-                return 5;
+                return 5 / this.unit;
             case SystemLinesEnum.None:
                 return 0;
             default: