blob: 9178e1a8cd01abec0a30adabd69e774fbad8ba5b [file] [log] [blame]
Steven Burrowsec1f45c2016-08-08 16:14:41 +01001/*
2 * Copyright 2016-present Open Networking Laboratory
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
17/*
18 ONOS GUI -- Topology Layout Module.
19 Module that contains the d3.force.layout logic
20 */
21
22(function () {
23 'use strict';
24
25 var dimensions;
26
27 function newDim(_dimensions) {
28 dimensions = _dimensions;
29 }
30
31 function getDimensions() {
32 return dimensions;
33 }
34
35 angular.module('ovTopo2')
36 .factory('Topo2ViewService',
37 [
38 function () {
39 return {
40 newDim: newDim,
41 getDimensions: getDimensions
Steven Burrowsdfa52b02016-09-02 13:50:43 +010042 };
Steven Burrowsec1f45c2016-08-08 16:14:41 +010043 }
44 ]
45 );
46})();