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'; |
| 25 | |
Matteo Scandolo | a62adbc | 2017-03-02 15:37:34 -0800 | [diff] [blame] | 26 | export const xosServiceGraph = 'xosServiceGraph'; |
| 27 | |
| 28 | angular |
Matteo Scandolo | 8cf33a3 | 2017-11-14 15:52:29 -0800 | [diff] [blame^] | 29 | .module(xosServiceGraph, []) |
Matteo Scandolo | 7629cc4 | 2017-03-13 14:12:15 -0700 | [diff] [blame] | 30 | .service('XosServiceGraphExtender', XosServiceGraphExtender) |
| 31 | .service('XosGraphHelpers', XosGraphHelpers) |
Matteo Scandolo | 8cf33a3 | 2017-11-14 15:52:29 -0800 | [diff] [blame^] | 32 | .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 Scandolo | a62adbc | 2017-03-02 15:37:34 -0800 | [diff] [blame] | 42 | $log.info(`[${xosServiceGraph}] Module Setup`); |
| 43 | }); |