@xterm/addon-webgl 0.19.0-beta.98 → 0.19.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@xterm/addon-webgl",
3
- "version": "0.19.0-beta.98",
3
+ "version": "0.19.0",
4
4
  "author": {
5
5
  "name": "The xterm.js authors",
6
6
  "url": "https://xtermjs.org/"
@@ -23,8 +23,5 @@
23
23
  "prepublishOnly": "npm run package",
24
24
  "start": "node ../../demo/start"
25
25
  },
26
- "peerDependencies": {
27
- "@xterm/xterm": "^5.6.0-beta.98"
28
- },
29
- "commit": "2042bb85023714e55c0c2e986b5000e33b17c414"
26
+ "commit": "f447274f430fd22513f6adbf9862d19524471c04"
30
27
  }
@@ -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
 
@@ -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._coreBrowserService.window.document.body.contains(this._core.screenElement!);
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._coreBrowserService.window.document.body.contains(this._core.screenElement!) && this._charSizeService.width && this._charSizeService.height) {
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;