blob: 0bed24b85fd78ae176bb1387e37a6593465833e5 [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';
Matteo Scandolo5bf51732018-01-10 15:51:33 -080025import {XosServiceGraphLegend} from './components/graph-legend/graph-legend.component';
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080026
Matteo Scandoloa62adbc2017-03-02 15:37:34 -080027export const xosServiceGraph = 'xosServiceGraph';
28
29angular
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080030 .module(xosServiceGraph, [])
Matteo Scandolo7629cc42017-03-13 14:12:15 -070031 .service('XosServiceGraphExtender', XosServiceGraphExtender)
32 .service('XosGraphHelpers', XosGraphHelpers)
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080033 .service('XosGraphStore', XosGraphStore)
34 .service('XosServiceGraphIcons', XosServiceGraphIcons)
35 .service('XosNodePositioner', XosNodePositioner)
36 .service('XosGraphConfig', XosGraphConfig)
37 .service('XosNodeRenderer', XosNodeRenderer)
38 .component('xosServiceGraph', XosServiceGraph)
Matteo Scandolo5bf51732018-01-10 15:51:33 -080039 .component('xosServiceGraphLegend', XosServiceGraphLegend)
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080040 .run((
41 $log: ng.ILogService,
42 XosServiceGraphExtender: IXosServiceGraphExtender
43 ) => {
Matteo Scandoloa62adbc2017-03-02 15:37:34 -080044 $log.info(`[${xosServiceGraph}] Module Setup`);
45 });