瀏覽代碼

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;