UNPKG

@kieler/klighd-core

Version:

Core KLighD diagram visualization with Sprotty

32 lines 1.27 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.bindServices = exports.ServiceTypes = void 0; exports.ServiceTypes = { Connection: Symbol('Connection'), PersistenceStorage: Symbol('PersistenceStorage'), SessionStorage: Symbol('SessionStorage'), }; /** Helper function to bind all required services to the given DI Container. */ function bindServices(container, services) { container.bind(exports.ServiceTypes.Connection).toConstantValue(services.connection); container.bind(exports.ServiceTypes.SessionStorage).toConstantValue(services.sessionStorage); container.bind(exports.ServiceTypes.PersistenceStorage).toConstantValue(services.persistenceStorage); } exports.bindServices = bindServices; //# sourceMappingURL=services.js.map