|
@@ -349,7 +349,9 @@ export abstract class MusicSheetCalculator {
|
|
|
/// <param name="musicSystem"></param>
|
|
|
private calculateSingleMeasureNumberPlacement(measure: GraphicalMeasure, staffLine: StaffLine, musicSystem: MusicSystem): void {
|
|
|
const labelNumber: string = measure.MeasureNumber.toString();
|
|
|
- const graphicalLabel: GraphicalLabel = new GraphicalLabel(new Label(labelNumber), this.rules.MeasureNumberLabelHeight,
|
|
|
+ const label: Label = new Label(labelNumber);
|
|
|
+ // maybe give rules as argument instead of just setting fontStyle and maybe other settings manually afterwards
|
|
|
+ const graphicalLabel: GraphicalLabel = new GraphicalLabel(label, this.rules.MeasureNumberLabelHeight,
|
|
|
TextAlignmentEnum.LeftBottom, this.rules);
|
|
|
|
|
|
const skyBottomLineCalculator: SkyBottomLineCalculator = staffLine.SkyBottomLineCalculator;
|
|
@@ -1234,11 +1236,11 @@ export abstract class MusicSheetCalculator {
|
|
|
fontHeight: number,
|
|
|
textAlignment: TextAlignmentEnum = TextAlignmentEnum.CenterBottom): GraphicalLabel {
|
|
|
const label: Label = new Label(combinedString, textAlignment);
|
|
|
+ label.fontStyle = style;
|
|
|
label.fontHeight = fontHeight;
|
|
|
|
|
|
// TODO_RR: TextHeight from first Entry
|
|
|
const graphLabel: GraphicalLabel = new GraphicalLabel(label, fontHeight, label.textAlignment, this.rules, staffLine.PositionAndShape);
|
|
|
- graphLabel.Label.fontStyle = style;
|
|
|
const marginFactor: number = 1.1;
|
|
|
|
|
|
if (placement === PlacementEnum.Below) {
|
|
@@ -2449,8 +2451,9 @@ export abstract class MusicSheetCalculator {
|
|
|
* @param {number} y
|
|
|
*/
|
|
|
private calculateSingleDashForLyricWord(staffLine: StaffLine, startX: number, endX: number, y: number): void {
|
|
|
+ const label: Label = new Label("-");
|
|
|
const dash: GraphicalLabel = new GraphicalLabel(
|
|
|
- new Label("-"), this.rules.LyricsHeight, TextAlignmentEnum.CenterBottom, this.rules);
|
|
|
+ label, this.rules.LyricsHeight, TextAlignmentEnum.CenterBottom, this.rules);
|
|
|
dash.setLabelPositionAndShapeBorders();
|
|
|
staffLine.LyricsDashes.push(dash);
|
|
|
if (this.staffLinesWithLyricWords.indexOf(staffLine) === -1) {
|
|
@@ -2564,8 +2567,9 @@ export abstract class MusicSheetCalculator {
|
|
|
* @returns {number}
|
|
|
*/
|
|
|
private calculateRightAndLeftDashesForLyricWord(staffLine: StaffLine, startX: number, endX: number, y: number): number {
|
|
|
+ const leftLabel: Label = new Label("-");
|
|
|
const leftDash: GraphicalLabel = new GraphicalLabel(
|
|
|
- new Label("-"), this.rules.LyricsHeight, TextAlignmentEnum.CenterBottom, this.rules);
|
|
|
+ leftLabel, this.rules.LyricsHeight, TextAlignmentEnum.CenterBottom, this.rules);
|
|
|
leftDash.setLabelPositionAndShapeBorders();
|
|
|
staffLine.LyricsDashes.push(leftDash);
|
|
|
if (this.staffLinesWithLyricWords.indexOf(staffLine) === -1) {
|
|
@@ -2574,8 +2578,10 @@ export abstract class MusicSheetCalculator {
|
|
|
leftDash.PositionAndShape.Parent = staffLine.PositionAndShape;
|
|
|
const leftDashRelative: PointF2D = new PointF2D(startX, y);
|
|
|
leftDash.PositionAndShape.RelativePosition = leftDashRelative;
|
|
|
+
|
|
|
+ const rightLabel: Label = new Label("-");
|
|
|
const rightDash: GraphicalLabel = new GraphicalLabel(
|
|
|
- new Label("-"), this.rules.LyricsHeight, TextAlignmentEnum.CenterBottom, this.rules);
|
|
|
+ rightLabel, this.rules.LyricsHeight, TextAlignmentEnum.CenterBottom, this.rules);
|
|
|
rightDash.setLabelPositionAndShapeBorders();
|
|
|
staffLine.LyricsDashes.push(rightDash);
|
|
|
rightDash.PositionAndShape.Parent = staffLine.PositionAndShape;
|