blob: db1d832ef8787cc72273a3873f3f0933cffa382d [file] [log] [blame]
Matteo Scandolobe9b13d2016-01-21 11:21:03 -08001(function () {
2 'use strict';
3
4 angular.module('xos.serviceTopology')
5 .constant('serviceTopologyConfig', {
Matteo Scandoloda19dff2016-02-08 16:55:44 -08006 widthMargin: 20,
Matteo Scandolo4889f5a2016-01-25 12:00:42 -08007 heightMargin: 30,
Matteo Scandolo7dbb1912016-01-25 14:11:10 -08008 duration: 750,
Matteo Scandolo594dfbc2016-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 // },
16 elWidths: [20, 104, 105, 104, 20, 20],
Matteo Scandolo7dbb1912016-01-25 14:11:10 -080017 circle: {
18 radius: 10,
Matteo Scandolo38ba3312016-02-09 16:01:49 -080019 r: 10,
Matteo Scandolo7dbb1912016-01-25 14:11:10 -080020 selectedRadius: 15
Matteo Scandoloda19dff2016-02-08 16:55:44 -080021 },
22 square: {
23 width: 20,
24 height: 20,
25 x: -10,
26 y: -10
Matteo Scandolo38ba3312016-02-09 16:01:49 -080027 },
28 rack: {
Matteo Scandolo594dfbc2016-02-11 17:37:08 -080029 width: 105,
Matteo Scandolo38ba3312016-02-09 16:01:49 -080030 height: 50,
Matteo Scandolo14183932016-02-11 08:58:04 -080031 x: -30,
Matteo Scandolo38ba3312016-02-09 16:01:49 -080032 y: -25
Matteo Scandolo14183932016-02-11 08:58:04 -080033 },
34 computeNode: {
35 width: 50,
36 height: 20,
Matteo Scandolo594dfbc2016-02-11 17:37:08 -080037 margin: 5,
38 labelHeight: 10,
Matteo Scandolo14183932016-02-11 08:58:04 -080039 x: -25,
40 y: -10
41 },
42 instance: {
43 width: 40,
44 height: 16,
Matteo Scandolo594dfbc2016-02-11 17:37:08 -080045 margin: 5,
Matteo Scandolo14183932016-02-11 08:58:04 -080046 x: -20,
47 y: -8
Matteo Scandolo7dbb1912016-01-25 14:11:10 -080048 }
Matteo Scandolobe9b13d2016-01-21 11:21:03 -080049 })
50
51}());