Commit 7bc3fa3 1 parent 7e5a7a5 commit 7bc3fa3 Copy full SHA for 7bc3fa3
File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export class TabBarRenderer extends BarRendererBase {
51
51
52
52
protected updateSizes ( ) : void {
53
53
let res : RenderingResources = this . resources ;
54
- let numberOverflow : number = res . tablatureFont . size / 2 + res . tablatureFont . size * 0.2 ;
54
+ let numberOverflow : number = ( res . tablatureFont . size / 2 + res . tablatureFont . size * 0.2 ) * this . scale ;
55
55
this . topPadding = numberOverflow ;
56
56
this . bottomPadding = numberOverflow ;
57
57
this . height = this . lineOffset * ( this . bar . staff . tuning . length - 1 ) + numberOverflow * 2 ;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export class NoteNumberGlyph extends Glyph {
79
79
this . isEmpty = ! this . _noteString ;
80
80
if ( ! this . isEmpty ) {
81
81
this . renderer . scoreRenderer . canvas ! . font = this . renderer . resources . tablatureFont ;
82
- this . width = this . noteStringWidth = this . renderer . scoreRenderer . canvas ! . measureText ( this . _noteString ) ;
82
+ this . width = this . noteStringWidth = this . renderer . scoreRenderer . canvas ! . measureText ( this . _noteString ) * this . scale ;
83
83
this . height = this . renderer . scoreRenderer . canvas ! . font . size ;
84
84
let hasTrill : boolean = ! ! this . _trillNoteString ;
85
85
if ( hasTrill ) {
Original file line number Diff line number Diff line change @@ -30,13 +30,14 @@ export class VoiceContainerGlyph extends GlyphGroup {
30
30
}
31
31
32
32
private scaleToForce ( force : number ) : void {
33
- this . width = this . renderer . layoutingInfo . calculateVoiceWidth ( force ) ;
33
+ const scale = this . renderer . scale ;
34
+ this . width = this . renderer . layoutingInfo . calculateVoiceWidth ( force ) * scale ;
34
35
let positions : Map < number , number > = this . renderer . layoutingInfo . buildOnTimePositions ( force ) ;
35
36
let beatGlyphs : BeatContainerGlyph [ ] = this . beatGlyphs ;
36
37
for ( let i : number = 0 , j : number = beatGlyphs . length ; i < j ; i ++ ) {
37
38
let currentBeatGlyph : BeatContainerGlyph = beatGlyphs [ i ] ;
38
39
let time : number = currentBeatGlyph . beat . absoluteDisplayStart ;
39
- currentBeatGlyph . x = positions . get ( time ) ! - currentBeatGlyph . onTimeX ;
40
+ currentBeatGlyph . x = positions . get ( time ) ! * scale - currentBeatGlyph . onTimeX ;
40
41
// size always previousl glyph after we know the position
41
42
// of the next glyph
42
43
if ( i > 0 ) {
You can’t perform that action at this time.
0 commit comments