aframe-babia-components 1.3.0 → 1.3.3
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/visualizers/babia-boats.js +375 -212
- package/dist/aframe-babia-components.js +6585 -6200
- package/dist/aframe-babia-components.min.js +1 -1
- package/dist/aframe-babia-components.min.js.LICENSE.txt +1 -1
- package/dist/aframe-babia-components.min.js.map +1 -1
- package/docs/APIs/CHARTS.md +3 -1
- package/docs/RELEASE_NOTES.md +12 -0
- package/docs/Tutorials/HOW_TO_USE_BABIA_MAP.md +1 -1
- package/examples/boats/boats2/data_simple.json +377 -0
- package/examples/boats/boats2/index.html +2 -2
- package/examples/boats/boats_city/index.html +1 -1
- package/examples/boats/boats_city_plan_view/index.html +1 -1
- package/examples/boats/boats_dependency/experiment.html +2 -2
- package/examples/boats/boats_dependency/index.html +2 -2
- package/examples/boats/boats_dependency/index_gradient.html +1 -1
- package/examples/boats/boats_dependency/index_normalcity.html +1 -1
- package/examples/boats/boats_dependency/index_quarter_levels_01.html +1 -1
- package/examples/boats/boats_dependency/index_quarter_levels_02.html +1 -1
- package/examples/boats/boats_dependency/index_quarter_levels_03.html +1 -1
- package/examples/boats/boats_dependency/index_quarter_levels_querystring.html +2 -2
- package/examples/boats/boats_dependency/index_tree.html +1 -1
- package/examples/boats/boats_dependency/index_tree_gradient.html +1 -1
- package/examples/boats/boats_dependency/index_tree_wireframe.html +2 -2
- package/examples/boats/boats_diagonal/diagonal.json +5 -0
- package/examples/boats/boats_diagonal/index.html +53 -0
- package/examples/boats/boats_quarter_resize2/index.html +1 -1
- package/examples/boats/jetuml_evol/index.html +34 -34
- package/examples/publications/elevated/index.html +2 -6
- package/examples/ui/boats_treegenerator/index.html +1 -1
- package/examples/ui/ui_treegenerator/index.html +1 -1
- package/package.json +1 -1
- package/webpack.dev.js +2 -1
- package/webpack.devall.js +3 -0
- package/webpack.devnossl.js +3 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title>Babia Boats (elements in diagonal example)</title>
|
|
6
|
+
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
|
|
7
|
+
<script src="https://cdn.jsdelivr.net/gh/c-frame/aframe-extras@7.4.0/dist/aframe-extras.min.js"></script>
|
|
8
|
+
<!-- <script src="./aframe-babia-components.min.js"></script> -->
|
|
9
|
+
<!-- <script
|
|
10
|
+
src="https://gl.githack.com/babiaxr/aframe-babia-components/-/raw/refactor/dist/aframe-babia-components.min.js">
|
|
11
|
+
</script> -->
|
|
12
|
+
<script src="../../../dist/aframe-babia-components.js"></script>
|
|
13
|
+
</head>
|
|
14
|
+
|
|
15
|
+
<body>
|
|
16
|
+
<a-scene renderer="antialias: true" background="color: #c9f4f9"
|
|
17
|
+
stl-exporter>
|
|
18
|
+
|
|
19
|
+
<a-entity id="querier" babia-queryjson="url: ./diagonal.json;"></a-entity>
|
|
20
|
+
|
|
21
|
+
<a-entity id="tree"
|
|
22
|
+
babia-treebuilder="field: title; split_by: /; from: querier;
|
|
23
|
+
build_root: true">
|
|
24
|
+
</a-entity>
|
|
25
|
+
|
|
26
|
+
<!-- Boats Visualizer -->
|
|
27
|
+
<a-entity animation="property: rotation; to: 0 0 0; loop: true;
|
|
28
|
+
easing: linear; dur: 60000"
|
|
29
|
+
id="biblio"
|
|
30
|
+
babia-boats="from: tree; area: area; height: cites;
|
|
31
|
+
legendsAsChildren: true; legendsAsChildrenHeight: 5;
|
|
32
|
+
zone_elevation: 1; maxBuildingHeight: 5;
|
|
33
|
+
hideQuarterBoxLegend: true;
|
|
34
|
+
highlightQuarterByClick: true;
|
|
35
|
+
legend_lookat: [camera]"
|
|
36
|
+
position="0 0.1 0" sound="src: #music; loop: true">
|
|
37
|
+
</a-entity>
|
|
38
|
+
|
|
39
|
+
<a-entity light="type: ambient; color: #BBB; intensity: 0.2"></a-entity>
|
|
40
|
+
<a-entity light="type: directional; color: #FFF; intensity: 0.6"
|
|
41
|
+
position="-0.5 1 1"></a-entity>
|
|
42
|
+
|
|
43
|
+
<a-entity movement-controls="fly: true" position="0 4 6" rotation="-45 0 0">
|
|
44
|
+
<a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
|
|
45
|
+
raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom" look-controls
|
|
46
|
+
wasd-controls="fly: true; acceleration: 10">
|
|
47
|
+
<a-entity></a-entity>
|
|
48
|
+
</a-entity>
|
|
49
|
+
</a-entity>
|
|
50
|
+
</a-scene>
|
|
51
|
+
|
|
52
|
+
</body>
|
|
53
|
+
</html>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<a-entity id="data1" babia-queryjson="url: data1.json;"></a-entity>
|
|
17
17
|
<a-entity id="data2" babia-queryjson="url: data2.json;"></a-entity>
|
|
18
18
|
|
|
19
|
-
<a-entity id="boats" babia-boats="from: data1; border: 0.5;
|
|
19
|
+
<a-entity id="boats" babia-boats="from: data1; border: 0.5; separation: 0.25" position="0 1 0"></a-entity>
|
|
20
20
|
|
|
21
21
|
<a-entity movement-controls="fly: true" position="5 20 0" rotation="-90 0 0">
|
|
22
22
|
<a-entity camera look-controls></a-entity>
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
|
|
113
113
|
<!-- Boats Visualizer -->
|
|
114
114
|
<a-entity id="boats"
|
|
115
|
-
babia-boats="from: treebuilder; area: num_funs; height: loc_per_function; color: ccn; height_building_legend: -0.5; legend_scale: 0.25; height_quarter_legend_box: 1; height_quarter_legend_title: 1.5; legend_lookat: [laser-controls]; zone_elevation: 0.01; maxBuildingHeight: 1"
|
|
116
|
-
position="-1 0.3 -2" scale="0.
|
|
115
|
+
babia-boats="from: treebuilder; area: num_funs; height: loc_per_function; color: ccn; height_building_legend: -0.5; legend_scale: 0.25; height_quarter_legend_box: 1; height_quarter_legend_title: 1.5; legend_lookat: [laser-controls]; zone_elevation: 0.01; maxBuildingHeight: 1; separation: 0;"
|
|
116
|
+
position="-1 0.3 -2" scale="0.02 0.5 0.02"></a-entity>
|
|
117
117
|
|
|
118
118
|
<!-- Close tooltips -->
|
|
119
119
|
<a-plane id="closelegends" babia-lookat="[laser-controls]" class="babiaxraycasterclass" scale="0.8 0.8 0.8"
|
|
@@ -150,25 +150,25 @@
|
|
|
150
150
|
document.querySelector('a-scene').addEventListener('loaded', function () {
|
|
151
151
|
// rotate popups to the camera
|
|
152
152
|
let popups = document.querySelectorAll('[dialog-popup]');
|
|
153
|
-
if (!listenersDone) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
153
|
+
// if (!listenersDone) {
|
|
154
|
+
// popups.forEach(function (popup) {
|
|
155
|
+
// popup.addEventListener('click', function (event) {
|
|
156
|
+
// let plane = document.getElementById(`${event.target.id}--dialog-plane`);
|
|
157
|
+
// if (plane) {
|
|
158
|
+
// // Opened task
|
|
159
|
+
// hidePopups(popup)
|
|
160
|
+
// plane.setAttribute("babia-lookat", "[laser-controls]")
|
|
161
|
+
// } else {
|
|
162
|
+
// // Closed task
|
|
163
|
+
// showPopups()
|
|
164
|
+
// }
|
|
165
|
+
// }, false);
|
|
166
|
+
// });
|
|
167
|
+
|
|
168
|
+
// let infoPanel = document.getElementById(`navbarpopup--dialog-plane`);
|
|
169
|
+
// infoPanel.setAttribute("visible", "true")
|
|
170
|
+
// listenersDone = true;
|
|
171
|
+
// }
|
|
172
172
|
|
|
173
173
|
function hidePopups(popupExcept) {
|
|
174
174
|
popups.forEach(popup => {
|
|
@@ -187,21 +187,21 @@
|
|
|
187
187
|
|
|
188
188
|
let exitScene = document.getElementById("exitscene");
|
|
189
189
|
|
|
190
|
-
document.getElementById("ninesurvey").addEventListener('click', function (event) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
190
|
+
// document.getElementById("ninesurvey").addEventListener('click', function (event) {
|
|
191
|
+
// console.log(event)
|
|
192
|
+
// if (event.target.id === "ninesurvey--close-icon") {
|
|
193
|
+
// exitScene.setAttribute("visible", "false")
|
|
194
|
+
// } else if (event.target.id === "ninesurvey") {
|
|
195
|
+
// exitScene.setAttribute("visible", "true")
|
|
196
|
+
// }
|
|
197
197
|
|
|
198
|
-
}, false);
|
|
198
|
+
// }, false);
|
|
199
199
|
|
|
200
|
-
exitScene.addEventListener('click', function (event) {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}, false);
|
|
200
|
+
// exitScene.addEventListener('click', function (event) {
|
|
201
|
+
// if (exitScene.getAttribute("visible")) {
|
|
202
|
+
// window.location.replace("./end_first_vr.html")
|
|
203
|
+
// }
|
|
204
|
+
// }, false);
|
|
205
205
|
|
|
206
206
|
document.getElementById("closelegends").addEventListener('click', function (event) {
|
|
207
207
|
let ewl = document.getElementById("boats").components['babia-boats'].entitiesWithLegend
|
|
@@ -89,12 +89,8 @@
|
|
|
89
89
|
|
|
90
90
|
<!-- Querier -->
|
|
91
91
|
<a-entity id="portainerquerier" babia-queryjson="url:./dependencieslist_portainer.json;"></a-entity>
|
|
92
|
-
<a-entity id="cloudinaryquerier" babia-queryjson="url:./dependencieslist_cloudinary.json;"></a-entity>
|
|
93
92
|
<a-entity id="aframequerier" babia-queryjson="url:./dependencieslist_sh.json;"></a-entity>
|
|
94
|
-
<a-entity id="expressquerier" babia-queryjson="url:./dependencieslist_express.json;"></a-entity>
|
|
95
|
-
<a-entity id="karmaquerier" babia-queryjson="url:./dependencieslist_karma.json;"></a-entity>
|
|
96
93
|
<a-entity id="pm2querier" babia-queryjson="url:./dependencieslist_pm2.json;"></a-entity>
|
|
97
|
-
<a-entity id="filestashquerier" babia-queryjson="url:./dependencieslist_filestash.json;"></a-entity>
|
|
98
94
|
<a-entity id="ghquerier" babia-queryjson="url:./dependencieslist_ghdesktop.json;"></a-entity>
|
|
99
95
|
|
|
100
96
|
|
|
@@ -122,7 +118,7 @@
|
|
|
122
118
|
<a-entity id="boats"
|
|
123
119
|
babia-boats="from: sortinghat; area: loc/age; height: age_days; color: license; height_building_legend: -0.5; extra: 0.01; treeQuartersLevelHeight: 0.1;
|
|
124
120
|
highlightQuarter: false; treeLayout: true; gradientBaseColor: true; metricsInfoId: boatsmetricsinfo; treeFixQuarterHeight: true; treeHideOneSonQuarters: true;
|
|
125
|
-
legend_scale: 0.25; height_quarter_legend_box: 3; height_quarter_legend_title: 1.5; legend_lookat: [laser-controls]; zone_elevation: 0.01; maxBuildingHeight: 0.4; minBuildingHeight: 0.0025;
|
|
121
|
+
legend_scale: 0.25; height_quarter_legend_box: 3; height_quarter_legend_title: 1.5; legend_lookat: [laser-controls]; zone_elevation: 0.01; maxBuildingHeight: 0.4; minBuildingHeight: 0.0025; separation: 0.2; autoscale: true; baseAlpha: 0.6; highlightBuildingByField: depName; transparent20ByRepeatedField: depName; numericColorLegendId: babianumericcolorlegend"
|
|
126
122
|
position="0 0.5 -1" scale="1 1 1" rotation="0 180 0"></a-entity>
|
|
127
123
|
|
|
128
124
|
<a-entity id="interface"
|
|
@@ -263,7 +259,7 @@
|
|
|
263
259
|
let quarterheight = getValueFromQueryString('quarterheight');
|
|
264
260
|
let extra = getValueFromQueryString('extra');
|
|
265
261
|
if (buildingsep) {
|
|
266
|
-
document.getElementById("boats").setAttribute('babia-boats', '
|
|
262
|
+
document.getElementById("boats").setAttribute('babia-boats', 'separation', parseFloat(buildingsep))
|
|
267
263
|
}
|
|
268
264
|
if (quarterheight) {
|
|
269
265
|
document.getElementById("boats").setAttribute('babia-boats', 'treeQuartersLevelHeight', parseFloat(quarterheight))
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
<a-entity id="treetest" babia-treebuilder="field: id; split_by: /; from: queriertest"></a-entity>
|
|
26
26
|
|
|
27
|
-
<a-entity id="boats" babia-boats='from: treetest; width: n_func; depth: n_func; height: n_var;
|
|
27
|
+
<a-entity id="boats" babia-boats='from: treetest; width: n_func; depth: n_func; height: n_var; separation: 0.5; border:0.05'
|
|
28
28
|
position="0 0 -3" scale="0.4 1 0.4" ></a-entity>
|
|
29
29
|
|
|
30
30
|
<a-entity id="interface" babia-ui="target: boats"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
<!-- Boats -->
|
|
33
33
|
<a-entity id="boats" babia-boats='from: treetest; width: n_func; depth: n_func; height: n_var;
|
|
34
|
-
|
|
34
|
+
separation: 0.5; border:0.15'
|
|
35
35
|
position="13.5 0 -3" scale="0.3 1 0.3" ></a-entity>
|
|
36
36
|
|
|
37
37
|
<!-- Interfaces -->
|
package/package.json
CHANGED
package/webpack.dev.js
CHANGED
package/webpack.devall.js
CHANGED