@@ -206,12 +206,6 @@ declare module '@xterm/xterm' {
206206 */
207207 minimumContrastRatio ?: number ;
208208
209- /**
210- * Controls the visibility and style of the overview ruler which visualizes
211- * decorations underneath the scroll bar.
212- */
213- overviewRuler ?: IOverviewRulerOptions ;
214-
215209 /**
216210 * Control various quirks features that are either non-standard or standard
217211 * in but generally rejected in modern terminals.
@@ -399,8 +393,8 @@ declare module '@xterm/xterm' {
399393 scrollbarSliderActiveBackground ?: string ;
400394 /**
401395 * The border color of the overview ruler. This visually separates the
402- * terminal from the scroll bar when {@link IOverviewRulerOptions .width} is
403- * set. When this is not set it defaults to black (`#000000`).
396+ * terminal from the scroll bar when {@link IScrollbarOptions .width} is set.
397+ * When this is not set it defaults to black (`#000000`).
404398 */
405399 overviewRulerBorder ?: string ;
406400 /** ANSI black (eg. `\x1b[30m`) */
@@ -688,8 +682,8 @@ declare module '@xterm/xterm' {
688682
689683 /**
690684 * When defined, renders the decoration in the overview ruler to the right
691- * of the terminal. {@link IOverviewRulerOptions .width} must be set in order
692- * to see the overview ruler.
685+ * of the terminal. {@link IScrollbarOptions .width} must be set in order to
686+ * see the overview ruler.
693687 * @param color The color of the decoration.
694688 * @param position The position of the decoration.
695689 */
@@ -712,16 +706,10 @@ declare module '@xterm/xterm' {
712706 tooMuchOutput : string ;
713707 }
714708
709+ /**
710+ * Options for configuring the overview ruler rendered beside the scrollbar.
711+ */
715712 export interface IOverviewRulerOptions {
716- /**
717- * When defined, renders decorations in the overview ruler to the right of
718- * the terminal. This must be set in order to see the overview ruler.
719- * This is ignored when {@link IScrollbarOptions.showScrollbar} is false.
720- * @param color The color of the decoration.
721- * @param position The position of the decoration.
722- */
723- width ?: number ;
724-
725713 /**
726714 * Whether to show the top border of the overview ruler, which uses the
727715 * {@link ITheme.overviewRulerBorder} color.
@@ -741,14 +729,26 @@ declare module '@xterm/xterm' {
741729 export interface IScrollbarOptions {
742730 /**
743731 * Whether to show the scrollbar. When false, this supersedes
744- * {@link IOverviewRulerOptions .width}. Defaults to true.
732+ * {@link IScrollbarOptions .width}. Defaults to true.
745733 */
746734 showScrollbar ?: boolean ;
747735 /**
748736 * Whether to show arrows at the top and bottom of the scrollbar. Defaults
749737 * to false.
750738 */
751739 showArrows ?: boolean ;
740+
741+ /**
742+ * The width of the scrollbar and overview ruler in CSS pixels. When set,
743+ * this enables the overview ruler.
744+ */
745+ width ?: number ;
746+
747+ /**
748+ * Controls the visibility and style of the overview ruler which visualizes
749+ * decorations underneath the scroll bar.
750+ */
751+ overviewRuler ?: IOverviewRulerOptions ;
752752 }
753753
754754 /**
0 commit comments