|
@@ -122,10 +122,21 @@ export class DrawingParameters {
|
|
|
}
|
|
|
|
|
|
public setForCompactTightMode(): void {
|
|
|
- this.rules.CompactMode = true;
|
|
|
- this.DrawCredits = false;
|
|
|
+ this.setForCompactMode(); // also sets CompactMode = true
|
|
|
this.DrawPartNames = false;
|
|
|
- this.drawHiddenNotes = false;
|
|
|
+
|
|
|
+ // 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.MinimumSkyBottomLineDistance = 1.0; // default 1.0. this can cause collisions with slurs and dynamics sometimes
|
|
|
+ // note that this.rules === osmd.rules, since it's passed as a reference
|
|
|
+
|
|
|
+ this.rules.BetweenStaffDistance = 2.5;
|
|
|
+ this.rules.StaffDistance = 3.5;
|
|
|
+ this.rules.MinimumDistanceBetweenSystems = 1;
|
|
|
+ // this.rules.PageTopMargin = 0.0; // see this.rules.PageTopMarginNarrow used in compact mode
|
|
|
+ this.rules.PageBottomMargin = 1.0;
|
|
|
+ this.rules.PageLeftMargin = 2.0;
|
|
|
+ this.rules.PageRightMargin = 2.0;
|
|
|
// this.BetweenStaffDistance = 2.5 // etc needs to be set in OSMD.rules
|
|
|
// this.StaffDistance = 3.5
|
|
|
// this.MinimumDistanceBetweenSystems = 1
|