use options

This commit is contained in:
meganrogge
2022-03-16 15:20:13 -04:00
parent fb13f812f7
commit f4593b76df
3 changed files with 10 additions and 6 deletions
+9 -3
View File
@@ -440,13 +440,19 @@ declare module 'xterm' {
element: HTMLElement | undefined;
/**
* The color to be used for the overview ruler decoration.
* The options for the overview ruler that can be updated.
* This will only take effect when @param overviewRulerOptions
* were provided initially.
*/
overviewRulerDecorationColor: string | undefined;
overviewRulerOptions?: IDecorationOverviewRulerOptions;
}
interface IDecorationOverviewRulerOptions {
color: string;
position?: 'left' | 'center' | 'right';
}
/*
* Options that define the presentation of the decoration.
*/
@@ -486,7 +492,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'}
overviewRulerOptions?: IDecorationOverviewRulerOptions
}
/**