blob: 3c1c4860816390ec3302583414f19135a24427d2 [file] [log] [blame]
Matteo Scandolod2044a42017-08-07 16:08:28 -07001
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 Scandolo8a64fa42016-01-21 11:21:03 -080019(function () {
20 'use strict';
21
Matteo Scandolo04564952016-02-24 11:22:48 -080022 angular.module('xos.diagnostic')
Matteo Scandolo8a64fa42016-01-21 11:21:03 -080023 .constant('serviceTopologyConfig', {
Matteo Scandolo79108192016-03-08 09:33:26 -080024 widthMargin: 60,
Matteo Scandolo071ef462016-01-25 12:00:42 -080025 heightMargin: 30,
Matteo Scandolocb12a1a2016-01-25 14:11:10 -080026 duration: 750,
Matteo Scandolo7e67a9a2016-02-16 16:33:26 -080027 elWidths: [20, 104, 105, 104, 20], //this is not true
Matteo Scandolocb12a1a2016-01-25 14:11:10 -080028 circle: {
29 radius: 10,
Matteo Scandolo9fe01af2016-02-09 16:01:49 -080030 r: 10,
Matteo Scandolocb12a1a2016-01-25 14:11:10 -080031 selectedRadius: 15
Matteo Scandolofcdbed32016-02-08 16:55:44 -080032 },
33 square: {
34 width: 20,
35 height: 20,
36 x: -10,
37 y: -10
Matteo Scandolo9fe01af2016-02-09 16:01:49 -080038 },
39 rack: {
Matteo Scandolocc0db942016-02-11 17:37:08 -080040 width: 105,
Matteo Scandolo9fe01af2016-02-09 16:01:49 -080041 height: 50,
Matteo Scandolo170d3be2016-02-11 08:58:04 -080042 x: -30,
Matteo Scandolo9fe01af2016-02-09 16:01:49 -080043 y: -25
Matteo Scandolo170d3be2016-02-11 08:58:04 -080044 },
45 computeNode: {
46 width: 50,
47 height: 20,
Matteo Scandolocc0db942016-02-11 17:37:08 -080048 margin: 5,
49 labelHeight: 10,
Matteo Scandolo170d3be2016-02-11 08:58:04 -080050 x: -25,
51 y: -10
52 },
53 instance: {
Matteo Scandoloca7db312016-02-16 12:50:50 -080054 width: 80,
55 height: 36,
Matteo Scandolocc0db942016-02-11 17:37:08 -080056 margin: 5,
Matteo Scandoloca7db312016-02-16 12:50:50 -080057 x: -40,
58 y: -18
Matteo Scandolo50eeec62016-02-23 10:04:36 -080059 },
60 container: {
61 width: 60,
Matteo Scandolof0d6e692016-02-24 11:14:01 -080062 height: 130,
Matteo Scandolo50eeec62016-02-23 10:04:36 -080063 margin: 5,
64 x: -30,
65 y: -15
Matteo Scandolocb12a1a2016-01-25 14:11:10 -080066 }
Matteo Scandolo8a64fa42016-01-21 11:21:03 -080067 })
68
69}());