File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ export abstract class BaseRenderLayer implements IRenderLayer {
241241 this . _ctx . fillText (
242242 charData [ CHAR_DATA_CHAR_INDEX ] ,
243243 x * this . _scaledCellWidth + this . _scaledCharLeft ,
244- ( y + 0.5 ) * this . _scaledCellHeight + this . _scaledCharTop ) ;
244+ y * this . _scaledCellHeight + this . _scaledCharTop + this . _scaledCharHeight / 2 ) ;
245245 }
246246
247247 /**
@@ -316,7 +316,7 @@ export abstract class BaseRenderLayer implements IRenderLayer {
316316 this . _ctx . fillText (
317317 chars ,
318318 x * this . _scaledCellWidth + this . _scaledCharLeft ,
319- ( y + 0.5 ) * this . _scaledCellHeight + this . _scaledCharTop ) ;
319+ y * this . _scaledCellHeight + this . _scaledCharTop + this . _scaledCharHeight / 2 ) ;
320320 this . _ctx . restore ( ) ;
321321 }
322322
You can’t perform that action at this time.
0 commit comments