securityos/node_modules/xterm-addon-webgl/out/WebglAddon.js

22 lines
938 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var WebglRenderer_1 = require("./WebglRenderer");
var WebglAddon = (function () {
function WebglAddon(_preserveDrawingBuffer) {
this._preserveDrawingBuffer = _preserveDrawingBuffer;
}
WebglAddon.prototype.activate = function (terminal) {
if (!terminal.element) {
throw new Error('Cannot activate WebglRendererAddon before Terminal.open');
}
var renderService = terminal._core._renderService;
var colors = terminal._core._colorManager.colors;
renderService.setRenderer(new WebglRenderer_1.WebglRenderer(terminal, colors, this._preserveDrawingBuffer));
};
WebglAddon.prototype.dispose = function () {
throw new Error('WebglRendererAddon.dispose Not yet implemented');
};
return WebglAddon;
}());
exports.WebglAddon = WebglAddon;
//# sourceMappingURL=WebglAddon.js.map