blob: f4ce77529561a04199b286666a7474eb869e4c75 [file] [log] [blame]
Matteo Scandolo8a64fa42016-01-21 11:21:03 -08001(function () {
2 'use strict';
3
4 angular.module('xos.serviceTopology')
5 .constant('serviceTopologyConfig', {
Matteo Scandolofcdbed32016-02-08 16:55:44 -08006 widthMargin: 20,
Matteo Scandolo071ef462016-01-25 12:00:42 -08007 heightMargin: 30,
Matteo Scandolocb12a1a2016-01-25 14:11:10 -08008 duration: 750,
Matteo Scandolocc0db942016-02-11 17:37:08 -08009 // elWidths: { // this is the fixed width for elements
10 // devices: 20,
11 // subscribers: 20,
12 // router: 20,
13 // network: 104,
14 // rack: 105
15 // },
Matteo Scandolobec0a6c2016-02-11 17:58:18 -080016 elWidths: [20, 104, 105, 104, 20, 150],
Matteo Scandolocb12a1a2016-01-25 14:11:10 -080017 circle: {
18 radius: 10,
Matteo Scandolo9fe01af2016-02-09 16:01:49 -080019 r: 10,
Matteo Scandolocb12a1a2016-01-25 14:11:10 -080020 selectedRadius: 15
Matteo Scandolofcdbed32016-02-08 16:55:44 -080021 },
22 square: {
23 width: 20,
24 height: 20,
25 x: -10,
26 y: -10
Matteo Scandolo9fe01af2016-02-09 16:01:49 -080027 },
28 rack: {
Matteo Scandolocc0db942016-02-11 17:37:08 -080029 width: 105,
Matteo Scandolo9fe01af2016-02-09 16:01:49 -080030 height: 50,
Matteo Scandolo170d3be2016-02-11 08:58:04 -080031 x: -30,
Matteo Scandolo9fe01af2016-02-09 16:01:49 -080032 y: -25
Matteo Scandolo170d3be2016-02-11 08:58:04 -080033 },
34 computeNode: {
35 width: 50,
36 height: 20,
Matteo Scandolocc0db942016-02-11 17:37:08 -080037 margin: 5,
38 labelHeight: 10,
Matteo Scandolo170d3be2016-02-11 08:58:04 -080039 x: -25,
40 y: -10
41 },
42 instance: {
43 width: 40,
44 height: 16,
Matteo Scandolocc0db942016-02-11 17:37:08 -080045 margin: 5,
Matteo Scandolo170d3be2016-02-11 08:58:04 -080046 x: -20,
47 y: -8
Matteo Scandolocb12a1a2016-01-25 14:11:10 -080048 }
Matteo Scandolo8a64fa42016-01-21 11:21:03 -080049 })
50
51}());