@xterm/xterm 6.1.0-beta.155 → 6.1.0-beta.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xterm/xterm",
|
|
3
3
|
"description": "Full xterm terminal, in your browser",
|
|
4
|
-
"version": "6.1.0-beta.
|
|
4
|
+
"version": "6.1.0-beta.157",
|
|
5
5
|
"main": "lib/xterm.js",
|
|
6
6
|
"module": "lib/xterm.mjs",
|
|
7
7
|
"style": "css/xterm.css",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"dev": "concurrently -k -p [{name}] -n tsc,esbuild,esbuild-demo-client,esbuild-demo-server,server -c blue,yellow,cyan,green,magenta \"npm:tsc-watch\" \"npm:esbuild-watch\" \"npm:esbuild-demo-client-watch\" \"npm:esbuild-demo-server-watch\" \"npm:start\"",
|
|
35
35
|
"build": "npm run tsc",
|
|
36
36
|
"watch": "npm run tsc-watch",
|
|
37
|
-
"tsc": "
|
|
38
|
-
"tsc-watch": "
|
|
37
|
+
"tsc": "tsgo -b ./tsconfig.all.json",
|
|
38
|
+
"tsc-watch": "tsgo -b -w ./tsconfig.all.json --preserveWatchOutput",
|
|
39
39
|
"esbuild": "node bin/esbuild_all.mjs",
|
|
40
40
|
"esbuild-watch": "node bin/esbuild_all.mjs --watch",
|
|
41
41
|
"esbuild-package": "node bin/esbuild_all.mjs --prod",
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
"@types/ws": "^8.2.0",
|
|
93
93
|
"@typescript-eslint/eslint-plugin": "^8.50.1",
|
|
94
94
|
"@typescript-eslint/parser": "^8.50.1",
|
|
95
|
+
"@typescript/native-preview": "^7.0.0-dev.20260213.1",
|
|
95
96
|
"chai": "^4.3.4",
|
|
96
97
|
"concurrently": "^9.1.2",
|
|
97
98
|
"cross-env": "^7.0.3",
|
|
@@ -117,5 +118,5 @@
|
|
|
117
118
|
"ws": "^8.2.3",
|
|
118
119
|
"xterm-benchmark": "^0.3.1"
|
|
119
120
|
},
|
|
120
|
-
"commit": "
|
|
121
|
+
"commit": "74642ce5d5c6028580358a84f5566f4bb5f1d29a"
|
|
121
122
|
}
|
|
@@ -51,8 +51,6 @@ export class OverviewRulerRenderer extends Disposable {
|
|
|
51
51
|
private _shouldUpdateAnchor: boolean | undefined = true;
|
|
52
52
|
private _lastKnownBufferLength: number = 0;
|
|
53
53
|
|
|
54
|
-
private _containerHeight: number | undefined;
|
|
55
|
-
|
|
56
54
|
constructor(
|
|
57
55
|
private readonly _viewportElement: HTMLElement,
|
|
58
56
|
private readonly _screenElement: HTMLElement,
|
|
@@ -91,13 +89,7 @@ export class OverviewRulerRenderer extends Disposable {
|
|
|
91
89
|
}
|
|
92
90
|
}));
|
|
93
91
|
|
|
94
|
-
|
|
95
|
-
this._register(this._renderService.onRender((): void => {
|
|
96
|
-
if (!this._containerHeight || this._containerHeight !== this._screenElement.clientHeight) {
|
|
97
|
-
this._queueRefresh(true);
|
|
98
|
-
this._containerHeight = this._screenElement.clientHeight;
|
|
99
|
-
}
|
|
100
|
-
}));
|
|
92
|
+
this._register(this._renderService.onDimensionsChange(() => this._queueRefresh(true)));
|
|
101
93
|
|
|
102
94
|
this._register(this._coreBrowserService.onDprChange(() => this._queueRefresh(true)));
|
|
103
95
|
this._register(this._optionsService.onSpecificOptionChange('scrollbar', () => this._queueRefresh(true)));
|
|
@@ -144,10 +136,12 @@ export class OverviewRulerRenderer extends Disposable {
|
|
|
144
136
|
}
|
|
145
137
|
|
|
146
138
|
private _refreshCanvasDimensions(): void {
|
|
139
|
+
const cssCanvasHeight = this._renderService.dimensions.css.canvas.height;
|
|
140
|
+
const deviceCanvasHeight = this._renderService.dimensions.device.canvas.height;
|
|
147
141
|
this._canvas.style.width = `${this._width}px`;
|
|
148
142
|
this._canvas.width = Math.round(this._width * this._coreBrowserService.dpr);
|
|
149
|
-
this._canvas.style.height = `${
|
|
150
|
-
this._canvas.height =
|
|
143
|
+
this._canvas.style.height = `${cssCanvasHeight}px`;
|
|
144
|
+
this._canvas.height = deviceCanvasHeight;
|
|
151
145
|
this._refreshDrawConstants();
|
|
152
146
|
this._refreshColorZonePadding();
|
|
153
147
|
}
|
package/src/common/Version.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IDecoration, IDecorationOptions, ILinkHandler, ILogger, IWindowsPty,
|
|
6
|
+
import type { IDecoration, IDecorationOptions, ILinkHandler, ILogger, IWindowsPty, IOverviewRulerOptions } from '@xterm/xterm';
|
|
7
7
|
import { CoreMouseEncoding, CoreMouseEventType, CursorInactiveStyle, CursorStyle, IAttributeData, ICharset, IColor, ICoreMouseEvent, ICoreMouseProtocol, IDecPrivateModes, IDisposable, IKittyKeyboardState, IModes, IOscLinkData, IWindowOptions } from 'common/Types';
|
|
8
8
|
import { IBuffer, IBufferSet } from 'common/buffer/Types';
|
|
9
9
|
import { createDecorator } from 'common/services/ServiceRegistry';
|