xterm-addon-webgl
Advanced tools
Comparing version 0.15.0-beta.4 to 0.15.0-beta.5
{ | ||
"name": "xterm-addon-webgl", | ||
"version": "0.15.0-beta.4", | ||
"version": "0.15.0-beta.5", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "The xterm.js authors", |
@@ -43,4 +43,4 @@ /** | ||
private _gl: IWebGL2RenderingContext; | ||
private _rectangleRenderer: RectangleRenderer; | ||
private _glyphRenderer: GlyphRenderer; | ||
private _rectangleRenderer?: RectangleRenderer; | ||
private _glyphRenderer?: GlyphRenderer; | ||
@@ -185,6 +185,6 @@ public readonly dimensions: IRenderDimensions; | ||
this._rectangleRenderer.setDimensions(this.dimensions); | ||
this._rectangleRenderer.handleResize(); | ||
this._glyphRenderer.setDimensions(this.dimensions); | ||
this._glyphRenderer.handleResize(); | ||
this._rectangleRenderer?.setDimensions(this.dimensions); | ||
this._rectangleRenderer?.handleResize(); | ||
this._glyphRenderer?.setDimensions(this.dimensions); | ||
this._glyphRenderer?.handleResize(); | ||
@@ -284,3 +284,3 @@ this._refreshCharAtlas(); | ||
this._charAtlas.warmUp(); | ||
this._glyphRenderer.setAtlas(this._charAtlas); | ||
this._glyphRenderer?.setAtlas(this._charAtlas); | ||
} | ||
@@ -296,3 +296,3 @@ | ||
if (clearGlyphRenderer) { | ||
this._glyphRenderer.clear(); | ||
this._glyphRenderer?.clear(); | ||
} | ||
@@ -338,2 +338,6 @@ } | ||
if (!this._glyphRenderer || !this._rectangleRenderer) { | ||
return; | ||
} | ||
// Tell renderer the frame is beginning | ||
@@ -348,4 +352,4 @@ if (this._glyphRenderer.beginFrame()) { | ||
// Render | ||
this._rectangleRenderer.render(); | ||
this._glyphRenderer.render(this._model); | ||
this._rectangleRenderer?.render(); | ||
this._glyphRenderer?.render(this._model); | ||
} | ||
@@ -438,3 +442,3 @@ | ||
this._glyphRenderer.updateCell(x, y, code, this._cellColorResolver.result.bg, this._cellColorResolver.result.fg, this._cellColorResolver.result.ext, chars, lastBg); | ||
this._glyphRenderer!.updateCell(x, y, code, this._cellColorResolver.result.bg, this._cellColorResolver.result.fg, this._cellColorResolver.result.ext, chars, lastBg); | ||
@@ -448,3 +452,3 @@ if (isJoined) { | ||
j = ((y * terminal.cols) + x) * RENDER_MODEL_INDICIES_PER_CELL; | ||
this._glyphRenderer.updateCell(x, y, NULL_CELL_CODE, 0, 0, 0, NULL_CELL_CHAR, 0); | ||
this._glyphRenderer!.updateCell(x, y, NULL_CELL_CODE, 0, 0, 0, NULL_CELL_CHAR, 0); | ||
this._model.cells[j] = NULL_CELL_CODE; | ||
@@ -458,3 +462,3 @@ this._model.cells[j + RENDER_MODEL_BG_OFFSET] = this._cellColorResolver.result.bg; | ||
} | ||
this._rectangleRenderer.updateBackgrounds(this._model); | ||
this._rectangleRenderer!.updateBackgrounds(this._model); | ||
} | ||
@@ -461,0 +465,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
537758
2375