aframe-babia-components 1.2.5 → 1.2.6
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-treebuilder.js +17 -12
- package/components/others/babia-camera.js +52 -40
- package/components/others/babia-experiment.js +457 -0
- package/components/others/babia-poster.js +383 -0
- package/components/others/babia-task.js +247 -0
- package/components/others/babia-ui.js +312 -147
- package/components/others/common.js +36 -5
- package/components/visualizers/babia-boats.js +708 -87
- package/components/visualizers/babia-network.js +268 -212
- package/dist/aframe-babia-components.js +20590 -18317
- package/dist/aframe-babia-components.min.js +3 -3
- package/dist/aframe-babia-components.min.js.map +1 -1
- package/docs/APIs/CHARTS.md +233 -207
- package/docs/APIs/OTHERS.md +143 -56
- package/docs/RELEASE_NOTES.md +5 -0
- package/docs/Tutorials/how_to_prepare_an_experiment.md +148 -0
- package/examples/assets/palettes/bluetored.jpg +0 -0
- package/examples/assets/textures/360-panorama.jpg +0 -0
- package/examples/assets/textures/floor-texture.jpg +0 -0
- package/examples/assets/textures/metalic-texture.jpg +0 -0
- package/examples/boats/boats_dependency/dependencieslist_cloudinary.json +1 -0
- package/examples/boats/boats_dependency/dependencieslist_express.json +4376 -0
- package/examples/boats/boats_dependency/dependencieslist_filestash.json +39533 -0
- package/examples/boats/boats_dependency/dependencieslist_ghdesktop.json +127660 -0
- package/examples/boats/boats_dependency/dependencieslist_karma.json +1 -0
- package/examples/boats/boats_dependency/dependencieslist_pm2.json +13726 -0
- package/examples/boats/boats_dependency/dependencieslist_portainer.json +41818 -0
- package/examples/boats/boats_dependency/dependencieslist_sh.json +5194 -0
- package/examples/boats/boats_dependency/experiment.html +277 -0
- package/examples/boats/boats_dependency/index.html +300 -0
- package/examples/boats/boats_dependency/index_gradient.html +209 -0
- package/examples/boats/boats_dependency/index_normalcity.html +207 -0
- package/examples/boats/boats_dependency/index_quarter_levels_01.html +213 -0
- package/examples/boats/boats_dependency/index_quarter_levels_02.html +213 -0
- package/examples/boats/boats_dependency/index_quarter_levels_03.html +213 -0
- package/examples/boats/boats_dependency/index_quarter_levels_querystring.html +243 -0
- package/examples/boats/boats_dependency/index_tree.html +211 -0
- package/examples/boats/boats_dependency/index_tree_gradient.html +212 -0
- package/examples/boats/boats_dependency/index_tree_wireframe.html +243 -0
- package/examples/charts/network_chart/network_chart.html +10 -2
- package/examples/charts/pie/index.html +3 -4
- package/examples/codecityjs/perceval2021/index.html +1 -1
- package/examples/codecityjs/projects_analysis/argouml_landscape.html +1 -1
- package/examples/codecityjs/projects_analysis/argouml_numfuns.html +3 -3
- package/examples/codecityjs/projects_analysis/argouml_table.html +1 -1
- package/examples/codecityjs/projects_analysis/argouml_tokens.html +1 -1
- package/examples/codecityjs/projects_analysis/experiment_interface.html +1 -1
- package/examples/codecityjs/projects_analysis/experiment_interface_task5.html +1 -1
- package/examples/codecityjs/projects_analysis/experiment_interface_vr_2021.html +1 -1
- package/examples/codecityjs/projects_analysis/experiment_interface_vr_task5.html +1 -1
- package/examples/codecityjs/projects_analysis/perceval_landscape.html +1 -1
- package/examples/codecityjs/projects_analysis/perceval_table.html +1 -1
- package/examples/dashboard/chaoss-dashboards.html +1 -1
- package/examples/dashboard/chaoss-issues.html +1 -1
- package/examples/dashboard/chaoss-pr.html +1 -1
- package/examples/dashboard/range.html +1 -1
- package/examples/dashboard/template.html +1 -1
- package/examples/experiment/city.html +352 -0
- package/examples/experiment/index.html +527 -0
- package/examples/experiment/pie.html +90 -0
- package/examples/experiment/sample-3s.mp3 +0 -0
- package/examples/experiment/sample.mp4 +0 -0
- package/examples/experiment/staticdata/80-percent-open-time-issues2.json +1 -0
- package/examples/experiment/staticdata/80-percent-open-time-pr.json +1 -0
- package/examples/experiment/staticdata/issues-by-organization.json +1 -0
- package/examples/experiment/staticdata/issues.json +1 -0
- package/examples/experiment/staticdata/jetuml_code_data.json +1 -0
- package/examples/experiment/staticdata/median-open-time-issues.json +1 -0
- package/examples/experiment/staticdata/median-open-time-pr.json +1 -0
- package/examples/experiment/staticdata/organizations-issues.json +1 -0
- package/examples/experiment/staticdata/organizations-pr.json +1 -0
- package/examples/experiment/staticdata/projects-issues.json +1 -0
- package/examples/experiment/staticdata/projects-pr.json +1 -0
- package/examples/experiment/staticdata/pull-requests-by-organization.json +1 -0
- package/examples/experiment/staticdata/pull-requests.json +1 -0
- package/examples/experiment/staticdata/repositories-issues-asignees.json +1 -0
- package/examples/experiment/staticdata/repositories-issues-avgdays.json +1 -0
- package/examples/experiment/staticdata/repositories-issues-count.json +1 -0
- package/examples/experiment/staticdata/repositories-issues-submitters.json +1 -0
- package/examples/experiment/staticdata/repositories-pr-asignees.json +1 -0
- package/examples/experiment/staticdata/repositories-pr-avgdays.json +1 -0
- package/examples/experiment/staticdata/repositories-pr-count.json +1 -0
- package/examples/experiment/staticdata/repositories-pr-submitters.json +1 -0
- package/examples/experiment/staticdata/status-issues.json +1 -0
- package/examples/experiment/staticdata/status-pr.json +1 -0
- package/examples/experiment/staticdata/submitter-issues-avgdays.json +1 -0
- package/examples/experiment/staticdata/submitter-issues-count.json +1 -0
- package/examples/experiment/staticdata/submitter-issues-repo.json +1 -0
- package/examples/experiment/staticdata/submitter-pr-avgdays.json +1 -0
- package/examples/experiment/staticdata/submitter-pr-count.json +1 -0
- package/examples/experiment/staticdata/submitter-pr-repo.json +1 -0
- package/examples/experiment/staticdata/submitters-issues.json +1 -0
- package/examples/experiment/staticdata/submitters-pr.json +1 -0
- package/examples/multi_boats/jetuml_evolution_experiment.html +1 -1
- package/index.js +23 -9
- package/package.json +1 -1
- package/examples/charts_querier/network_chart_querier/data.json +0 -123
- package/examples/charts_querier/network_chart_querier/links.json +0 -13
- package/examples/charts_querier/network_chart_querier/network_chart_querier.html +0 -68
- package/examples/charts_querier/network_chart_querier/network_chart_querier_nodes_links.html +0 -74
- package/examples/charts_querier/network_chart_querier/nodes.json +0 -12
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<title>Babia Template - Visualize your Data </title>
|
|
7
|
+
<meta name="description" content="Museum build aframe and babia">
|
|
8
|
+
</meta>
|
|
9
|
+
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
|
|
10
|
+
<script
|
|
11
|
+
src="https://rawgit.com/fernandojsg/aframe-teleport-controls/master/dist/aframe-teleport-controls.min.js"></script>
|
|
12
|
+
<script src="https://unpkg.com/aframe-tooltip-component/dist/aframe-tooltip-component.min.js"></script>
|
|
13
|
+
<script src="../../../dist/aframe-babia-components.js"></script>
|
|
14
|
+
<link rel="stylesheet" href="../../../assets/gitlab-corner.css">
|
|
15
|
+
</head>
|
|
16
|
+
|
|
17
|
+
<body>
|
|
18
|
+
<a-scene id="scene">
|
|
19
|
+
|
|
20
|
+
<!-- Assets -->
|
|
21
|
+
<a-assets>
|
|
22
|
+
<img id="sky" src="../../assets/textures/360-panorama.jpg">
|
|
23
|
+
<img id="floor" src="../../assets/textures/floor-texture.jpg">
|
|
24
|
+
<img id="metalic" src="../../assets/textures/metalic-texture.jpg">
|
|
25
|
+
<img id="wall" src="../../assets/textures/white-wall-texture.jpg">
|
|
26
|
+
<a-asset-item id="door-obj" src="../../assets/door/door.obj"></a-asset-item>
|
|
27
|
+
<a-asset-item id="door-mtl" src="../../assets/door/door.mtl"></a-asset-item>
|
|
28
|
+
</a-assets>
|
|
29
|
+
|
|
30
|
+
<!-- Enviroment -->
|
|
31
|
+
<a-sky src="#sky"></a-sky>
|
|
32
|
+
|
|
33
|
+
<!-- Room -->
|
|
34
|
+
<a-entity id="Room">
|
|
35
|
+
<a-entity id="floorRoom" material="shader: flat; src: #floor"
|
|
36
|
+
geometry="primitive: box; width: 7; depth: 9; height: 0.1"></a-entity>
|
|
37
|
+
<a-entity id="ceiling" geometry="primitive: box; width: 7; depth: 9; height: 0.1"
|
|
38
|
+
position="0 3 0" material="shader: flat; src: #wall"></a-entity>
|
|
39
|
+
<a-entity id="door" obj-model="obj: #door-obj; mtl: #door-mtl" position="3.4 1.2 -2.7"
|
|
40
|
+
rotation="-90 -90 0" scale="0.013 0.013 0.011"></a-entity>
|
|
41
|
+
<a-entity id="wall1" position="3.65 1.5 0">
|
|
42
|
+
<a-entity id="wall1-1" geometry="primitive: box; width: 0.5; depth: 8.7; height: 3"
|
|
43
|
+
material="shader: flat; src: #wall"></a-entity>
|
|
44
|
+
</a-entity>
|
|
45
|
+
<a-entity id="wall2" position="-3.5 1.5 0">
|
|
46
|
+
<a-entity id="wall2-1" geometry="primitive: box; width: 0.3; depth: 8.7; height: 1"
|
|
47
|
+
material="shader: flat; src: #wall; repeat: 5 1" position="0 -1 0"></a-entity>
|
|
48
|
+
<a-entity id="wall2-2" geometry="primitive: box; width: 0.3; depth: 8.7; height: 0.3"
|
|
49
|
+
material="shader: flat; src: #wall; repeat: 5 1" position="0 1.35 0"></a-entity>
|
|
50
|
+
<a-entity id="wall2-3" geometry="primitive: box; width: 0.3; depth: 0.5; height: 1.7"
|
|
51
|
+
material="shader: flat; src: #wall; repeat: 1 3" position="0 0.35 0"></a-entity>
|
|
52
|
+
<a-entity id="wall2-4" geometry="primitive: box; width: 0.3; depth: 0.6; height: 1.7"
|
|
53
|
+
material="shader: flat; src: #wall; repeat: 1 3" position="0 0.35 4.35">
|
|
54
|
+
</a-entity>
|
|
55
|
+
<a-entity id="wall2-5" geometry="primitive: box; width: 0.3; depth: 0.6; height: 1.7"
|
|
56
|
+
material="shader: flat; src: #wall; repeat: 1 3" position="0 0.35 -4.35">
|
|
57
|
+
</a-entity>
|
|
58
|
+
</a-entity>
|
|
59
|
+
<a-entity id="wall3" position="0 1.5 -4.5">
|
|
60
|
+
<a-entity id="wall3-1" geometry="primitive: box; width: 7; depth: 0.3; height: 3"
|
|
61
|
+
material="shader: flat; src: #wall"></a-entity>
|
|
62
|
+
<a-entity id="column3" geometry="primitive: box; width: 0.3; depth: 0.3; height: 3"
|
|
63
|
+
material="shader: flat; src: #wall; repeat: 1 5" position="0 0 0.15"></a-entity>
|
|
64
|
+
</a-entity>
|
|
65
|
+
<a-entity id="wall4" position="0 1.5 4.5">
|
|
66
|
+
<a-entity id="wall4-1" geometry="primitive: box; width: 7.3; depth: 0.3; height: 1"
|
|
67
|
+
material="shader: flat; src: #wall; repeat: 5 1" position="0 -1 0"></a-entity>
|
|
68
|
+
<a-entity id="wall4-2" geometry="primitive: box; width: 7.3; depth: 0.3; height: 0.3"
|
|
69
|
+
material="shader: flat; src: #wall; repeat: 5 1" position="0 1.35 0"></a-entity>
|
|
70
|
+
<a-entity id="wall4-3" geometry="primitive: box; width: 0.5; depth: 0.3; height: 1.7"
|
|
71
|
+
material="shader: flat; src: #wall; repeat: 1 3" position="0 0.35 0"></a-entity>
|
|
72
|
+
<a-entity id="wall4-4" geometry="primitive: box; width: 0.3; depth: 0.3; height: 1.7"
|
|
73
|
+
material="shader: flat; src: #wall; repeat: 1 3" position="-3.2 0.35 0">
|
|
74
|
+
</a-entity>
|
|
75
|
+
<a-entity id="wall4-5" geometry="primitive: box; width: 0.6; depth: 0.3; height: 1.7"
|
|
76
|
+
material="shader: flat; src: #wall; repeat: 1 3" position="3.4 0.35 0">
|
|
77
|
+
</a-entity>
|
|
78
|
+
<a-entity id="column4" geometry="primitive: box; width: 0.3; depth: 0.3; height: 3"
|
|
79
|
+
material="shader: flat; src: #wall; repeat: 1 5" position="0 0 -0.15">
|
|
80
|
+
</a-entity>
|
|
81
|
+
</a-entity>
|
|
82
|
+
</a-entity>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
<!-- Querier Components -->
|
|
86
|
+
<!-- Slider -->
|
|
87
|
+
|
|
88
|
+
<!-- Querier -->
|
|
89
|
+
<a-entity id="portainerquerier" babia-queryjson="url:./dependencieslist_portainer.json;"></a-entity>
|
|
90
|
+
<a-entity id="cloudinaryquerier" babia-queryjson="url:./dependencieslist_cloudinary.json;"></a-entity>
|
|
91
|
+
<a-entity id="aframequerier" babia-queryjson="url:./dependencieslist_sh.json;"></a-entity>
|
|
92
|
+
<a-entity id="expressquerier" babia-queryjson="url:./dependencieslist_express.json;"></a-entity>
|
|
93
|
+
<a-entity id="karmaquerier" babia-queryjson="url:./dependencieslist_karma.json;"></a-entity>
|
|
94
|
+
<a-entity id="pm2querier" babia-queryjson="url:./dependencieslist_pm2.json;"></a-entity>
|
|
95
|
+
|
|
96
|
+
<!-- Treebuilder -->
|
|
97
|
+
<a-entity id="portainer" babia-treebuilder="field: parentsPath; split_by: /; from: portainerquerier">
|
|
98
|
+
</a-entity>
|
|
99
|
+
<a-entity id="cloudinary" babia-treebuilder="field: parentsPath; split_by: /; from: cloudinaryquerier">
|
|
100
|
+
</a-entity>
|
|
101
|
+
<a-entity id="express" babia-treebuilder="field: parentsPath; split_by: /; from: expressquerier">
|
|
102
|
+
</a-entity>
|
|
103
|
+
<a-entity id="sortinghat" babia-treebuilder="field: parentsPath; split_by: /; from: aframequerier">
|
|
104
|
+
</a-entity>
|
|
105
|
+
<a-entity id="karma" babia-treebuilder="field: parentsPath; split_by: /; from: karmaquerier"></a-entity>
|
|
106
|
+
<a-entity id="pm2" babia-treebuilder="field: parentsPath; split_by: /; from: pm2querier"></a-entity>
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
<!-- Visualizer Components -->
|
|
110
|
+
<a-entity id="boats"
|
|
111
|
+
babia-boats="from: portainer; area: commits; height: size; color: license; height_building_legend: -0.5; extra: 10; highlightQuarter: true; gradientBaseColor: true; metricsInfoId: boatsmetricsinfo;
|
|
112
|
+
legend_scale: 0.25; height_quarter_legend_box: 3; height_quarter_legend_title: 1.5; legend_lookat: [laser-controls]; zone_elevation: 0.01; maxBuildingHeight: 1.8; building_separation: 50; autoscale: true"
|
|
113
|
+
position="0 0.3 -1" scale="1 1 1" rotation="0 180 0"></a-entity>
|
|
114
|
+
|
|
115
|
+
<a-entity id="interface" babia-ui="target: boats" position="-3 1.5 0" rotation="0 90 0"
|
|
116
|
+
scale="0.1 0.1 0.1"></a-entity>
|
|
117
|
+
|
|
118
|
+
<!-- <a-entity id="slider" babia-slider="min: 0; max: 20; value: 10; size: 2"
|
|
119
|
+
position="-3 2.1 1" rotation="0 90 0" scale="1 1 1"></a-entity> -->
|
|
120
|
+
<a-entity id="bardescription" position="2.5 0.6 0.6" rotation="-30 -90 0" scale="0.6 0.6 0.6">
|
|
121
|
+
<a-plane id="rotatecity" babia-lookat="[laser-controls]" class="babiaxraycasterclass"
|
|
122
|
+
scale="0.8 0.8 0.8" position="0 1.5 0"
|
|
123
|
+
geometry="primitive: plane; width: 2; height: 0.5" color="#012752"
|
|
124
|
+
text="value: Rotate City; color: white; align: center; wrapCount: 30; width: 3.6; transparent: false; alphaTest: 6; opacity: 6">
|
|
125
|
+
</a-plane>
|
|
126
|
+
<a-box src="#floor" height="2.2" width="3.2" depth="0.1" position="0 0 0"></a-box>
|
|
127
|
+
<a-box src="#metalic" height="2" width="3" depth="0.05" position="0 0 0.05"></a-box>
|
|
128
|
+
<a-entity position="0 0.1 0.1" id="boatsmetricsinfo"></a-entity>
|
|
129
|
+
</a-entity>
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
<!-- Lights -->
|
|
133
|
+
<a-entity position="5 50 0"
|
|
134
|
+
light="type: hemisphere; color: #CEE4F0; intensity: 1; groundColor: #454545">
|
|
135
|
+
</a-entity>
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<!-- Controls and Camera -->
|
|
140
|
+
<a-entity id="cameraRig" position="0 1.6 3">
|
|
141
|
+
<a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
|
|
142
|
+
raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom" look-controls
|
|
143
|
+
wasd-controls="fly: true">
|
|
144
|
+
<a-entity></a-entity>
|
|
145
|
+
</a-entity>
|
|
146
|
+
</a-entity>
|
|
147
|
+
|
|
148
|
+
</a-scene>
|
|
149
|
+
<div class="gitlab-corner-wrapper"><a
|
|
150
|
+
href="https://gitlab.com/babiaxr/aframe-babia-components/-/blob/master/examples/"
|
|
151
|
+
class="gitlab-corner" aria-label="View source on GitLab"><svg id="logo_art" data-name="logo art"
|
|
152
|
+
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 586 559">
|
|
153
|
+
<g id="g44">
|
|
154
|
+
<path id="path46" class="cls-1"
|
|
155
|
+
d="M461.17,301.83l-18.91-58.12L404.84,128.43a6.47,6.47,0,0,0-12.27,0L355.15,243.64H230.82L193.4,128.43a6.46,6.46,0,0,0-12.26,0L143.78,243.64l-18.91,58.19a12.88,12.88,0,0,0,4.66,14.39L293,435,456.44,316.22a12.9,12.9,0,0,0,4.73-14.39" />
|
|
156
|
+
</g>
|
|
157
|
+
<g id="g48">
|
|
158
|
+
<path id="path50" class="cls-2"
|
|
159
|
+
d="M293,434.91h0l62.16-191.28H230.87L293,434.91Z" />
|
|
160
|
+
</g>
|
|
161
|
+
<g id="g56">
|
|
162
|
+
<path id="path58" class="cls-1" d="M293,434.91,230.82,243.63h-87L293,434.91Z" />
|
|
163
|
+
</g>
|
|
164
|
+
<g id="g64">
|
|
165
|
+
<path id="path66" class="cls-3"
|
|
166
|
+
d="M143.75,243.69h0l-18.91,58.12a12.88,12.88,0,0,0,4.66,14.39L293,435,143.75,243.69Z" />
|
|
167
|
+
</g>
|
|
168
|
+
<g id="g72">
|
|
169
|
+
<path id="path74" class="cls-2"
|
|
170
|
+
d="M143.78,243.69h87.11L193.4,128.49a6.47,6.47,0,0,0-12.27,0l-37.35,115.2Z" />
|
|
171
|
+
</g>
|
|
172
|
+
<g id="g76">
|
|
173
|
+
<path id="path78" class="cls-1"
|
|
174
|
+
d="M293,434.91l62.16-191.28H442.3L293,434.91Z" />
|
|
175
|
+
</g>
|
|
176
|
+
<g id="g80">
|
|
177
|
+
<path id="path82" class="cls-3"
|
|
178
|
+
d="M442.24,243.69h0l18.91,58.12a12.85,12.85,0,0,1-4.66,14.39L293,434.91l149.2-191.22Z" />
|
|
179
|
+
</g>
|
|
180
|
+
<g id="g84">
|
|
181
|
+
<path id="path86" class="cls-2"
|
|
182
|
+
d="M442.28,243.69h-87.1l37.42-115.2a6.46,6.46,0,0,1,12.26,0l37.42,115.2Z" />
|
|
183
|
+
</g>
|
|
184
|
+
</svg></a></div>
|
|
185
|
+
|
|
186
|
+
<script>
|
|
187
|
+
document.getElementById("rotatecity").addEventListener('click', function (event) {
|
|
188
|
+
let ewl = document.getElementById("boats")
|
|
189
|
+
let currentRotation = ewl.getAttribute("rotation") || { x: 0, y: 0, z: 0 }
|
|
190
|
+
let currentPosition = ewl.getAttribute("position")
|
|
191
|
+
let newZrotation = currentRotation.z + 90
|
|
192
|
+
ewl.setAttribute("rotation", { x: currentRotation.x, y: currentRotation.y, z: newZrotation })
|
|
193
|
+
if (newZrotation === 180) {
|
|
194
|
+
ewl.setAttribute("position", { x: currentPosition.x + 1.5, y: currentPosition.y + 1.3, z: currentPosition.z })
|
|
195
|
+
} else if (newZrotation === 360) {
|
|
196
|
+
ewl.setAttribute("rotation", { x: currentRotation.x, y: currentRotation.y, z: 0 })
|
|
197
|
+
ewl.setAttribute("position", { x: currentPosition.x - 1.5, y: currentPosition.y - 1.3, z: currentPosition.z })
|
|
198
|
+
} else if (newZrotation === 90) {
|
|
199
|
+
ewl.setAttribute("position", { x: currentPosition.x - 1.5, y: currentPosition.y + 1.2, z: currentPosition.z })
|
|
200
|
+
} else if (newZrotation === 270) {
|
|
201
|
+
ewl.setAttribute("position", { x: currentPosition.x + 1.5, y: currentPosition.y - 1.2, z: currentPosition.z })
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
}, false);
|
|
205
|
+
|
|
206
|
+
</script>
|
|
207
|
+
</body>
|
|
208
|
+
|
|
209
|
+
</html>
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<title>Babia Template - Visualize your Data </title>
|
|
7
|
+
<meta name="description" content="Museum build aframe and babia">
|
|
8
|
+
</meta>
|
|
9
|
+
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
|
|
10
|
+
<script
|
|
11
|
+
src="https://rawgit.com/fernandojsg/aframe-teleport-controls/master/dist/aframe-teleport-controls.min.js"></script>
|
|
12
|
+
<script src="https://unpkg.com/aframe-tooltip-component/dist/aframe-tooltip-component.min.js"></script>
|
|
13
|
+
<script src="https://supereggbert.github.io/aframe-htmlembed-component/dist/build.js"></script>
|
|
14
|
+
<script src="../../../dist/aframe-babia-components.js"></script>
|
|
15
|
+
<link rel="stylesheet" href="../../../assets/gitlab-corner.css">
|
|
16
|
+
</head>
|
|
17
|
+
|
|
18
|
+
<body>
|
|
19
|
+
<a-scene id="scene">
|
|
20
|
+
|
|
21
|
+
<!-- Assets -->
|
|
22
|
+
<a-assets>
|
|
23
|
+
<img id="sky" src="../../assets/textures/360-panorama.jpg">
|
|
24
|
+
<img id="floor" src="../../assets/textures/floor-texture.jpg">
|
|
25
|
+
<img id="metalic" src="../../assets/textures/metalic-texture.jpg">
|
|
26
|
+
<img id="wall" src="../../assets/textures/white-wall-texture.jpg">
|
|
27
|
+
<a-asset-item id="door-obj" src="../../assets/door/door.obj"></a-asset-item>
|
|
28
|
+
<a-asset-item id="door-mtl" src="../../assets/door/door.mtl"></a-asset-item>
|
|
29
|
+
</a-assets>
|
|
30
|
+
|
|
31
|
+
<!-- Enviroment -->
|
|
32
|
+
<a-sky src="#sky"></a-sky>
|
|
33
|
+
|
|
34
|
+
<!-- Room -->
|
|
35
|
+
<a-entity id="Room">
|
|
36
|
+
<a-entity id="floorRoom" material="shader: flat; src: #floor"
|
|
37
|
+
geometry="primitive: box; width: 7; depth: 9; height: 0.1"></a-entity>
|
|
38
|
+
<a-entity id="ceiling" geometry="primitive: box; width: 7; depth: 9; height: 0.1" position="0 3 0"
|
|
39
|
+
material="shader: flat; src: #wall"></a-entity>
|
|
40
|
+
<a-entity id="door" obj-model="obj: #door-obj; mtl: #door-mtl" position="3.4 1.2 -2.7" rotation="-90 -90 0"
|
|
41
|
+
scale="0.013 0.013 0.011"></a-entity>
|
|
42
|
+
<a-entity id="wall1" position="3.65 1.5 0">
|
|
43
|
+
<a-entity id="wall1-1" geometry="primitive: box; width: 0.5; depth: 8.7; height: 3"
|
|
44
|
+
material="shader: flat; src: #wall"></a-entity>
|
|
45
|
+
</a-entity>
|
|
46
|
+
<a-entity id="wall2" position="-3.5 1.5 0">
|
|
47
|
+
<a-entity id="wall2-1" geometry="primitive: box; width: 0.3; depth: 8.7; height: 1"
|
|
48
|
+
material="shader: flat; src: #wall; repeat: 5 1" position="0 -1 0"></a-entity>
|
|
49
|
+
<a-entity id="wall2-2" geometry="primitive: box; width: 0.3; depth: 8.7; height: 0.3"
|
|
50
|
+
material="shader: flat; src: #wall; repeat: 5 1" position="0 1.35 0"></a-entity>
|
|
51
|
+
<a-entity id="wall2-3" geometry="primitive: box; width: 0.3; depth: 0.5; height: 1.7"
|
|
52
|
+
material="shader: flat; src: #wall; repeat: 1 3" position="0 0.35 0"></a-entity>
|
|
53
|
+
<a-entity id="wall2-4" geometry="primitive: box; width: 0.3; depth: 0.6; height: 1.7"
|
|
54
|
+
material="shader: flat; src: #wall; repeat: 1 3" position="0 0.35 4.35">
|
|
55
|
+
</a-entity>
|
|
56
|
+
<a-entity id="wall2-5" geometry="primitive: box; width: 0.3; depth: 0.6; height: 1.7"
|
|
57
|
+
material="shader: flat; src: #wall; repeat: 1 3" position="0 0.35 -4.35">
|
|
58
|
+
</a-entity>
|
|
59
|
+
</a-entity>
|
|
60
|
+
<a-entity id="wall3" position="0 1.5 -4.5">
|
|
61
|
+
<a-entity id="wall3-1" geometry="primitive: box; width: 7; depth: 0.3; height: 3"
|
|
62
|
+
material="shader: flat; src: #wall"></a-entity>
|
|
63
|
+
<a-entity id="column3" geometry="primitive: box; width: 0.3; depth: 0.3; height: 3"
|
|
64
|
+
material="shader: flat; src: #wall; repeat: 1 5" position="0 0 0.15"></a-entity>
|
|
65
|
+
</a-entity>
|
|
66
|
+
<a-entity id="wall4" position="0 1.5 4.5">
|
|
67
|
+
<a-entity id="wall4-1" geometry="primitive: box; width: 7.3; depth: 0.3; height: 1"
|
|
68
|
+
material="shader: flat; src: #wall; repeat: 5 1" position="0 -1 0"></a-entity>
|
|
69
|
+
<a-entity id="wall4-2" geometry="primitive: box; width: 7.3; depth: 0.3; height: 0.3"
|
|
70
|
+
material="shader: flat; src: #wall; repeat: 5 1" position="0 1.35 0"></a-entity>
|
|
71
|
+
<a-entity id="wall4-3" geometry="primitive: box; width: 0.5; depth: 0.3; height: 1.7"
|
|
72
|
+
material="shader: flat; src: #wall; repeat: 1 3" position="0 0.35 0"></a-entity>
|
|
73
|
+
<a-entity id="wall4-4" geometry="primitive: box; width: 0.3; depth: 0.3; height: 1.7"
|
|
74
|
+
material="shader: flat; src: #wall; repeat: 1 3" position="-3.2 0.35 0">
|
|
75
|
+
</a-entity>
|
|
76
|
+
<a-entity id="wall4-5" geometry="primitive: box; width: 0.6; depth: 0.3; height: 1.7"
|
|
77
|
+
material="shader: flat; src: #wall; repeat: 1 3" position="3.4 0.35 0">
|
|
78
|
+
</a-entity>
|
|
79
|
+
<a-entity id="column4" geometry="primitive: box; width: 0.3; depth: 0.3; height: 3"
|
|
80
|
+
material="shader: flat; src: #wall; repeat: 1 5" position="0 0 -0.15">
|
|
81
|
+
</a-entity>
|
|
82
|
+
</a-entity>
|
|
83
|
+
</a-entity>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<!-- Querier Components -->
|
|
87
|
+
<!-- Slider -->
|
|
88
|
+
|
|
89
|
+
<!-- Querier -->
|
|
90
|
+
<a-entity id="portainerquerier" babia-queryjson="url:./dependencieslist_portainer.json;"></a-entity>
|
|
91
|
+
<a-entity id="cloudinaryquerier" babia-queryjson="url:./dependencieslist_cloudinary.json;"></a-entity>
|
|
92
|
+
<a-entity id="aframequerier" babia-queryjson="url:./dependencieslist_sh.json;"></a-entity>
|
|
93
|
+
<a-entity id="expressquerier" babia-queryjson="url:./dependencieslist_express.json;"></a-entity>
|
|
94
|
+
<a-entity id="karmaquerier" babia-queryjson="url:./dependencieslist_karma.json;"></a-entity>
|
|
95
|
+
<a-entity id="pm2querier" babia-queryjson="url:./dependencieslist_pm2.json;"></a-entity>
|
|
96
|
+
|
|
97
|
+
<!-- Treebuilder -->
|
|
98
|
+
<a-entity id="portainer" babia-treebuilder="field: parentsPath; split_by: /; from: portainerquerier"></a-entity>
|
|
99
|
+
<a-entity id="cloudinary" babia-treebuilder="field: parentsPath; split_by: /; from: cloudinaryquerier">
|
|
100
|
+
</a-entity>
|
|
101
|
+
<a-entity id="express" babia-treebuilder="field: parentsPath; split_by: /; from: expressquerier"></a-entity>
|
|
102
|
+
<a-entity id="sortinghat" babia-treebuilder="field: parentsPath; split_by: /; from: aframequerier"></a-entity>
|
|
103
|
+
<a-entity id="karma" babia-treebuilder="field: parentsPath; split_by: /; from: karmaquerier"></a-entity>
|
|
104
|
+
<a-entity id="pm2" babia-treebuilder="field: parentsPath; split_by: /; from: pm2querier"></a-entity>
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
<!-- Visualizer Components -->
|
|
109
|
+
<a-entity id="boats"
|
|
110
|
+
babia-boats="from: portainer; area: commits_lastyear; height: size; color: license; height_building_legend: -0.5; extra: 10; highlightQuarter: true; gradientBaseColor: false; metricsInfoId: boatsmetricsinfo;
|
|
111
|
+
legend_scale: 0.25; height_quarter_legend_box: 3; height_quarter_legend_title: 1.5; legend_lookat: [laser-controls]; zone_elevation: 0.01; maxBuildingHeight: 1.8; building_separation: 50; autoscale: true"
|
|
112
|
+
position="0 0.3 -1" scale="1 1 1" rotation="0 180 0"></a-entity>
|
|
113
|
+
|
|
114
|
+
<a-entity id="interface" babia-ui="target: boats; maxPerRow: 20" position="-3 1.5 0" rotation="0 90 0" scale="0.1 0.1 0.1">
|
|
115
|
+
</a-entity>
|
|
116
|
+
|
|
117
|
+
<!-- <a-entity id="slider" babia-slider="min: 0; max: 20; value: 10; size: 2"
|
|
118
|
+
position="-3 2.1 1" rotation="0 90 0" scale="1 1 1"></a-entity> -->
|
|
119
|
+
|
|
120
|
+
<a-entity id="bardescription" position="2.5 0.6 0.6" rotation="-30 -90 0" scale="0.6 0.6 0.6">
|
|
121
|
+
<!-- Close tooltips -->
|
|
122
|
+
<a-plane id="rotatecity" babia-lookat="[laser-controls]" class="babiaxraycasterclass" scale="0.8 0.8 0.8"
|
|
123
|
+
position="0 1.5 0" geometry="primitive: plane; width: 2; height: 0.5" color="#012752"
|
|
124
|
+
text="value: Rotate City; color: white; align: center; wrapCount: 30; width: 3.6; transparent: false; alphaTest: 6; opacity: 6">
|
|
125
|
+
</a-plane>
|
|
126
|
+
<a-box src="#floor" height="2.2" width="3.2" depth="0.1" position="0 0 0"></a-box>
|
|
127
|
+
<a-box src="#metalic" height="2" width="3" depth="0.05" position="0 0 0.05"></a-box>
|
|
128
|
+
<a-entity position="0 0.1 0.1" id="boatsmetricsinfo"></a-entity>
|
|
129
|
+
</a-entity>
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
<!-- Lights -->
|
|
134
|
+
<a-entity position="5 50 0" light="type: hemisphere; color: #CEE4F0; intensity: 1; groundColor: #454545">
|
|
135
|
+
</a-entity>
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<!-- Controls and Camera -->
|
|
140
|
+
<a-entity id="cameraRig" position="0 1.6 3">
|
|
141
|
+
<a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
|
|
142
|
+
raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom" look-controls
|
|
143
|
+
wasd-controls="fly: true">
|
|
144
|
+
<a-entity></a-entity>
|
|
145
|
+
</a-entity>
|
|
146
|
+
</a-entity>
|
|
147
|
+
|
|
148
|
+
</a-scene>
|
|
149
|
+
<div class="gitlab-corner-wrapper"><a
|
|
150
|
+
href="https://gitlab.com/babiaxr/aframe-babia-components/-/blob/master/examples/" class="gitlab-corner"
|
|
151
|
+
aria-label="View source on GitLab"><svg id="logo_art" data-name="logo art"
|
|
152
|
+
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 586 559">
|
|
153
|
+
<g id="g44">
|
|
154
|
+
<path id="path46" class="cls-1"
|
|
155
|
+
d="M461.17,301.83l-18.91-58.12L404.84,128.43a6.47,6.47,0,0,0-12.27,0L355.15,243.64H230.82L193.4,128.43a6.46,6.46,0,0,0-12.26,0L143.78,243.64l-18.91,58.19a12.88,12.88,0,0,0,4.66,14.39L293,435,456.44,316.22a12.9,12.9,0,0,0,4.73-14.39" />
|
|
156
|
+
</g>
|
|
157
|
+
<g id="g48">
|
|
158
|
+
<path id="path50" class="cls-2" d="M293,434.91h0l62.16-191.28H230.87L293,434.91Z" />
|
|
159
|
+
</g>
|
|
160
|
+
<g id="g56">
|
|
161
|
+
<path id="path58" class="cls-1" d="M293,434.91,230.82,243.63h-87L293,434.91Z" />
|
|
162
|
+
</g>
|
|
163
|
+
<g id="g64">
|
|
164
|
+
<path id="path66" class="cls-3"
|
|
165
|
+
d="M143.75,243.69h0l-18.91,58.12a12.88,12.88,0,0,0,4.66,14.39L293,435,143.75,243.69Z" />
|
|
166
|
+
</g>
|
|
167
|
+
<g id="g72">
|
|
168
|
+
<path id="path74" class="cls-2"
|
|
169
|
+
d="M143.78,243.69h87.11L193.4,128.49a6.47,6.47,0,0,0-12.27,0l-37.35,115.2Z" />
|
|
170
|
+
</g>
|
|
171
|
+
<g id="g76">
|
|
172
|
+
<path id="path78" class="cls-1" d="M293,434.91l62.16-191.28H442.3L293,434.91Z" />
|
|
173
|
+
</g>
|
|
174
|
+
<g id="g80">
|
|
175
|
+
<path id="path82" class="cls-3"
|
|
176
|
+
d="M442.24,243.69h0l18.91,58.12a12.85,12.85,0,0,1-4.66,14.39L293,434.91l149.2-191.22Z" />
|
|
177
|
+
</g>
|
|
178
|
+
<g id="g84">
|
|
179
|
+
<path id="path86" class="cls-2"
|
|
180
|
+
d="M442.28,243.69h-87.1l37.42-115.2a6.46,6.46,0,0,1,12.26,0l37.42,115.2Z" />
|
|
181
|
+
</g>
|
|
182
|
+
</svg></a></div>
|
|
183
|
+
|
|
184
|
+
<script>
|
|
185
|
+
document.getElementById("rotatecity").addEventListener('click', function (event) {
|
|
186
|
+
let ewl = document.getElementById("boats")
|
|
187
|
+
let currentRotation = ewl.getAttribute("rotation") || { x: 0, y: 0, z: 0 }
|
|
188
|
+
let currentPosition = ewl.getAttribute("position")
|
|
189
|
+
let newZrotation = currentRotation.z + 90
|
|
190
|
+
ewl.setAttribute("rotation", { x: currentRotation.x, y: currentRotation.y, z: newZrotation })
|
|
191
|
+
if (newZrotation === 180) {
|
|
192
|
+
ewl.setAttribute("position", { x: currentPosition.x + 1.5, y: currentPosition.y + 1.3, z: currentPosition.z })
|
|
193
|
+
} else if (newZrotation === 360) {
|
|
194
|
+
ewl.setAttribute("rotation", { x: currentRotation.x, y: currentRotation.y, z: 0 })
|
|
195
|
+
ewl.setAttribute("position", { x: currentPosition.x - 1.5, y: currentPosition.y - 1.3, z: currentPosition.z })
|
|
196
|
+
} else if (newZrotation === 90) {
|
|
197
|
+
ewl.setAttribute("position", { x: currentPosition.x - 1.5, y: currentPosition.y + 1.2, z: currentPosition.z })
|
|
198
|
+
} else if (newZrotation === 270) {
|
|
199
|
+
ewl.setAttribute("position", { x: currentPosition.x + 1.5, y: currentPosition.y - 1.2, z: currentPosition.z })
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
}, false);
|
|
203
|
+
|
|
204
|
+
</script>
|
|
205
|
+
</body>
|
|
206
|
+
|
|
207
|
+
</html>
|