|
@@ -719,7 +719,6 @@ export abstract class MusicSheetCalculator {
|
|
|
}
|
|
|
this.resetYPositionForLeadSheet(graphicalNote.PositionAndShape);
|
|
|
graphicalStaffEntry.addGraphicalNoteToListAtCorrectYPosition(graphicalNotes, graphicalNote);
|
|
|
- graphicalStaffEntry.PositionAndShape.ChildElements.push(graphicalNote.PositionAndShape);
|
|
|
graphicalNote.PositionAndShape.calculateBoundingBox();
|
|
|
if (!this.leadSheet) {
|
|
|
if (note.NoteBeam !== undefined) {
|
|
@@ -758,7 +757,6 @@ export abstract class MusicSheetCalculator {
|
|
|
graphicalStaffEntry.parentMeasure
|
|
|
);
|
|
|
graphicalGraceEntries.push(graceStaffEntry);
|
|
|
- graphicalStaffEntry.PositionAndShape.ChildElements.push(graceStaffEntry.PositionAndShape);
|
|
|
this.handleVoiceEntry(
|
|
|
graceVoiceEntry, graceStaffEntry, accidentalCalculator, lyricWords,
|
|
|
tieTimestampListDict, activeClef, tuplets,
|
|
@@ -815,7 +813,6 @@ export abstract class MusicSheetCalculator {
|
|
|
const graphicalNotes: GraphicalNote[] =
|
|
|
graphicalStaffEntry.findOrCreateGraphicalNotesListFromGraphicalNote(tiedGraphicalNote);
|
|
|
graphicalStaffEntry.addGraphicalNoteToListAtCorrectYPosition(graphicalNotes, tiedGraphicalNote);
|
|
|
- graphicalStaffEntry.PositionAndShape.ChildElements.push(tiedGraphicalNote.PositionAndShape);
|
|
|
|
|
|
thisPointer.handleTiedGraphicalNote(tiedGraphicalNote, beams, activeClef, octaveShiftValue, graphicalStaffEntry, tieFraction,
|
|
|
openTie, isLastTieNote);
|
|
@@ -1017,6 +1014,8 @@ export abstract class MusicSheetCalculator {
|
|
|
|
|
|
protected calculatePageLabels(page: GraphicalMusicPage): void {
|
|
|
|
|
|
+ // The PositionAndShape child elements of page need to be manually connected to the lyricist, composer, subtitle, etc.
|
|
|
+ // because the page are only available now
|
|
|
let firstSystemAbsoluteTopMargin: number = 10;
|
|
|
if (page.MusicSystems.length > 0) {
|
|
|
const firstMusicSystem: MusicSystem = page.MusicSystems[0];
|
|
@@ -1025,7 +1024,6 @@ export abstract class MusicSheetCalculator {
|
|
|
if (this.graphicalMusicSheet.Title !== undefined) {
|
|
|
const title: GraphicalLabel = this.graphicalMusicSheet.Title;
|
|
|
title.PositionAndShape.Parent = page.PositionAndShape;
|
|
|
- page.PositionAndShape.ChildElements.push(title.PositionAndShape);
|
|
|
const relative: PointF2D = new PointF2D();
|
|
|
relative.x = this.graphicalMusicSheet.ParentMusicSheet.pageWidth / 2;
|
|
|
relative.y = this.rules.TitleTopDistance + this.rules.SheetTitleHeight;
|
|
@@ -1035,7 +1033,6 @@ export abstract class MusicSheetCalculator {
|
|
|
if (this.graphicalMusicSheet.Subtitle !== undefined) {
|
|
|
const subtitle: GraphicalLabel = this.graphicalMusicSheet.Subtitle;
|
|
|
subtitle.PositionAndShape.Parent = page.PositionAndShape;
|
|
|
- page.PositionAndShape.ChildElements.push(subtitle.PositionAndShape);
|
|
|
const relative: PointF2D = new PointF2D();
|
|
|
relative.x = this.graphicalMusicSheet.ParentMusicSheet.pageWidth / 2;
|
|
|
relative.y = this.rules.TitleTopDistance + this.rules.SheetTitleHeight + this.rules.SheetMinimumDistanceBetweenTitleAndSubtitle;
|
|
@@ -1045,7 +1042,6 @@ export abstract class MusicSheetCalculator {
|
|
|
if (this.graphicalMusicSheet.Composer !== undefined) {
|
|
|
const composer: GraphicalLabel = this.graphicalMusicSheet.Composer;
|
|
|
composer.PositionAndShape.Parent = page.PositionAndShape;
|
|
|
- page.PositionAndShape.ChildElements.push(composer.PositionAndShape);
|
|
|
composer.setLabelPositionAndShapeBorders();
|
|
|
const relative: PointF2D = new PointF2D();
|
|
|
relative.x = this.graphicalMusicSheet.ParentMusicSheet.pageWidth - this.rules.PageRightMargin;
|
|
@@ -1056,7 +1052,6 @@ export abstract class MusicSheetCalculator {
|
|
|
if (this.graphicalMusicSheet.Lyricist !== undefined) {
|
|
|
const lyricist: GraphicalLabel = this.graphicalMusicSheet.Lyricist;
|
|
|
lyricist.PositionAndShape.Parent = page.PositionAndShape;
|
|
|
- page.PositionAndShape.ChildElements.push(lyricist.PositionAndShape);
|
|
|
lyricist.setLabelPositionAndShapeBorders();
|
|
|
const relative: PointF2D = new PointF2D();
|
|
|
relative.x = this.rules.PageLeftMargin;
|
|
@@ -1327,7 +1322,6 @@ export abstract class MusicSheetCalculator {
|
|
|
new ClefInstruction(),
|
|
|
OctaveEnum.NONE, undefined);
|
|
|
graphicalNotes.push(graphicalNote);
|
|
|
- graphicalStaffEntry.PositionAndShape.ChildElements.push(graphicalNote.PositionAndShape);
|
|
|
}
|
|
|
return measure;
|
|
|
}
|