Merge branch 'merogge/scroll-bar-decorations' of https://github.com/meganrogge/xterm.js into merogge/scroll-bar-decorations

This commit is contained in:
meganrogge
2022-03-15 19:29:43 -04:00
3 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -583,7 +583,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
this.register(this.onScroll(() => this._mouseZoneManager!.clearAll()));
this.linkifier.attachToDom(this.element, this._mouseZoneManager);
this.linkifier2.attachToDom(this.screenElement, this._mouseService, this._renderService);
this._instantiationService.createInstance(BufferDecorationRenderer, this.screenElement);
this.register(this._instantiationService.createInstance(BufferDecorationRenderer, this.screenElement));
// This event listener must be registered aftre MouseZoneManager is created
this.register(addDisposableDomListener(this.element, 'mousedown', (e: MouseEvent) => this._selectionService!.onMouseDown(e)));
@@ -1016,7 +1016,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
}
public registerDecoration(decorationOptions: IDecorationOptions): IDecoration | undefined {
return this._decorationService!.registerDecoration(decorationOptions);
return this._decorationService.registerDecoration(decorationOptions);
}
/**
+1 -1
View File
@@ -18,7 +18,7 @@
"include": [
"./**/*",
"../../typings/xterm.d.ts"
],
],
"references": [
{ "path": "../common" }
]
+3 -2
View File
@@ -268,7 +268,8 @@ declare module 'xterm' {
windowOptions?: IWindowOptions;
/**
* The width, in pixels, of the canvas for the overview ruler.
* The width, in pixels, of the canvas for the overview ruler. The overview
* ruler will be hidden when not set.
*/
overviewRulerWidth?: number;
}
@@ -399,7 +400,7 @@ declare module 'xterm' {
}
/**
* Represents a disposable with an
* Represents a disposable that tracks is disposed state.
* @param onDispose event listener and
* @param isDisposed property.
*/