@xterm/addon-webgl 0.19.0-beta.99 → 0.20.0-beta.1
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/lib/addon-webgl.js +1 -1
- package/lib/addon-webgl.js.map +1 -1
- package/lib/addon-webgl.mjs +8 -8
- package/lib/addon-webgl.mjs.map +2 -2
- package/package.json +4 -4
- package/src/TextureAtlas.ts +5 -0
- package/src/WebglRenderer.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xterm/addon-webgl",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0-beta.1",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "The xterm.js authors",
|
|
6
6
|
"url": "https://xtermjs.org/"
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"prepublishOnly": "npm run package",
|
|
24
24
|
"start": "node ../../demo/start"
|
|
25
25
|
},
|
|
26
|
+
"commit": "4237d82923548a550c4c22941b12f319bd477b8a",
|
|
26
27
|
"peerDependencies": {
|
|
27
|
-
"@xterm/xterm": "^
|
|
28
|
-
}
|
|
29
|
-
"commit": "a260f7d2889142d6566a66cb9856a07050dea611"
|
|
28
|
+
"@xterm/xterm": "^6.1.0-beta.1"
|
|
29
|
+
}
|
|
30
30
|
}
|
package/src/TextureAtlas.ts
CHANGED
|
@@ -306,6 +306,11 @@ export class TextureAtlas implements ITextureAtlas {
|
|
|
306
306
|
break;
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
+
// Ignore alpha channel when allowTransparency is false
|
|
310
|
+
if (!this._config.allowTransparency) {
|
|
311
|
+
result = color.opaque(result);
|
|
312
|
+
}
|
|
313
|
+
|
|
309
314
|
return result;
|
|
310
315
|
}
|
|
311
316
|
|
package/src/WebglRenderer.ts
CHANGED
|
@@ -139,7 +139,7 @@ export class WebglRenderer extends Disposable implements IRenderer {
|
|
|
139
139
|
|
|
140
140
|
[this._rectangleRenderer.value, this._glyphRenderer.value] = this._initializeWebGLState();
|
|
141
141
|
|
|
142
|
-
this._isAttached = this.
|
|
142
|
+
this._isAttached = this._core.screenElement!.isConnected;
|
|
143
143
|
|
|
144
144
|
this._register(toDisposable(() => {
|
|
145
145
|
for (const l of this._renderLayers) {
|
|
@@ -322,7 +322,7 @@ export class WebglRenderer extends Disposable implements IRenderer {
|
|
|
322
322
|
|
|
323
323
|
public renderRows(start: number, end: number): void {
|
|
324
324
|
if (!this._isAttached) {
|
|
325
|
-
if (this.
|
|
325
|
+
if (this._core.screenElement?.isConnected && this._charSizeService.width && this._charSizeService.height) {
|
|
326
326
|
this._updateDimensions();
|
|
327
327
|
this._refreshCharAtlas();
|
|
328
328
|
this._isAttached = true;
|