blob: 4626c6dbc22531fcbcbc67293c167042b5cd2e30 [file] [log] [blame]
Matteo Scandolo0c61c9b2017-03-03 11:49:18 -08001interface ISvgMarker {
2 id: string;
3 width: number;
4 height: number;
5 refX: number;
6 refY: number;
7 viewBox: string;
8 path: string; // svg path
9}
10
11export interface IXosServiceGraphConfig {
12 force: {
13 linkDistance: number;
14 charge: number;
15 gravity: number;
16 };
17 node: {
18 padding: number;
19 radius: number;
20 };
21 markers: ISvgMarker[];
22}
23
24export const XosServiceGraphConfig: IXosServiceGraphConfig = {
25 force: {
Matteo Scandolo0e8a8422017-03-25 14:55:40 -070026 linkDistance: 80,
Matteo Scandolo0c61c9b2017-03-03 11:49:18 -080027 charge: -60,
28 gravity: 0.01
29 },
30 node: {
31 padding: 10,
32 radius: 2
33 },
34 markers: [
35 {
36 id: 'arrow',
37 width: 10,
38 height: 10,
39 refX: -80,
40 refY: 0,
41 viewBox: '0 -5 10 10',
42 path: 'M10,-5L0,0L10,5'
43 }
44 ]
45};