mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Update src/browser/Decorations/OverviewRulerRenderer.ts
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
This commit is contained in:
co-authored by
Daniel Imms
parent
45ecc837e4
commit
b146ffd30f
@@ -79,7 +79,8 @@ export class OverviewRulerRenderer extends Disposable {
|
||||
}
|
||||
this._ctx.lineWidth = 1;
|
||||
this._ctx.strokeStyle = decoration.options.overviewRulerOptions.color;
|
||||
const size = Math.floor(this._optionsService.options.overviewRulerWidth / 3);
|
||||
const outerSize = Math.floor(this._optionsService.options.overviewRulerWidth / 3);
|
||||
const innerSize = Math.ceil(this._optionsService.options.overviewRulerWidth / 3);
|
||||
const position = decoration.options.overviewRulerOptions.position;
|
||||
this._ctx.strokeRect(
|
||||
!position || position === 'left' ? 0 : position === 'right' ? size * 2 + 1: size,
|
||||
|
||||
Reference in New Issue
Block a user