-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypes.ts
74 lines (69 loc) · 1.48 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
export interface LayerOptions {
color: string;
visible: boolean;
jsonFromUrl: boolean;
mapjsonUrl: string;
mapjson: string;
nodeHighlight: string;
srcField: string;
dstField: string;
inboundValueField: string;
outboundValueField: string;
endpointId: string;
legend: boolean;
name: string;
nodeWidth: number;
edgeWidth: number;
pathOffset: number;
dashboardEdgeSrcVar: string;
dashboardEdgeDstVar: string;
dashboardNodeVar: string;
nodeThresholds: any;
nodeNameMatchField: string;
nodeValueField: string;
remoteUrl?: string;
}
export interface MapOptions {
configurationUrl: string;
background: string;
initialViewStrategy: string;
latitudeVar: string;
layerLimit: number;
longitudeVar: string;
showSidebar: boolean;
showViewControls: boolean;
showLegend: boolean;
enableScrolling: boolean;
enableEditing: boolean;
enableNodeAnimation: boolean;
enableEdgeAnimation: boolean;
editMode: boolean;
thresholds: any[];
legendColumnLength: number;
legendPosition: string;
legendDefaultBehavior: string;
zIndexBase: number;
topologySource: string;
viewport: {
top?: number;
left?: number;
bottom?: number;
right?: number;
center?: {
lat: number;
lng: number;
}
zoom?: number;
}
layers: Array<Partial<LayerOptions>>;
}
export interface IColumn {
selector: string;
text: string;
type: string;
}
export interface IFlowSheet {
name: string;
url: string;
expectedFlow: string;
}