UNPKG

molstar

Version:

A comprehensive macromolecular library.

35 lines 1.34 kB
"use strict"; /** * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal <david.sehnal@gmail.com> */ Object.defineProperty(exports, "__esModule", { value: true }); exports.PluginUIContext = void 0; var tslib_1 = require("tslib"); var context_1 = require("../mol-plugin/context"); var PluginUIContext = /** @class */ (function (_super) { (0, tslib_1.__extends)(PluginUIContext, _super); function PluginUIContext(spec) { var _this = _super.call(this, spec) || this; _this.spec = spec; _this.customParamEditors = new Map(); _this.initCustomParamEditors(); return _this; } PluginUIContext.prototype.initCustomParamEditors = function () { if (!this.spec.customParamEditors) return; for (var _i = 0, _a = this.spec.customParamEditors; _i < _a.length; _i++) { var _b = _a[_i], t = _b[0], e = _b[1]; this.customParamEditors.set(t.id, e); } }; PluginUIContext.prototype.dispose = function (options) { _super.prototype.dispose.call(this, options); this.layout.dispose(); }; return PluginUIContext; }(context_1.PluginContext)); exports.PluginUIContext = PluginUIContext; //# sourceMappingURL=context.js.map