Matteo Scandolo | fb46ae6 | 2017-08-08 09:10:50 -0700 | [diff] [blame] | 1 | /* |
| 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 Scandolo | 7629cc4 | 2017-03-13 14:12:15 -0700 | [diff] [blame] | 17 | import {XosServiceGraphExtender, IXosServiceGraphExtender} from './services/graph.extender'; |
Matteo Scandolo | 8cf33a3 | 2017-11-14 15:52:29 -0800 | [diff] [blame] | 18 | import {XosGraphHelpers} from './services/d3-helpers/graph-elements.helpers'; |
| 19 | import {XosServiceGraph} from './components/graph/graph.component'; |
| 20 | import {XosGraphStore} from './services/graph.store'; |
| 21 | import {XosServiceGraphIcons} from './services/d3-helpers/graph-icons.service'; |
| 22 | import {XosNodePositioner} from './services/node-positioner.service'; |
| 23 | import {XosGraphConfig} from './services/graph.config'; |
| 24 | import {XosNodeRenderer} from './services/renderer/node.renderer'; |
Matteo Scandolo | 5bf5173 | 2018-01-10 15:51:33 -0800 | [diff] [blame] | 25 | import {XosServiceGraphLegend} from './components/graph-legend/graph-legend.component'; |
Matteo Scandolo | b8cdf55 | 2018-02-12 17:56:26 -0800 | [diff] [blame] | 26 | import {XosGraphStateMachine} from './services/graph-state-machine'; |
Matteo Scandolo | 8cf33a3 | 2017-11-14 15:52:29 -0800 | [diff] [blame] | 27 | |
Matteo Scandolo | a62adbc | 2017-03-02 15:37:34 -0800 | [diff] [blame] | 28 | export const xosServiceGraph = 'xosServiceGraph'; |
| 29 | |
| 30 | angular |
Matteo Scandolo | 8cf33a3 | 2017-11-14 15:52:29 -0800 | [diff] [blame] | 31 | .module(xosServiceGraph, []) |
Matteo Scandolo | 7629cc4 | 2017-03-13 14:12:15 -0700 | [diff] [blame] | 32 | .service('XosServiceGraphExtender', XosServiceGraphExtender) |
| 33 | .service('XosGraphHelpers', XosGraphHelpers) |
Matteo Scandolo | 8cf33a3 | 2017-11-14 15:52:29 -0800 | [diff] [blame] | 34 | .service('XosGraphStore', XosGraphStore) |
| 35 | .service('XosServiceGraphIcons', XosServiceGraphIcons) |
| 36 | .service('XosNodePositioner', XosNodePositioner) |
| 37 | .service('XosGraphConfig', XosGraphConfig) |
Matteo Scandolo | b8cdf55 | 2018-02-12 17:56:26 -0800 | [diff] [blame] | 38 | .service('XosGraphStateMachine', XosGraphStateMachine) |
Matteo Scandolo | 8cf33a3 | 2017-11-14 15:52:29 -0800 | [diff] [blame] | 39 | .service('XosNodeRenderer', XosNodeRenderer) |
| 40 | .component('xosServiceGraph', XosServiceGraph) |
Matteo Scandolo | 5bf5173 | 2018-01-10 15:51:33 -0800 | [diff] [blame] | 41 | .component('xosServiceGraphLegend', XosServiceGraphLegend) |
Matteo Scandolo | 8cf33a3 | 2017-11-14 15:52:29 -0800 | [diff] [blame] | 42 | .run(( |
| 43 | $log: ng.ILogService, |
| 44 | XosServiceGraphExtender: IXosServiceGraphExtender |
| 45 | ) => { |
Matteo Scandolo | a62adbc | 2017-03-02 15:37:34 -0800 | [diff] [blame] | 46 | $log.info(`[${xosServiceGraph}] Module Setup`); |
| 47 | }); |