blob: 770862d87aa9af6b9b3be3e1c39b0c3cbfd03e32 [file] [log] [blame]
Matteo Scandolofb46ae62017-08-08 09:10:50 -07001/*
2 * Copyright 2017-present Open Networking Foundation
3
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7
8 * http://www.apache.org/licenses/LICENSE-2.0
9
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Matteo Scandolo7629cc42017-03-13 14:12:15 -070017import {XosServiceGraphExtender, IXosServiceGraphExtender} from './services/graph.extender';
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080018import {XosGraphHelpers} from './services/d3-helpers/graph-elements.helpers';
19import {XosServiceGraph} from './components/graph/graph.component';
20import {XosGraphStore} from './services/graph.store';
21import {XosServiceGraphIcons} from './services/d3-helpers/graph-icons.service';
22import {XosNodePositioner} from './services/node-positioner.service';
23import {XosGraphConfig} from './services/graph.config';
24import {XosNodeRenderer} from './services/renderer/node.renderer';
25
Matteo Scandoloa62adbc2017-03-02 15:37:34 -080026export const xosServiceGraph = 'xosServiceGraph';
27
28angular
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080029 .module(xosServiceGraph, [])
Matteo Scandolo7629cc42017-03-13 14:12:15 -070030 .service('XosServiceGraphExtender', XosServiceGraphExtender)
31 .service('XosGraphHelpers', XosGraphHelpers)
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080032 .service('XosGraphStore', XosGraphStore)
33 .service('XosServiceGraphIcons', XosServiceGraphIcons)
34 .service('XosNodePositioner', XosNodePositioner)
35 .service('XosGraphConfig', XosGraphConfig)
36 .service('XosNodeRenderer', XosNodeRenderer)
37 .component('xosServiceGraph', XosServiceGraph)
38 .run((
39 $log: ng.ILogService,
40 XosServiceGraphExtender: IXosServiceGraphExtender
41 ) => {
Matteo Scandoloa62adbc2017-03-02 15:37:34 -080042 $log.info(`[${xosServiceGraph}] Module Setup`);
43 });