Browse Source

update src/VexFlowPatch/readme.txt with new changes

sschmid 4 years ago
parent
commit
33400e2d57
2 changed files with 10 additions and 2 deletions
  1. 9 1
      src/VexFlowPatch/readme.txt
  2. 1 1
      src/VexFlowPatch/src/staverepetition.js

+ 9 - 1
src/VexFlowPatch/readme.txt

@@ -10,9 +10,17 @@ They are copied by the npm prebuild script to ../../node_modules/vexflow/src/ be
 Each .js has comments like "// VexFlowPatch: [explanation]" to indicate what was changed.
 Each .js has comments like "// VexFlowPatch: [explanation]" to indicate what was changed.
 (a diff can be created from the base vexflow version)
 (a diff can be created from the base vexflow version)
 
 
+beam.js (custom addition):
+add flat_beams, flat_beam_offset, flat_beam_offset_per_beam render_option
+
 stave.js (custom addition):
 stave.js (custom addition):
 prevent a bug where a modifier width is NaN, leading to a VexFlow error
 prevent a bug where a modifier width is NaN, leading to a VexFlow error
 
 
+staverepetition.js (custom addition):
+add TO_CODA enum to type() and draw()
+fix x-positioning for TO_CODA and DS_AL_CODA in drawSymbolText()
+fix y-shift
+
 stavevolta.js (merged Vexflow 3.x):
 stavevolta.js (merged Vexflow 3.x):
 Fix the length of voltas for first measures in a system
 Fix the length of voltas for first measures in a system
 (whose lengths were wrongly extended by the width of the clef, key signature, etc. (beginInstructions) in Vexflow 1.2.93)
 (whose lengths were wrongly extended by the width of the clef, key signature, etc. (beginInstructions) in Vexflow 1.2.93)
@@ -25,4 +33,4 @@ Add extra_stroke_scale, y_spacing_scale
 
 
 Currently, we are using Vexflow 1.2.93, because of some formatter advantages
 Currently, we are using Vexflow 1.2.93, because of some formatter advantages
 compared to Vexflow 3.x versions.
 compared to Vexflow 3.x versions.
-Because of that, we need to patch in a few fixes that came after 1.2.93.
+Because of that, we need to patch in a few fixes that came after 1.2.93.

+ 1 - 1
src/VexFlowPatch/src/staverepetition.js

@@ -49,7 +49,7 @@ export class Repetition extends StaveModifier {
 
 
   draw(stave, x) {
   draw(stave, x) {
     this.setRendered();
     this.setRendered();
-    
+
     switch (this.symbol_type) {
     switch (this.symbol_type) {
       case Repetition.type.CODA_RIGHT:
       case Repetition.type.CODA_RIGHT:
         this.drawCodaFixed(stave, x + stave.width);
         this.drawCodaFixed(stave, x + stave.width);