Comparing version 3.14.0-beta31 to 3.14.0-beta32
@@ -57,2 +57,3 @@ "use strict"; | ||
_this._updateDimensions(); | ||
_this._injectCss(); | ||
_this._rowFactory = new DomRendererRowFactory_1.DomRendererRowFactory(_terminal.options, document); | ||
@@ -76,3 +77,3 @@ _this._terminal.element.classList.add(TERMINAL_CLASS_PREFIX + _this._terminalClass); | ||
var _this = this; | ||
this.dimensions.scaledCharWidth = Math.floor(this._terminal.charMeasure.width * window.devicePixelRatio); | ||
this.dimensions.scaledCharWidth = this._terminal.charMeasure.width * window.devicePixelRatio; | ||
this.dimensions.scaledCharHeight = Math.ceil(this._terminal.charMeasure.height * window.devicePixelRatio); | ||
@@ -79,0 +80,0 @@ this.dimensions.scaledCellWidth = this.dimensions.scaledCharWidth + Math.round(this._terminal.options.letterSpacing); |
{ | ||
"name": "xterm", | ||
"description": "Full xterm terminal, in your browser", | ||
"version": "3.14.0-beta31", | ||
"version": "3.14.0-beta32", | ||
"main": "lib/public/Terminal.js", | ||
@@ -6,0 +6,0 @@ "types": "typings/xterm.d.ts", |
@@ -72,2 +72,3 @@ /** | ||
this._updateDimensions(); | ||
this._injectCss(); | ||
@@ -94,3 +95,3 @@ this._rowFactory = new DomRendererRowFactory(_terminal.options, document); | ||
private _updateDimensions(): void { | ||
this.dimensions.scaledCharWidth = Math.floor(this._terminal.charMeasure.width * window.devicePixelRatio); | ||
this.dimensions.scaledCharWidth = this._terminal.charMeasure.width * window.devicePixelRatio; | ||
this.dimensions.scaledCharHeight = Math.ceil(this._terminal.charMeasure.height * window.devicePixelRatio); | ||
@@ -97,0 +98,0 @@ this.dimensions.scaledCellWidth = this.dimensions.scaledCharWidth + Math.round(this._terminal.options.letterSpacing); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2816388
42813