Explorar el Código

spacing: again broader by default, only set very compact spacing values in compacttight mode (#820)

sschmid hace 4 años
padre
commit
90b1bea188

+ 3 - 0
src/MusicalScore/Graphical/DrawingParameters.ts

@@ -125,6 +125,9 @@ export class DrawingParameters {
         this.setForCompactMode(); // also sets CompactMode = true
         this.DrawPartNames = false;
 
+        this.rules.VoiceSpacingMultiplierVexflow = 0.65;
+        this.rules.VoiceSpacingAddendVexflow = 2.0;
+
         // tight rendering mode, lower margins and safety distances between systems, staffs etc. may cause overlap.
         // these options can afterwards be finetuned by setting osmd.rules.BetweenStaffDistance for example
         this.rules.MinSkyBottomDistBetweenStaves = 1.0; // default 1.0. this can cause collisions with slurs and dynamics sometimes

+ 2 - 2
src/MusicalScore/Graphical/EngravingRules.ts

@@ -443,8 +443,8 @@ export class EngravingRules {
         this.minimumCrossedBeamDifferenceMargin = 0.0001;
 
         // xSpacing Variables
-        this.voiceSpacingMultiplierVexflow = 0.65;
-        this.voiceSpacingAddendVexflow = 2.0;
+        this.voiceSpacingMultiplierVexflow = 0.85;
+        this.voiceSpacingAddendVexflow = 3.0;
         this.displacedNoteMargin = 0.1;
         this.minNoteDistance = 2.0;
         this.subMeasureXSpacingThreshold = 35;