Allow the thickness of the bar cursor to be configured

This commit is contained in:
Nick Pezza
2019-11-30 14:40:45 -05:00
parent 8b5c48fe87
commit c630b92772
7 changed files with 14 additions and 6 deletions
+2 -2
View File
@@ -171,11 +171,11 @@ export abstract class BaseRenderLayer implements IRenderLayer {
* @param x The column to fill.
* @param y The row to fill.
*/
protected _fillLeftLineAtCell(x: number, y: number): void {
protected _fillLeftLineAtCell(x: number, y: number, width: number = 1): void {
this._ctx.fillRect(
x * this._scaledCellWidth,
y * this._scaledCellHeight,
window.devicePixelRatio,
window.devicePixelRatio * width,
this._scaledCellHeight);
}