|
4 | 4 | * @restrict E
|
5 | 5 | *
|
6 | 6 | * @description
|
7 |
| - * Component for rendering a topology chart. Individual nodes and relationships can be represented with this view. CSS is especially important for rendering the noes and lines. The example inline contains specific examples that can be used to change the icon size and the line type of the relationships. |
| 7 | + * Component for rendering a topology chart. Individual nodes and relationships can be represented with this view. CSS is especially important for rendering the nodes and lines. The example inline contains specific examples that can be used to change the icon size and the line type of the relationships. |
8 | 8 | *
|
9 | 9 | * In addition; searching, filtering and label visibility is also supported.<br/>
|
10 | 10 | *
|
|
172 | 172 | "fontfamily": "FontAwesome"
|
173 | 173 | },
|
174 | 174 | "Host": {
|
175 |
| - "type": "glyph", |
176 |
| - "icon": "", |
177 |
| - "fontfamily": "PatternFlyIcons-webfont" |
178 |
| - }, |
179 |
| - "Vm": { |
| 175 | + "type": "glyph", |
| 176 | + "icon": "", |
| 177 | + "fontfamily": "PatternFlyIcons-webfont" |
| 178 | + }, |
| 179 | + "Vm": { |
180 | 180 | "type": "glyph",
|
181 | 181 | "icon": "",
|
182 | 182 | "fontfamily": "PatternFlyIcons-webfont"
|
|
186 | 186 | "icon": "",
|
187 | 187 | "fontfamily": "PatternFlyIcons-webfont"
|
188 | 188 | }
|
189 |
| - }, |
| 189 | + }, |
190 | 190 | });
|
191 | 191 |
|
192 | 192 | $rootScope.data = datasets[index];
|
193 | 193 |
|
194 | 194 | var nodeKinds = {
|
195 |
| - "ContainerReplicator": true, |
196 |
| - "ContainerGroup": true, |
197 |
| - "Container": true, |
198 |
| - "ContainerNode": true, |
199 |
| - "ContainerService": true, |
200 |
| - "Host": true, |
201 |
| - "Vm": true, |
202 |
| - "ContainerRoute": true, |
203 |
| - "ContainerManager": true |
204 |
| - }; |
| 195 | + "ContainerReplicator": true, |
| 196 | + "ContainerGroup": true, |
| 197 | + "Container": true, |
| 198 | + "ContainerNode": true, |
| 199 | + "ContainerService": true, |
| 200 | + "Host": true, |
| 201 | + "Vm": true, |
| 202 | + "ContainerRoute": true, |
| 203 | + "ContainerManager": true |
| 204 | + }; |
205 | 205 |
|
206 |
| - $rootScope.kinds = nodeKinds; |
| 206 | + $rootScope.kinds = nodeKinds; |
207 | 207 |
|
208 |
| - var icons = $rootScope.data.icons; |
| 208 | + var icons = $rootScope.data.icons; |
209 | 209 | $scope.nodes = {};
|
210 |
| - for(var kind in nodeKinds) { |
211 |
| - var icon = icons[kind]; |
212 |
| - $scope.nodes[kind] = { |
213 |
| - "name": kind, |
214 |
| - "enabled": nodeKinds[kind], |
215 |
| - "radius": 16, |
216 |
| - "textX": 0, |
217 |
| - "textY": 5, |
218 |
| - "height": 18, |
219 |
| - "width": 18, |
220 |
| - "icon": icon.icon, |
221 |
| - "fontFamily": icon.fontfamily |
222 |
| - }; |
223 |
| - } |
| 210 | + for(var kind in nodeKinds) { |
| 211 | + var icon = icons[kind]; |
| 212 | + $scope.nodes[kind] = { |
| 213 | + "name": kind, |
| 214 | + "enabled": nodeKinds[kind], |
| 215 | + "radius": 16, |
| 216 | + "textX": 0, |
| 217 | + "textY": 5, |
| 218 | + "height": 18, |
| 219 | + "width": 18, |
| 220 | + "icon": icon.icon, |
| 221 | + "fontFamily": icon.fontfamily |
| 222 | + }; |
| 223 | + } |
224 | 224 |
|
225 | 225 | // Individual values can also be set for specific icons
|
226 | 226 | $scope.nodes.ContainerService.textY = 9;
|
|
0 commit comments