@visactor/vrender-components
Version:
components library for dp visualization
25 lines (18 loc) • 987 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.loadScrollbar = exports.installScrollbarToApp = void 0;
const vrender_core_1 = require("@visactor/vrender-core"), scrollbar_plugin_1 = require("./scrollbar-plugin");
function bindScrollbar(container) {
container.isBound(scrollbar_plugin_1.ScrollBarPlugin) || (container.bind(scrollbar_plugin_1.ScrollBarPlugin).toSelf(),
container.bind(vrender_core_1.AutoEnablePlugins).toService(scrollbar_plugin_1.ScrollBarPlugin));
}
function installScrollbarToApp(app) {
(0, vrender_core_1.configureRuntimeApplicationForApp)(app), bindScrollbar((0, vrender_core_1.getRuntimeInstallerBindingContext)()),
(0, vrender_core_1.refreshRuntimeInstallerContributions)();
}
function loadScrollbar() {
bindScrollbar((0, vrender_core_1.getLegacyBindingContext)());
}
exports.installScrollbarToApp = installScrollbarToApp, exports.loadScrollbar = loadScrollbar;
//# sourceMappingURL=module.js.map