xterm-addon-webgl
Advanced tools
Comparing version 0.12.0-beta.40 to 0.12.0-beta.41
{ | ||
"name": "xterm-addon-webgl", | ||
"version": "0.12.0-beta.40", | ||
"version": "0.12.0-beta.41", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "The xterm.js authors", |
@@ -325,6 +325,11 @@ /** | ||
// giant ligatures (eg. =====>) don't impact overall performance. | ||
const allowedWidth = this._config.scaledCharWidth * Math.max(chars.length, 2) + TMP_CANVAS_GLYPH_PADDING * 2; | ||
const allowedWidth = this._config.scaledCellWidth * Math.max(chars.length, 2) + TMP_CANVAS_GLYPH_PADDING * 2; | ||
if (this._tmpCanvas.width < allowedWidth) { | ||
this._tmpCanvas.width = allowedWidth; | ||
} | ||
// Include line height when drawing glyphs | ||
const allowedHeight = this._config.scaledCellHeight + TMP_CANVAS_GLYPH_PADDING * 2; | ||
if (this._tmpCanvas.height < allowedHeight) { | ||
this._tmpCanvas.height = allowedHeight; | ||
} | ||
this._tmpCtx.save(); | ||
@@ -489,3 +494,3 @@ | ||
boundingBox.top = 0; | ||
const height = restrictedGlyph ? this._config.scaledCharHeight : this._tmpCanvas.height; | ||
const height = restrictedGlyph ? this._config.scaledCellHeight : this._tmpCanvas.height; | ||
const width = restrictedGlyph ? this._config.scaledCharWidth : allowedWidth; | ||
@@ -492,0 +497,0 @@ let found = false; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
484581
3053