xterm-addon-webgl
Advanced tools
Comparing version 0.16.0-beta.15 to 0.16.0-beta.16
{ | ||
"name": "xterm-addon-webgl", | ||
"version": "0.16.0-beta.15", | ||
"version": "0.16.0-beta.16", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "The xterm.js authors", |
@@ -19,3 +19,3 @@ /** | ||
import { EventEmitter, forwardEvent } from 'common/EventEmitter'; | ||
import { Disposable, getDisposeArrayDisposable, toDisposable } from 'common/Lifecycle'; | ||
import { Disposable, MutableDisposable, getDisposeArrayDisposable, toDisposable } from 'common/Lifecycle'; | ||
import { ICoreService, IDecorationService, ILogService, IOptionsService } from 'common/services/Services'; | ||
@@ -35,3 +35,3 @@ import { CharData, IBufferLine, ICellData } from 'common/Types'; | ||
private _renderLayers: IRenderLayer[]; | ||
private _cursorBlinkStateManager: CursorBlinkStateManager | undefined; | ||
private _cursorBlinkStateManager: MutableDisposable<CursorBlinkStateManager> = new MutableDisposable(); | ||
private _charAtlasDisposable: IDisposable | undefined; | ||
@@ -208,3 +208,3 @@ private _charAtlas: ITextureAtlas | undefined; | ||
} | ||
this._cursorBlinkStateManager?.pause(); | ||
this._cursorBlinkStateManager.value?.pause(); | ||
// Request a redraw for active/inactive selection background | ||
@@ -218,3 +218,3 @@ this._requestRedrawViewport(); | ||
} | ||
this._cursorBlinkStateManager?.resume(); | ||
this._cursorBlinkStateManager.value?.resume(); | ||
// Request a redraw for active/inactive selection background | ||
@@ -236,3 +236,3 @@ this._requestRedrawViewport(); | ||
} | ||
this._cursorBlinkStateManager?.restartBlinkAnimation(); | ||
this._cursorBlinkStateManager.value?.restartBlinkAnimation(); | ||
} | ||
@@ -320,3 +320,3 @@ | ||
this._cursorBlinkStateManager?.restartBlinkAnimation(); | ||
this._cursorBlinkStateManager.value?.restartBlinkAnimation(); | ||
this._updateCursorBlink(); | ||
@@ -368,3 +368,3 @@ } | ||
this._glyphRenderer?.render(this._model); | ||
if (!this._cursorBlinkStateManager || this._cursorBlinkStateManager.isCursorVisible) { | ||
if (!this._cursorBlinkStateManager.value || this._cursorBlinkStateManager.value.isCursorVisible) { | ||
this._rectangleRenderer?.renderCursor(); | ||
@@ -376,10 +376,7 @@ } | ||
if (this._terminal.options.cursorBlink) { | ||
if (!this._cursorBlinkStateManager) { | ||
this._cursorBlinkStateManager = this.register(new CursorBlinkStateManager(() => { | ||
this._requestRedrawCursor(); | ||
}, this._coreBrowserService)); | ||
} | ||
this._cursorBlinkStateManager.value = new CursorBlinkStateManager(() => { | ||
this._requestRedrawCursor(); | ||
}, this._coreBrowserService); | ||
} else { | ||
this._cursorBlinkStateManager?.dispose(); | ||
this._cursorBlinkStateManager = undefined; | ||
this._cursorBlinkStateManager.clear(); | ||
} | ||
@@ -419,3 +416,3 @@ // Request a refresh from the terminal as management of rendering is being | ||
!this._coreService.isCursorHidden && | ||
(!this._cursorBlinkStateManager || this._cursorBlinkStateManager.isCursorVisible); | ||
(!this._cursorBlinkStateManager.value || this._cursorBlinkStateManager.value.isCursorVisible); | ||
this._model.cursor = undefined; | ||
@@ -422,0 +419,0 @@ let modelUpdated = 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
556015
2186