-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathELEMENT.json
187 lines (187 loc) · 7.99 KB
/
ELEMENT.json
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
[
{
"filename": "src/vizceral-component.js",
"is": "vizceral-component",
"es6ClassName": "VizceralComponent",
"behaviors": {},
"properties": {
"showLabels": {
"type": "Boolean",
"value": true,
"observer": "_showLabelsChanged",
"loc": 80,
"comments": "`show-labels` Whether to show node labels or not"
},
"view": {
"type": "Array",
"observer": "_viewChanged",
"reflectToAttribute": true,
"loc": 93,
"comments": "`view` Selected view\nExamples:\n[] - global view\n['us-west-2'] - node view for us-west-2\n['us-west-2', 'api-prod'] - node view for api-prod in us-west-2"
},
"customTrafficColorClasses": {
"type": "Array",
"loc": 105,
"comments": "`customTrafficColorClasses` Any custom traffic color classes that are going to be used for coloring\nUnfortunately, this is needed because of the need to know which css variables exist to access them in javascript\nChanges to this property after initial load are not watched; only the initial value is used."
}
},
"events": {
"vizceral-node-highlighted": {
"comments": "The `vizceral-node-highlighted` event is fired whenever a node is highlighted.\n\n@event vizceral-node-highlighted\n@property {object} node - The node object that has been highlighted/selected.",
"firedLoc": [
174
]
},
"vizceral-view-updated": {
"comments": "The `vizceral-view-updated` event is fired whenever the current displayed graph's view updates.\n\n@event vizceral-view-updated",
"firedLoc": [
178
]
},
"vizceral-view-changed": {
"comments": "The `vizceral-view-changed` event is fired whenever the view changes\n\n@event vizceral-view-changed\n@property {array} view - The currently selected view (e.g. [] for top level graph, ['us-east-1'] for second level graph, ['us-east-1', 'api'] for node level)",
"firedLoc": [
170
]
},
"nodeFocused": {
"comments": "The `nodeFocused` event is fired whenever a node gains focus or the currently focused node is updated\n\n@event nodeFocused\n@property {object} node - The node object that has been focused, or the focused node that has been updated."
},
"vizceral-node-context-size-changed": {
"comments": "The `vizceral-node-context-size-changed` event is fired whenever the size of a node context panel is changed\n\n@event vizceral-node-context-size-changed\n@property {object} dimensions - The dimensions of the node context panel in which to inject context",
"firedLoc": [
186
]
},
"vizceral-matches-found": {
"comments": "The `vizceral-matches-found` event is fired whenever a searchString is provided\n\n@event vizceral-matches-found\n@property {object} match counts - { total: number, visible: number}"
},
"attached": {
"comments": "The `attached` event is fired when the element is attached to the DOM.\n\n@event attached",
"firedLoc": [
194
]
},
"vizceral-node-focused": {
"firedLoc": [
182
]
}
},
"methods": {
"ready": {
"name": "ready",
"params": [],
"comments": "`ready` is called after all elements have been configured, but\npropagates bottom-up. This element's children are ready, but parents\nare not.\n\nThis is the point where you should make modifications to the DOM (when\nnecessary), or kick off any processes the element wants to perform.",
"loc": 117
},
"attached": {
"name": "attached",
"params": [],
"comments": "`attached` fires once the element and its parents have been inserted\ninto a document.\n\nThis is a good place to perform any work related to your element's\nvisual state or active behavior (measuring sizes, beginning animations,\nloading resources, etc).",
"loc": 126
},
"detached": {
"name": "detached",
"params": [],
"comments": "The analog to `attached`, `detached` fires when the element has been\nremoved from a document.\n\nUse this to clean up anything you did in `attached`.\nThe analog to `attached`, `detached` fires when the element has been\nremoved from a document.\n\nUse this to clean up anything you did in `attached`.",
"loc": 197
},
"zoomOutViewLevel": {
"name": "zoomOutViewLevel",
"params": [],
"comments": "If zoomed into a node or a service, zoom out one level up.\nIf in the global view, this is a noop.",
"loc": 208
},
"setView": {
"name": "setView",
"params": [
"viewArray",
"highlightedNode"
],
"comments": "Set the current view of the component to the passed in array. If the passed\nin array does not match an existing node, the component will try\neach level up the array until it finds a match, defaulting to the global\nview.\n\nEx:\n[] - show the base global view\n['us-east-1'] - show the view for 'us-east-1' if it exists\n['us-east-1', 'api'] - show the api node in the us-east-1 graph if it exists\n\n@param {array} viewArray - the array containing the view to set.\n@param {string} nodeToHighlight - a node to highlight in the passed in view.",
"loc": 226
},
"_viewChanged": {
"name": "_viewChanged",
"params": [],
"comments": "",
"loc": 233
},
"clearHighlight": {
"name": "clearHighlight",
"params": [],
"comments": "Clears the highlighted node, if there is one. If a node is not highlighted,\nthis is a noop.",
"loc": 241
},
"findNodes": {
"name": "findNodes",
"params": [
"searchString"
],
"comments": "Highlight nodes that match searchString. Searches the node name and the list\nof clusters, if nodes have one.\n\n@param {string} searchString - The string to match against the nodes.",
"loc": 251
},
"updateData": {
"name": "updateData",
"params": [
"data"
],
"comments": "Set the new set of traffic data to render. This is expected to be called\nwith the complete set of traffic data anytime there is an update.\n\n@param {object} data - The traffic data that matches the format in DATAFORMATS.md",
"loc": 261
},
"setFilters": {
"name": "setFilters",
"params": [
"filters"
],
"comments": "Set the set of filters to apply along with their current values.\n\n@param {object} filters - The filters that match the format in DATAFORMATS.md",
"loc": 270
},
"setDefinitions": {
"name": "setDefinitions",
"params": [
"definitions"
],
"comments": "Update the mode definitions. Refer to github.com/Netflix/vizceral/DATAFORMATS.md#definitions\n\n@param {object} definitions - Object map of definitions",
"loc": 279
},
"setModes": {
"name": "setModes",
"params": [
"modes"
],
"comments": "Set the lost of modes to apply along with their current values.\n\n@param {object} modes - Map of modes to mode type, e.g. { detailedNode: 'volume' }",
"loc": 288
},
"getNode": {
"name": "getNode",
"params": [
"nodeArray"
],
"comments": "Get a specific node object\n\n@param {array} nodeArray - e.g. [ node, node ]",
"loc": 297
},
"getCurrentGraph": {
"name": "getCurrentGraph",
"params": [],
"comments": "Get the currently selected graph object",
"loc": 304
},
"getGraphs": {
"name": "getGraphs",
"params": [],
"comments": "Get all the graphs",
"loc": 311
},
"_showLabelsChanged": {
"name": "_showLabelsChanged",
"params": [
"showLabels"
],
"comments": "fires when @show-labels is changed",
"loc": 320
}
}
}
]