UNPKG

@kieler/klighd-core

Version:

Core KLighD diagram visualization with Sprotty

34 lines 1.49 kB
"use strict"; /* * KIELER - Kiel Integrated Environment for Layout Eclipse RichClient * * http://rtsys.informatik.uni-kiel.de/kieler * * Copyright 2021 by * + Kiel University * + Department of Computer Science * + Real-Time and Embedded Systems Group * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * SPDX-License-Identifier: EPL-2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.sidebarModule = void 0; const inversify_1 = require("inversify"); const sprotty_1 = require("sprotty"); const di_symbols_1 = require("../di.symbols"); const actions_1 = require("./actions"); const sidebar_1 = require("./sidebar"); const sidebar_panel_registry_1 = require("./sidebar-panel-registry"); /** DI module that adds support for sidebars. */ exports.sidebarModule = new inversify_1.ContainerModule((bind, _, isBound) => { bind(di_symbols_1.DISymbol.Sidebar).to(sidebar_1.Sidebar).inSingletonScope(); bind(sprotty_1.TYPES.IUIExtension).toService(di_symbols_1.DISymbol.Sidebar); bind(di_symbols_1.DISymbol.SidebarPanelRegistry).to(sidebar_panel_registry_1.SidebarPanelRegistry).inSingletonScope(); const ctx = { bind, isBound }; (0, sprotty_1.configureActionHandler)(ctx, actions_1.ToggleSidebarPanelAction.KIND, di_symbols_1.DISymbol.SidebarPanelRegistry); }); //# sourceMappingURL=sidebar-module.js.map