-
Notifications
You must be signed in to change notification settings - Fork 3
/
template.html
260 lines (229 loc) · 10.4 KB
/
template.html
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<div class="">
<div data-palladio-graph-view
graph-height="graphHeight"
style="margin-bottom: -55px"
link-dimension="linkDimension"
show-links="showLinks"
show-labels="showLabels"
highlight-source="highlightSource"
highlight-target="highlightTarget"
read-internal-state="readInternalState"
set-internal-state="setInternalState"
get-svg="getSvg"
node-size="nodeSize"
data-aggregation-type="{{aggregationType}}"
data-aggregate-key="{{aggregateKey}}"
count-by="{{countBy}}"
count-description="{{aggDescription}}"
metrics="metrics"
unimodal="unimodal">
<div class="leaflet-top leaflet-left">
<div class="leaflet-control-zoom-graph leaflet-bar leaflet-control">
<a class="leaflet-control-zoom-in" ng-click="zoomIn()" title="Zoom in">+</a>
<a class="leaflet-control-zoom-out" ng-click="zoomOut()" title="Zoom out">-</a>
</div>
<div class="zoom-to-data-control leaflet-bar leaflet-control">
<a class="leaflet-control-to-data" title="Zoom to data" ng-click="zoomToData()"><i class="fa fa-object-group"></i></a>
</div>
</div>
<div class="row graph-metrics" data-ng-show="displayMetrics">
<div class="metrics closed col-lg-12 col-md-12">
<div class="panel panel-default">
<a class="metrics-toggle" data-toggle="tooltip" data-original-title="Metrics" data-placement="bottom">
<i class="fa fa-calculator"></i>
</a>
<div class="panel-body">
<div class="alert alert-danger" ng-show="!unimodal">
<div><strong>WARNING!</strong> The Metrics section only works for <em>unipartite</em> networks (ones that only allow links among a single type of object), but it seems you may have created a <em>bipartite</em> network. This <em>could</em> still be a unipartite network, but Palladio cannot verify it as such. If this is not a unipartite network, the results shown in this section are <em><strong>not valid</strong></em> and should be disregarded.</div><br>
<div>To verify you have a unipartite network, link your data fields to the same "Extension" table in the Data section. For more information on bipartite/bimodal networks, see <a href="http://www.scottbot.net/HIAL/index.html@p=41158.html" class="alert-link">this blog post</a>.</div>
</div>
<div class="row">
<div class="col-md-8 metric-table">
<form>
<div class="form-group">
<div class="input-group">
<div class="input-group-addon"><i class="fa fa-search"></i></div>
<input type="text" class="form-control" placeholder="Search Nodes" ng-model="searchNodes">
</div>
</div>
</form>
<table class="table table-hover table-bordered table-striped">
<thead>
<tr>
<th>
<a ng-click="sortType = 'name'; sortReverse = !sortReverse">
Node ID
<span ng-show="sortType == 'name' && !sortReverse" class="fa fa-caret-down"></span>
<span ng-show="sortType == 'name' && sortReverse" class="fa fa-caret-up"></span>
</a>
</th>
<th>
<a ng-click="sortType = 'degree'; sortReverse = !sortReverse">
Degree
<span ng-show="sortType == 'degree' && sortReverse" class="fa fa-caret-down"></span>
<span ng-show="sortType == 'degree' && !sortReverse" class="fa fa-caret-up"></span>
</a>
</th>
<th>
<a ng-click="sortType = 'betweenness'; sortReverse = !sortReverse">
Betweenness Centrality
<span ng-show="sortType == 'betweenness' && sortReverse" class="fa fa-caret-down"></span>
<span ng-show="sortType == 'betweenness' && !sortReverse" class="fa fa-caret-up"></span>
</a>
</th>
<th>
<a ng-click="sortType = 'eigenvector'; sortReverse = !sortReverse">
Eigenvector Centrality
<span ng-show="sortType == 'eigenvector' && sortReverse" class="fa fa-caret-down"></span>
<span ng-show="sortType == 'eigenvector' && !sortReverse" class="fa fa-caret-up"></span>
</a>
</th>
<th>
<a ng-click="sortType = 'clustering'; sortReverse = !sortReverse">
Clustering Coefficient
<span ng-show="sortType == 'clustering' && sortReverse" class="fa fa-caret-down"></span>
<span ng-show="sortType == 'clustering' && !sortReverse" class="fa fa-caret-up"></span>
</a>
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="node in metrics.nodes | orderBy:sortType:sortReverse | filter:searchNodes">
<td>{{ node.name }}</td>
<td>{{ node.degree }}</td>
<td>{{ node.betweenness }}</td>
<td>{{ node.eigenvector }}</td>
<td>{{ node.clustering }}</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
Global metrics
</h4>
</div>
<div class="panel-body" id="info-panel">
<div>Number of Nodes: {{ metrics.nodecount }}</div>
<div>Number of Edges: {{ metrics.edgecount }}</div>
<div>Average Degree: {{ metrics.averageDegree }}</div>
<div>Density: {{ metrics.density }}</div>
<div>Avg. Clustering Coefficient: {{ metrics.averageClustering }}</div>
<div>Transitivity: {{ metrics.transitivity }}</div>
</div>
</div>
</div>
</div>
<span class="acknowledgement">
The Network Metrics panel is based on
<a href="https://network-navigator.library.cmu.edu/" title="Network Navigator" target="nn">
Network Navigator
</a>.
</span>
</div>
</div>
</div>
</div>
</div>
<!-- Settings -->
<div class="row graph-settings" data-ng-show="settings">
<div class="settings closed col-lg-4 col-lg-offset-8 col-md-6 col-md-offset-6">
<div class="panel panel-default">
<a class="settings-toggle" data-toggle="tooltip" data-original-title="Settings" data-placement="bottom">
<i class="fa fa-bars"></i>
</a>
<div class="panel-body">
<div class="row">
<div class="col-lg-12">
<label>Settings</label>
</div>
</div>
<div class="row margin-top">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 text-right">
<label class="inline">Source</label>
</div>
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-8 col-condensed">
<span class="btn btn-default" ng-click="showSourceModal()">
{{mapping.sourceDimension.description || "Choose"}}
<span class="caret"></span>
</span>
</div>
</div>
<div class="row margin-top">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 text-right">
<label class="inline">Highlight</label>
</div>
<div class="col-lg-8 col-md-8 col-md-8 col-xs-8 col-condensed">
<input type="checkbox" ng-model="highlightSource">
</div>
</div>
<div class="row margin-top">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 text-right">
<label class="inline">Target</label>
</div>
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-8 col-condensed">
<span class="btn btn-default" ng-click="showTargetModal()">
{{mapping.targetDimension.description || "Choose"}}
<span class="caret"></span>
</span>
</div>
</div>
<div class="row margin-top">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 text-right">
<label class="inline">Highlight</label>
</div>
<div class="col-lg-8 col-md-8 col-md-8 col-xs-8 col-condensed">
<input type="checkbox" ng-model="highlightTarget">
</div>
</div>
<div class="row margin-top">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 text-right">
<label class="inline">Show links</label>
</div>
<div class="col-lg-8 col-md-8 col-md-8 col-xs-8 col-condensed">
<input type="checkbox" ng-model="showLinks">
</div>
</div>
<div class="row margin-top">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 text-right">
<label class="inline">Size nodes</label>
</div>
<div class="col-lg-8 col-md-8 col-md-8 col-xs-8 col-condensed">
<input type="checkbox" ng-model="nodeSize">
</div>
</div>
<div class="row margin-top" data-ng-show="nodeSize">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 text-right ">
<label class="inline">According to</label>
</div>
<div class="col-lg-8 col-md-8 col-md-8 col-xs-8 col-condensed">
<span class="btn btn-default" ng-click="showAggModal()">
{{getAggDescription(aggDim) || "Choose"}}
<span class="caret"></span>
</span>
</div>
</div>
<div class="row margin-top">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 text-right ">
</div>
<div class="col-lg-8 col-md-8 col-md-8 col-xs-8 col-condensed">
<a class="pull-right"
tooltip="Download graph (svg)"
tooltip-animation="false"
tooltip-append-to-body="true"
ng-click="exportSvg(this, 'Palladio Graph.svg')">
<i class="fa fa-download margin-right"></i>Download
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="{{uniqueModalId}}">
<div id="source-modal" data-modal description="Choose source dimension" dimensions="fields" model="mapping.sourceDimension"></div>
<div id="target-modal" data-modal description="Choose target dimension" dimensions="fields" model="mapping.targetDimension"></div>
<div id="agg-modal" data-modal description="Choose aggregation for sizing nodes" dimensions="aggDims" model="aggDim" description-accessor="getAggDescription"></div>
</div>