xterm-addon-webgl
Advanced tools
Comparing version 0.12.0-beta.6 to 0.12.0-beta.7
@@ -24,4 +24,5 @@ "use strict"; | ||
__extends(CursorRenderLayer, _super); | ||
function CursorRenderLayer(container, zIndex, colors, _onRequestRefreshRowsEvent) { | ||
function CursorRenderLayer(container, zIndex, colors, _terminal, _onRequestRefreshRowsEvent) { | ||
var _this = _super.call(this, container, 'cursor', zIndex, true, colors) || this; | ||
_this._terminal = _terminal; | ||
_this._onRequestRefreshRowsEvent = _onRequestRefreshRowsEvent; | ||
@@ -104,3 +105,3 @@ _this._cell = new CellData_1.CellData(); | ||
CursorRenderLayer.prototype._render = function (terminal, triggeredByAnimationFrame) { | ||
if (!terminal._core._coreService.isCursorInitialized || terminal._core._coreService.isCursorHidden) { | ||
if (!this._terminal.coreService.isCursorInitialized || this._terminal.coreService.isCursorHidden) { | ||
this._clearCursor(); | ||
@@ -107,0 +108,0 @@ return; |
@@ -45,3 +45,3 @@ "use strict"; | ||
new LinkRenderLayer_1.LinkRenderLayer(_this._core.screenElement, 2, _this._colors, _this._core), | ||
new CursorRenderLayer_1.CursorRenderLayer(_this._core.screenElement, 3, _this._colors, _this._onRequestRedraw) | ||
new CursorRenderLayer_1.CursorRenderLayer(_this._core.screenElement, 3, _this._colors, _this._core, _this._onRequestRedraw) | ||
]; | ||
@@ -48,0 +48,0 @@ _this.dimensions = { |
{ | ||
"name": "xterm-addon-webgl", | ||
"version": "0.12.0-beta.6", | ||
"version": "0.12.0-beta.7", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "The xterm.js authors", |
@@ -10,3 +10,3 @@ /** | ||
import { CellData } from 'common/buffer/CellData'; | ||
import { IColorSet } from 'browser/Types'; | ||
import { IColorSet, ITerminal } from 'browser/Types'; | ||
import { IRenderDimensions, IRequestRedrawEvent } from 'browser/renderer/Types'; | ||
@@ -38,2 +38,3 @@ import { IEventEmitter } from 'common/EventEmitter'; | ||
colors: IColorSet, | ||
private readonly _terminal: ITerminal, | ||
private _onRequestRefreshRowsEvent: IEventEmitter<IRequestRedrawEvent> | ||
@@ -125,3 +126,3 @@ ) { | ||
// TODO: Need to expose API for this | ||
if (!(terminal as any)._core._coreService.isCursorInitialized || (terminal as any)._core._coreService.isCursorHidden) { | ||
if (!this._terminal.coreService.isCursorInitialized || this._terminal.coreService.isCursorHidden) { | ||
this._clearCursor(); | ||
@@ -128,0 +129,0 @@ return; |
@@ -63,3 +63,3 @@ /** | ||
new LinkRenderLayer(this._core.screenElement!, 2, this._colors, this._core), | ||
new CursorRenderLayer(this._core.screenElement!, 3, this._colors, this._onRequestRedraw) | ||
new CursorRenderLayer(this._core.screenElement!, 3, this._colors, this._core, this._onRequestRedraw) | ||
]; | ||
@@ -66,0 +66,0 @@ this.dimensions = { |
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
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
611714
5317