Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | |
Matteo Scandolo | 8a64fa4 | 2016-01-21 11:21:03 -0800 | [diff] [blame] | 19 | (function () { |
| 20 | 'use strict'; |
| 21 | |
Matteo Scandolo | 0456495 | 2016-02-24 11:22:48 -0800 | [diff] [blame] | 22 | angular.module('xos.diagnostic') |
Matteo Scandolo | 8a64fa4 | 2016-01-21 11:21:03 -0800 | [diff] [blame] | 23 | .constant('serviceTopologyConfig', { |
Matteo Scandolo | 7910819 | 2016-03-08 09:33:26 -0800 | [diff] [blame] | 24 | widthMargin: 60, |
Matteo Scandolo | 071ef46 | 2016-01-25 12:00:42 -0800 | [diff] [blame] | 25 | heightMargin: 30, |
Matteo Scandolo | cb12a1a | 2016-01-25 14:11:10 -0800 | [diff] [blame] | 26 | duration: 750, |
Matteo Scandolo | 7e67a9a | 2016-02-16 16:33:26 -0800 | [diff] [blame] | 27 | elWidths: [20, 104, 105, 104, 20], //this is not true |
Matteo Scandolo | cb12a1a | 2016-01-25 14:11:10 -0800 | [diff] [blame] | 28 | circle: { |
| 29 | radius: 10, |
Matteo Scandolo | 9fe01af | 2016-02-09 16:01:49 -0800 | [diff] [blame] | 30 | r: 10, |
Matteo Scandolo | cb12a1a | 2016-01-25 14:11:10 -0800 | [diff] [blame] | 31 | selectedRadius: 15 |
Matteo Scandolo | fcdbed3 | 2016-02-08 16:55:44 -0800 | [diff] [blame] | 32 | }, |
| 33 | square: { |
| 34 | width: 20, |
| 35 | height: 20, |
| 36 | x: -10, |
| 37 | y: -10 |
Matteo Scandolo | 9fe01af | 2016-02-09 16:01:49 -0800 | [diff] [blame] | 38 | }, |
| 39 | rack: { |
Matteo Scandolo | cc0db94 | 2016-02-11 17:37:08 -0800 | [diff] [blame] | 40 | width: 105, |
Matteo Scandolo | 9fe01af | 2016-02-09 16:01:49 -0800 | [diff] [blame] | 41 | height: 50, |
Matteo Scandolo | 170d3be | 2016-02-11 08:58:04 -0800 | [diff] [blame] | 42 | x: -30, |
Matteo Scandolo | 9fe01af | 2016-02-09 16:01:49 -0800 | [diff] [blame] | 43 | y: -25 |
Matteo Scandolo | 170d3be | 2016-02-11 08:58:04 -0800 | [diff] [blame] | 44 | }, |
| 45 | computeNode: { |
| 46 | width: 50, |
| 47 | height: 20, |
Matteo Scandolo | cc0db94 | 2016-02-11 17:37:08 -0800 | [diff] [blame] | 48 | margin: 5, |
| 49 | labelHeight: 10, |
Matteo Scandolo | 170d3be | 2016-02-11 08:58:04 -0800 | [diff] [blame] | 50 | x: -25, |
| 51 | y: -10 |
| 52 | }, |
| 53 | instance: { |
Matteo Scandolo | ca7db31 | 2016-02-16 12:50:50 -0800 | [diff] [blame] | 54 | width: 80, |
| 55 | height: 36, |
Matteo Scandolo | cc0db94 | 2016-02-11 17:37:08 -0800 | [diff] [blame] | 56 | margin: 5, |
Matteo Scandolo | ca7db31 | 2016-02-16 12:50:50 -0800 | [diff] [blame] | 57 | x: -40, |
| 58 | y: -18 |
Matteo Scandolo | 50eeec6 | 2016-02-23 10:04:36 -0800 | [diff] [blame] | 59 | }, |
| 60 | container: { |
| 61 | width: 60, |
Matteo Scandolo | f0d6e69 | 2016-02-24 11:14:01 -0800 | [diff] [blame] | 62 | height: 130, |
Matteo Scandolo | 50eeec6 | 2016-02-23 10:04:36 -0800 | [diff] [blame] | 63 | margin: 5, |
| 64 | x: -30, |
| 65 | y: -15 |
Matteo Scandolo | cb12a1a | 2016-01-25 14:11:10 -0800 | [diff] [blame] | 66 | } |
Matteo Scandolo | 8a64fa4 | 2016-01-21 11:21:03 -0800 | [diff] [blame] | 67 | }) |
| 68 | |
| 69 | }()); |