xterm-addon-webgl
Advanced tools
Comparing version 0.12.0-beta.39 to 0.12.0-beta.40
{ | ||
"name": "xterm-addon-webgl", | ||
"version": "0.12.0-beta.39", | ||
"version": "0.12.0-beta.40", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "The xterm.js authors", |
@@ -325,11 +325,6 @@ /** | ||
// giant ligatures (eg. =====>) don't impact overall performance. | ||
const allowedWidth = this._config.scaledCellWidth * Math.max(chars.length, 2) + TMP_CANVAS_GLYPH_PADDING * 2; | ||
const allowedWidth = this._config.scaledCharWidth * 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(); | ||
@@ -494,3 +489,3 @@ | ||
boundingBox.top = 0; | ||
const height = this._config.scaledCellHeight; | ||
const height = restrictedGlyph ? this._config.scaledCharHeight : this._tmpCanvas.height; | ||
const width = restrictedGlyph ? this._config.scaledCharWidth : allowedWidth; | ||
@@ -497,0 +492,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
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
483890
3048