Преглед на файлове

fix(ChordSymbols): add y spacing so stems don't collide

sschmidTU преди 6 години
родител
ревизия
78cd2eddcf
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/MusicalScore/Graphical/VexFlow/VexFlowGraphicalSymbolFactory.ts

+ 1 - 0
src/MusicalScore/Graphical/VexFlow/VexFlowGraphicalSymbolFactory.ts

@@ -162,6 +162,7 @@ export class VexFlowGraphicalSymbolFactory implements IGraphicalSymbolFactory {
                                           EngravingRules.Rules.ChordSymbolTextHeight,
                                           transposeHalftones);
       const graphicalLabel: GraphicalLabel = graphicalChordSymbolContainer.GetGraphicalLabel;
+      graphicalLabel.PositionAndShape.RelativePosition.y -= 2;
       graphicalLabel.setLabelPositionAndShapeBorders();
       graphicalChordSymbolContainer.PositionAndShape.calculateBoundingBox();
       graphicalStaffEntry.graphicalChordContainer = graphicalChordSymbolContainer;