UNPKG

dockview

Version:

Zero dependency layout manager supporting tabs, grids and splitviews with ReactJS support

46 lines 1.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WebviewContentRenderer = void 0; var hostedContainer_1 = require("../../../hostedContainer"); var WebviewContentRenderer = /** @class */ (function () { function WebviewContentRenderer(id) { this.id = id; this._hostedContainer = new hostedContainer_1.HostedContainer({ id: id }); this._element = document.createElement('div'); this._element.style.height = '100%'; this._element.style.width = '100%'; } Object.defineProperty(WebviewContentRenderer.prototype, "element", { get: function () { return this._element; }, enumerable: false, configurable: true }); WebviewContentRenderer.prototype.focus = function () { // noop }; WebviewContentRenderer.prototype.init = function (parameters) { this.parameters = parameters; }; WebviewContentRenderer.prototype.toJSON = function () { return {}; }; WebviewContentRenderer.prototype.update = function (params) { if (this.parameters) { this.parameters.params = params.params; } }; WebviewContentRenderer.prototype.updateParentGroup = function (group, isPanelVisible) { // }; WebviewContentRenderer.prototype.layout = function (width, height) { this._hostedContainer.layout(this._element); }; WebviewContentRenderer.prototype.dispose = function () { // }; return WebviewContentRenderer; }()); exports.WebviewContentRenderer = WebviewContentRenderer; //# sourceMappingURL=webviewContentRenderer.js.map