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