blob: 334f90a54721ee986cdb563cfd22b4efcc1b8ec4 [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 Scandolob8cdf552018-02-12 17:56:26 -080026import {XosGraphStateMachine} from './services/graph-state-machine';
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080027
Matteo Scandoloa62adbc2017-03-02 15:37:34 -080028export const xosServiceGraph = 'xosServiceGraph';
29
30angular
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080031 .module(xosServiceGraph, [])
Matteo Scandolo7629cc42017-03-13 14:12:15 -070032 .service('XosServiceGraphExtender', XosServiceGraphExtender)
33 .service('XosGraphHelpers', XosGraphHelpers)
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080034 .service('XosGraphStore', XosGraphStore)
35 .service('XosServiceGraphIcons', XosServiceGraphIcons)
36 .service('XosNodePositioner', XosNodePositioner)
37 .service('XosGraphConfig', XosGraphConfig)
Matteo Scandolob8cdf552018-02-12 17:56:26 -080038 .service('XosGraphStateMachine', XosGraphStateMachine)
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080039 .service('XosNodeRenderer', XosNodeRenderer)
40 .component('xosServiceGraph', XosServiceGraph)
Matteo Scandolo5bf51732018-01-10 15:51:33 -080041 .component('xosServiceGraphLegend', XosServiceGraphLegend)
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080042 .run((
43 $log: ng.ILogService,
44 XosServiceGraphExtender: IXosServiceGraphExtender
45 ) => {
Matteo Scandoloa62adbc2017-03-02 15:37:34 -080046 $log.info(`[${xosServiceGraph}] Module Setup`);
47 });