Skip to content

Commit 8e191c0

Browse files
committed
fix: cross compilation
1 parent 15f8fb5 commit 8e191c0

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

src/rendering/LineBarRenderer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,7 @@ export abstract class LineBarRenderer extends BarRendererBase {
518518
return this.getLineHeight(size);
519519
}
520520

521-
abstract getBarLineStart(beat: Beat, direction: BeamDirection): number;
522-
abstract getBarLineStart(beat: Beat, direction: BeamDirection): number;
521+
protected abstract getBarLineStart(beat: Beat, direction: BeamDirection): number;
523522

524523
public calculateBeamY(h: BeamingHelper, x: number): number {
525524
return this.calculateBeamYWithDirection(h, x, this.getBeamDirection(h));

src/rendering/ScoreBarRenderer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class ScoreBarRenderer extends LineBarRenderer {
120120
return this.getScoreY(this.accidentalHelper.getMaxLine(beat));
121121
}
122122

123-
override getBeamDirection(helper: BeamingHelper): BeamDirection {
123+
protected override getBeamDirection(helper: BeamingHelper): BeamDirection {
124124
return helper.direction;
125125
}
126126

@@ -197,7 +197,7 @@ export class ScoreBarRenderer extends LineBarRenderer {
197197
return result;
198198
}
199199

200-
override calculateBeamYWithDirection(h: BeamingHelper, x: number, direction: BeamDirection): number {
200+
protected override calculateBeamYWithDirection(h: BeamingHelper, x: number, direction: BeamDirection): number {
201201
let stemSize: number = this.getStemSize(h);
202202

203203
if (!h.drawingInfos.has(direction)) {
@@ -334,7 +334,7 @@ export class ScoreBarRenderer extends LineBarRenderer {
334334
return h.drawingInfos.get(direction)!.calcY(x);
335335
}
336336

337-
override getBarLineStart(beat: Beat, direction: BeamDirection): number {
337+
protected override getBarLineStart(beat: Beat, direction: BeamDirection): number {
338338
return direction === BeamDirection.Up
339339
? this.getScoreY(this.accidentalHelper.getMaxLine(beat))
340340
: this.getScoreY(this.accidentalHelper.getMinLine(beat));

src/rendering/SlashBarRenderer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class SlashBarRenderer extends LineBarRenderer {
7777
return this.getLineY(0) - (SlashNoteHeadGlyph.NoteHeadHeight / 2) * this.scale;
7878
}
7979

80-
override getBeamDirection(_helper: BeamingHelper): BeamDirection {
80+
protected override getBeamDirection(_helper: BeamingHelper): BeamDirection {
8181
return BeamDirection.Up;
8282
}
8383

@@ -93,7 +93,7 @@ export class SlashBarRenderer extends LineBarRenderer {
9393
return this.getLineY(0) - this.getFlagStemSize(_h.shortestDuration);
9494
}
9595

96-
override getBarLineStart(_beat: Beat, _direction: BeamDirection): number {
96+
protected override getBarLineStart(_beat: Beat, _direction: BeamDirection): number {
9797
return this.getLineY(0) - (SlashNoteHeadGlyph.NoteHeadHeight / 2) * this.scale;
9898
}
9999

src/rendering/TabBarRenderer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export class TabBarRenderer extends LineBarRenderer {
189189
return 0; // fixed size via getFlagBottomY
190190
}
191191

192-
override getBarLineStart(beat: Beat, direction: BeamDirection): number {
192+
protected override getBarLineStart(beat: Beat, direction: BeamDirection): number {
193193
let startGlyph: TabBeatGlyph = this.getOnNotesGlyphForBeat(beat) as TabBeatGlyph;
194194
if (!startGlyph.noteNumbers || beat.duration === Duration.Half) {
195195
return this.height - this.settings.notation.rhythmHeight * this.settings.display.scale - this.tupletSize;
@@ -201,7 +201,7 @@ export class TabBarRenderer extends LineBarRenderer {
201201
}
202202
}
203203

204-
override getBeamDirection(_helper: BeamingHelper): BeamDirection {
204+
protected override getBeamDirection(_helper: BeamingHelper): BeamDirection {
205205
return BeamDirection.Down;
206206
}
207207

0 commit comments

Comments
 (0)