set fallback

This commit is contained in:
meganrogge
2022-03-17 15:16:28 -04:00
parent c70be89bc2
commit 731432a852
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -65,6 +65,9 @@ class Decoration extends Disposable implements IInternalDecoration {
) {
super();
this.marker = options.marker;
if (this.options.overviewRulerOptions && !this.options.overviewRulerOptions.position) {
this.options.overviewRulerOptions.position = 'full';
}
}
public override dispose(): void {
this._onDispose.fire();
+1 -1
View File
@@ -479,7 +479,7 @@ declare module 'xterm' {
* @param color The color of the decoration.
* @param position The position of the decoration.
*/
readonly overviewRulerOptions?: { color: string; position: 'left' | 'center' | 'right' | 'full'}
readonly overviewRulerOptions?: { color: string; position?: 'left' | 'center' | 'right' | 'full'}
}
/**