aframe-babia-components 1.2.2 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/filters/babia-selector.js +256 -79
- package/components/filters/babia-treebuilder.js +1 -2
- package/components/geometries/babia-bar.js +13 -1
- package/components/geometries/babia-cyl.js +189 -0
- package/components/others/assets/tooltip.png +0 -0
- package/components/others/babia-camera.js +195 -0
- package/components/others/babia-controls.js +56 -31
- package/components/others/babia-navigator.js +55 -49
- package/components/others/babia-range-selector.js +218 -0
- package/components/others/babia-slider.js +36 -8
- package/components/others/babia-ui.js +246 -73
- package/components/others/common.js +91 -83
- package/components/queriers/babia-querycsv.js +96 -0
- package/components/queriers/babia-queryes.js +209 -131
- package/components/visualizers/babia-bars.js +15 -38
- package/components/visualizers/babia-barsmap.js +19 -34
- package/components/visualizers/babia-boats.js +221 -134
- package/components/visualizers/babia-bubbles.js +13 -26
- package/components/visualizers/babia-cyls.js +203 -201
- package/components/visualizers/babia-cylsmap.js +173 -241
- package/components/visualizers/babia-doughnut.js +6 -28
- package/components/visualizers/babia-network.js +191 -124
- package/components/visualizers/babia-pie.js +6 -30
- package/dist/aframe-babia-components.js +21913 -19571
- package/dist/aframe-babia-components.min.js +7 -1
- package/dist/aframe-babia-components.min.js.map +1 -1
- package/docs/APIs/CHARTS.md +33 -14
- package/docs/APIs/DATAMANAGEMENT.md +7 -0
- package/docs/APIs/OTHERS.md +42 -0
- package/docs/APIs/QUERIERS.md +18 -0
- package/docs/RELEASE_NOTES.md +58 -21
- package/docs/Tutorials/multiuser.md +47 -2
- package/examples/assets/door/New Bitmap Image.jpg +0 -0
- package/examples/assets/door/door.mtl +26 -0
- package/examples/assets/door/door.obj +6927 -0
- package/examples/assets/popups/0.png +0 -0
- package/examples/assets/popups/1.png +0 -0
- package/examples/assets/popups/10.png +0 -0
- package/examples/assets/popups/2.png +0 -0
- package/examples/assets/popups/3.png +0 -0
- package/examples/assets/popups/4.png +0 -0
- package/examples/assets/popups/5.png +0 -0
- package/examples/assets/popups/6.png +0 -0
- package/examples/assets/popups/7.png +0 -0
- package/examples/assets/popups/8.png +0 -0
- package/examples/assets/popups/9.png +0 -0
- package/examples/assets/popups/close.jpg +0 -0
- package/examples/assets/popups/info.jpg +0 -0
- package/examples/assets/textures/brownwall.png +0 -0
- package/examples/assets/textures/concrete.png +0 -0
- package/examples/assets/textures/white-wall-texture.jpg +0 -0
- package/examples/charts/cyls/index.html +13 -4
- package/examples/charts/cyls/primitive.html +76 -0
- package/examples/charts/cylsmap/index.html +14 -5
- package/examples/charts_querier/bars_querier/data.csv +10 -0
- package/examples/charts_querier/bars_querier/index_csv.html +80 -0
- package/examples/charts_querier/multichart_querier/manual_colors.html +81 -0
- package/examples/dashboard/chaoss-dashboards.html +259 -0
- package/examples/dashboard/chaoss-issues.html +248 -0
- package/examples/dashboard/chaoss-pr.html +248 -0
- package/examples/dashboard/index.html +247 -0
- package/examples/dashboard/issues_queries/80-percent-open-time.json +123 -0
- package/examples/dashboard/issues_queries/issues-by-organization.json +107 -0
- package/examples/dashboard/issues_queries/issues.json +117 -0
- package/examples/dashboard/issues_queries/median-open-time.json +123 -0
- package/examples/dashboard/issues_queries/organizations.json +130 -0
- package/examples/dashboard/issues_queries/projects.json +130 -0
- package/examples/dashboard/issues_queries/repositories.json +130 -0
- package/examples/dashboard/issues_queries/status.json +107 -0
- package/examples/dashboard/issues_queries/submitter.json +125 -0
- package/examples/dashboard/issues_queries/submitters.json +113 -0
- package/examples/dashboard/pullrequests_queries/80-percent-open-time.json +123 -0
- package/examples/dashboard/pullrequests_queries/median-open-time.json +123 -0
- package/examples/dashboard/pullrequests_queries/organizations.json +130 -0
- package/examples/dashboard/pullrequests_queries/projects.json +130 -0
- package/examples/dashboard/pullrequests_queries/pull-requests-by-organization.json +107 -0
- package/examples/dashboard/pullrequests_queries/pull-requests.json +117 -0
- package/examples/dashboard/pullrequests_queries/repositories.json +130 -0
- package/examples/dashboard/pullrequests_queries/status.json +107 -0
- package/examples/dashboard/pullrequests_queries/submitter.json +125 -0
- package/examples/dashboard/pullrequests_queries/submitters.json +113 -0
- package/examples/dashboard/range.html +88 -0
- package/examples/dashboard/template.html +136 -0
- package/examples/demos/1.0.11/index_multiuser_ui.html +1 -1
- package/examples/multi_bars/data.json +14 -0
- package/examples/multi_bars/data2.json +15 -0
- package/examples/multi_bars/data3.json +23 -0
- package/examples/multi_bars/easyrtc.js +11984 -0
- package/examples/multi_bars/index.html +97 -0
- package/examples/multi_bars/index1.html +111 -0
- package/examples/multi_bars/index2.html +102 -0
- package/examples/multi_bars/index3.html +104 -0
- package/examples/multi_boats/data3.json +174 -0
- package/examples/multi_boats/data4.json +192 -0
- package/examples/multi_boats/{index.html → index_multi_boats.html} +50 -55
- package/examples/multi_boats/jetuml.html +124 -115
- package/examples/multi_boats/jetuml_evolution_experiment.html +419 -0
- package/examples/multi_boats/only_queryjson.html +132 -0
- package/examples/multi_boats/only_queryjson2.html +167 -0
- package/examples/multi_boats/only_queryjson3.html +165 -0
- package/examples/multi_boats/queryjson_treebuilder.html +132 -0
- package/examples/multi_boats/with_selector.html +121 -111
- package/examples/multiuser/choose_avatar/index.html +18 -8
- package/examples/selector_boats/jetuml_from_3_2_to_1_0.json +62382 -0
- package/examples/ui/network/data.json +123 -0
- package/examples/ui/network/links.json +13 -0
- package/examples/ui/network/network.html +75 -0
- package/examples/ui/network/network_nodes_links.html +82 -0
- package/examples/ui/network/nodes.json +12 -0
- package/index.html +69 -3
- package/index.js +6 -1
- package/package.json +4 -3
- package/tests/screenshots/other_snapshots.js/chaoss-issues.png +0 -0
- package/tests/screenshots/other_snapshots.js/chaoss-pr.png +0 -0
- package/tests/screenshots/other_snapshots.js/template.png +0 -0
- package/tests/ui.js +7 -0
- package/webpack.common.js +1 -1
- package/webpack.devnossl.js +16 -0
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -79
|
@@ -2,6 +2,7 @@ let findProdComponent = require('../others/common').findProdComponent;
|
|
|
2
2
|
let updateTitle = require('../others/common').updateTitle;
|
|
3
3
|
let parseJson = require('../others/common').parseJson;
|
|
4
4
|
const colors = require('../others/common').colors;
|
|
5
|
+
let updateFunction = require('../others/common').updateFunction;
|
|
5
6
|
|
|
6
7
|
const NotiBuffer = require("../../common/noti-buffer").NotiBuffer;
|
|
7
8
|
|
|
@@ -21,6 +22,8 @@ AFRAME.registerComponent('babia-barsmap', {
|
|
|
21
22
|
z_axis: { type: 'string', default: 'z_axis' },
|
|
22
23
|
from: { type: 'string' },
|
|
23
24
|
legend: { type: 'boolean' },
|
|
25
|
+
legend_lookat: { type: 'string', default: "[camera]" },
|
|
26
|
+
legend_scale: { type: 'number', default: 1 },
|
|
24
27
|
axis: { type: 'boolean', default: true },
|
|
25
28
|
// Name for axis
|
|
26
29
|
axis_name: {type: 'boolean', default: false},
|
|
@@ -73,36 +76,7 @@ AFRAME.registerComponent('babia-barsmap', {
|
|
|
73
76
|
*/
|
|
74
77
|
|
|
75
78
|
update: function (oldData) {
|
|
76
|
-
|
|
77
|
-
let el = this.el;
|
|
78
|
-
|
|
79
|
-
if (!data.index){
|
|
80
|
-
data.index = data.x_axis
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
console.log("Starting Barsmap");
|
|
84
|
-
this.animation = data.animation
|
|
85
|
-
this.bar_array = []
|
|
86
|
-
|
|
87
|
-
if (data.data && oldData.data !== data.data) {
|
|
88
|
-
let _data = parseJson(data.data);
|
|
89
|
-
this.processData(_data);
|
|
90
|
-
} else if (this.data.from !== oldData.from) {
|
|
91
|
-
// Unregister from old producer
|
|
92
|
-
if (this.prodComponent) {
|
|
93
|
-
this.prodComponent.notiBuffer.unregister(this.notiBufferId)
|
|
94
|
-
};
|
|
95
|
-
this.prodComponent = findProdComponent(this.data, el)
|
|
96
|
-
if (this.prodComponent.notiBuffer) {
|
|
97
|
-
this.notiBufferId = this.prodComponent.notiBuffer
|
|
98
|
-
.register(this.processData.bind(this))
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
// If changed whatever, re-print with the current data
|
|
102
|
-
else if (data !== oldData && this.newData) {
|
|
103
|
-
this.slice_array = []
|
|
104
|
-
this.processData(this.newData);
|
|
105
|
-
}
|
|
79
|
+
updateFunction(this, oldData)
|
|
106
80
|
},
|
|
107
81
|
|
|
108
82
|
/**
|
|
@@ -248,7 +222,12 @@ AFRAME.registerComponent('babia-barsmap', {
|
|
|
248
222
|
let zTicks = [];
|
|
249
223
|
|
|
250
224
|
let chartEl = this.chartEl;
|
|
251
|
-
|
|
225
|
+
// RESET CHART REMOVING ALL THE BARS
|
|
226
|
+
let bars = chartEl.querySelectorAll('a-entity[babia-bar]');
|
|
227
|
+
bars.forEach(barToDelete => {
|
|
228
|
+
barToDelete.remove()
|
|
229
|
+
});
|
|
230
|
+
//console.log(dataToPrint)
|
|
252
231
|
for (let i = 0; i < dataToPrint.length; i++) {
|
|
253
232
|
let item = dataToPrint[i]
|
|
254
233
|
|
|
@@ -307,7 +286,9 @@ AFRAME.registerComponent('babia-barsmap', {
|
|
|
307
286
|
|
|
308
287
|
if (data.legend) {
|
|
309
288
|
barEl.setAttribute('babia-bar', {
|
|
310
|
-
'labelText': xLabel + ', ' + zLabel + ': ' + item[data.height]
|
|
289
|
+
'labelText': xLabel + ', ' + zLabel + ': ' + item[data.height],
|
|
290
|
+
'labelLookat': data.legend_lookat,
|
|
291
|
+
'labelScale': data.legend_scale
|
|
311
292
|
});
|
|
312
293
|
};
|
|
313
294
|
}
|
|
@@ -365,7 +346,9 @@ AFRAME.registerComponent('babia-barsmap', {
|
|
|
365
346
|
this.chartEl.querySelector('#' + bar[data.x_axis] + bar[data.z_axis]).setAttribute('babia-bar',
|
|
366
347
|
{
|
|
367
348
|
'height': bar[data.height] * data.chartHeight / this.maxValue,
|
|
368
|
-
'labelText': bar[data.x_axis] +"," + bar[data.z_axis] + ': ' + bar[data.height]
|
|
349
|
+
'labelText': bar[data.x_axis] +"," + bar[data.z_axis] + ': ' + bar[data.height],
|
|
350
|
+
'labelLookat': data.legend_lookat,
|
|
351
|
+
'labelScale': data.legend_scale
|
|
369
352
|
})
|
|
370
353
|
} else {
|
|
371
354
|
// Create new bar
|
|
@@ -437,7 +420,9 @@ let generateBar = (self, data, item, maxValue, palette, xLabels, zLabels, xTicks
|
|
|
437
420
|
|
|
438
421
|
if (data.legend) {
|
|
439
422
|
barEl.setAttribute('babia-bar', {
|
|
440
|
-
'labelText': item[self.data.x_axis] + ': ' + item[self.data.height]
|
|
423
|
+
'labelText': item[self.data.x_axis] + ': ' + item[self.data.height],
|
|
424
|
+
'labelLookat': data.legend_lookat,
|
|
425
|
+
'labelScale': data.legend_scale
|
|
441
426
|
});
|
|
442
427
|
};
|
|
443
428
|
|