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,243 @@
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" stats>
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" rotation="-90 -90 0"
40
+ 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
+ <a-entity id="filestashquerier" babia-queryjson="url:./dependencieslist_filestash.json;"></a-entity>
96
+ <a-entity id="ghquerier" babia-queryjson="url:./dependencieslist_ghdesktop.json;"></a-entity>
97
+
98
+
99
+ <!-- Treebuilder -->
100
+ <a-entity id="ghdesktop" babia-treebuilder="field: parentsPath; split_by: /; from: ghquerier">
101
+ </a-entity>
102
+ <a-entity id="filestash" babia-treebuilder="field: parentsPath; split_by: /; from: filestashquerier">
103
+ </a-entity>
104
+ <a-entity id="portainer" babia-treebuilder="field: parentsPath; split_by: /; from: portainerquerier">
105
+ </a-entity>
106
+ <!-- <a-entity id="cloudinary" babia-treebuilder="field: parentsPath; split_by: /; from: cloudinaryquerier">
107
+ </a-entity>
108
+ <a-entity id="express" babia-treebuilder="field: parentsPath; split_by: /; from: expressquerier">
109
+ </a-entity> -->
110
+ <a-entity id="sortinghat" babia-treebuilder="field: parentsPath; split_by: /; from: aframequerier">
111
+ </a-entity>
112
+ <!-- <a-entity id="karma" babia-treebuilder="field: parentsPath; split_by: /; from: karmaquerier"></a-entity>
113
+ <a-entity id="pm2" babia-treebuilder="field: parentsPath; split_by: /; from: pm2querier"></a-entity> -->
114
+
115
+
116
+
117
+
118
+ <!-- Visualizer Components -->
119
+ <a-entity id="boats"
120
+ babia-boats="from: portainer; area: commits_lastyear; height: commits_lastyear; color: timesAppearsSameId; height_building_legend: -0.5; extra: 4; treeQuartersLevelHeight: 0.1;
121
+ highlightQuarter: false; treeLayout: true; gradientBaseColor: true; metricsInfoId: boatsmetricsinfo; treeFixQuarterHeight: true; treeHideOneSonQuarters: true;
122
+ 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: 1; autoscale: true; baseAlpha: 0.7; wireframeByRepeatedField: name"
123
+ position="0 0.3 -1" scale="1 1 1" rotation="0 180 0"></a-entity>
124
+
125
+ <a-entity id="interface" babia-ui="target: boats; hideRows: depth, width; hideFields: noMetric, level, timesAppearsSameId, nvuln, nvuln_critic, nvuln_high, nvuln_mod, nvuln_low, nvuln_info" position="-3 1.5 0" rotation="0 90 0" scale="0.1 0.1 0.1">
126
+ </a-entity>
127
+
128
+ <!-- <a-entity id="slider" babia-slider="min: 0; max: 20; value: 10; size: 2"
129
+ position="-3 2.1 1" rotation="0 90 0" scale="1 1 1"></a-entity> -->
130
+ <a-entity id="bardescription" position="2.5 0.6 0.6" rotation="-30 -90 0" scale="0.6 0.6 0.6">
131
+ <!-- Close tooltips -->
132
+ <a-plane id="rotatecity" babia-lookat="[laser-controls]" class="babiaxraycasterclass" scale="0.8 0.8 0.8"
133
+ position="0 1.5 0" geometry="primitive: plane; width: 2; height: 0.5" color="#012752"
134
+ text="value: Rotate City; color: white; align: center; wrapCount: 30; width: 3.6; transparent: false; alphaTest: 6; opacity: 6">
135
+ </a-plane>
136
+ <a-box src="#floor" height="2.2" width="3.2" depth="0.1" position="0 0 0"></a-box>
137
+ <a-box src="#metalic" height="2" width="3" depth="0.05" position="0 0 0.05"></a-box>
138
+ <a-entity position="0 0.1 0.1" id="boatsmetricsinfo"></a-entity>
139
+ </a-entity>
140
+
141
+
142
+ <!-- Lights -->
143
+ <a-entity position="5 50 0" light="type: hemisphere; color: #CEE4F0; intensity: 1; groundColor: #454545">
144
+ </a-entity>
145
+
146
+
147
+
148
+ <!-- Controls and Camera -->
149
+ <a-entity id="cameraRig" position="0 1.6 3">
150
+ <a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
151
+ raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom" look-controls
152
+ wasd-controls="fly: true; acceleration: 10">
153
+ <a-entity></a-entity>
154
+ </a-entity>
155
+ </a-entity>
156
+
157
+ </a-scene>
158
+ <div class="gitlab-corner-wrapper"><a
159
+ href="https://gitlab.com/babiaxr/aframe-babia-components/-/blob/master/examples/" class="gitlab-corner"
160
+ aria-label="View source on GitLab"><svg id="logo_art" data-name="logo art"
161
+ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 586 559">
162
+ <g id="g44">
163
+ <path id="path46" class="cls-1"
164
+ 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" />
165
+ </g>
166
+ <g id="g48">
167
+ <path id="path50" class="cls-2" d="M293,434.91h0l62.16-191.28H230.87L293,434.91Z" />
168
+ </g>
169
+ <g id="g56">
170
+ <path id="path58" class="cls-1" d="M293,434.91,230.82,243.63h-87L293,434.91Z" />
171
+ </g>
172
+ <g id="g64">
173
+ <path id="path66" class="cls-3"
174
+ d="M143.75,243.69h0l-18.91,58.12a12.88,12.88,0,0,0,4.66,14.39L293,435,143.75,243.69Z" />
175
+ </g>
176
+ <g id="g72">
177
+ <path id="path74" class="cls-2"
178
+ d="M143.78,243.69h87.11L193.4,128.49a6.47,6.47,0,0,0-12.27,0l-37.35,115.2Z" />
179
+ </g>
180
+ <g id="g76">
181
+ <path id="path78" class="cls-1" d="M293,434.91l62.16-191.28H442.3L293,434.91Z" />
182
+ </g>
183
+ <g id="g80">
184
+ <path id="path82" class="cls-3"
185
+ d="M442.24,243.69h0l18.91,58.12a12.85,12.85,0,0,1-4.66,14.39L293,434.91l149.2-191.22Z" />
186
+ </g>
187
+ <g id="g84">
188
+ <path id="path86" class="cls-2"
189
+ d="M442.28,243.69h-87.1l37.42-115.2a6.46,6.46,0,0,1,12.26,0l37.42,115.2Z" />
190
+ </g>
191
+ </svg></a></div>
192
+
193
+ <script>
194
+ document.getElementById("rotatecity").addEventListener('click', function (event) {
195
+ let ewl = document.getElementById("boats")
196
+ let currentRotation = ewl.getAttribute("rotation") || { x: 0, y: 0, z: 0 }
197
+ let currentPosition = ewl.getAttribute("position")
198
+ let newZrotation = currentRotation.z + 90
199
+ ewl.setAttribute("rotation", { x: currentRotation.x, y: currentRotation.y, z: newZrotation })
200
+ if (newZrotation === 180) {
201
+ ewl.setAttribute("position", { x: currentPosition.x + 1.5, y: currentPosition.y + 1.3, z: currentPosition.z })
202
+ } else if (newZrotation === 360) {
203
+ ewl.setAttribute("rotation", { x: currentRotation.x, y: currentRotation.y, z: 0 })
204
+ ewl.setAttribute("position", { x: currentPosition.x - 1.5, y: currentPosition.y - 1.3, z: currentPosition.z })
205
+ } else if (newZrotation === 90) {
206
+ ewl.setAttribute("position", { x: currentPosition.x - 1.5, y: currentPosition.y + 1.2, z: currentPosition.z })
207
+ } else if (newZrotation === 270) {
208
+ ewl.setAttribute("position", { x: currentPosition.x + 1.5, y: currentPosition.y - 1.2, z: currentPosition.z })
209
+ }
210
+
211
+ }, false);
212
+
213
+ </script>
214
+
215
+ <script>
216
+ // Get Query string values
217
+ function getValueFromQueryString(string) {
218
+ string = string.replace(/[\[\]]/g, '\\$&');
219
+ var regex = new RegExp('[?&]' + string + '(=([^&#]*)|&|#|$)'),
220
+ results = regex.exec(window.location.href);
221
+ if (!results) return null;
222
+ if (!results[2]) return '';
223
+ return decodeURIComponent(results[2].replace(/\+/g, ' '));
224
+ }
225
+
226
+ /* Set username and password for ElasticSearch queriers*/
227
+ let buildingsep = getValueFromQueryString('buildingsep');
228
+ let quarterheight = getValueFromQueryString('quarterheight');
229
+ let extra = getValueFromQueryString('extra');
230
+ if (buildingsep) {
231
+ document.getElementById("boats").setAttribute('babia-boats', 'building_separation', parseFloat(buildingsep))
232
+ }
233
+ if (quarterheight) {
234
+ document.getElementById("boats").setAttribute('babia-boats', 'treeQuartersLevelHeight', parseFloat(quarterheight))
235
+ }
236
+ if (extra) {
237
+ document.getElementById("boats").setAttribute('babia-boats', 'extra', parseFloat(extra))
238
+ }
239
+ </script>
240
+
241
+ </body>
242
+
243
+ </html>
@@ -6,7 +6,7 @@
6
6
  <title>A-Frame Babia Network Component</title>
7
7
  <meta name="description" content="Example for BabiaXR- component.">
8
8
  </meta>
9
- <script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
9
+ <script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
10
10
  <script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v6.1.0/dist/aframe-extras.min.js"></script>
11
11
  <script src="https://unpkg.com/aframe-environment-component@1.0.0/dist/aframe-environment-component.min.js"></script>
12
12
  <script src="../../../dist/aframe-babia-components.js"></script>
@@ -41,10 +41,18 @@
41
41
  linkWidth: 0.5; nodeLegend: true; linkLegend: true; linkLabel: linkId' rotation="180 -50 0">
42
42
  </a-entity>
43
43
 
44
- <a-entity movement-controls="fly: true" position="100 0 -80">
44
+ <!-- <a-entity movement-controls="fly: true" position="100 0 -80">
45
45
  <a-entity camera position="0 0 0" look-controls></a-entity>
46
46
  <a-entity cursor="rayOrigin:mouse" raycaster></a-entity>
47
47
  <a-entity laser-controls="hand: right" raycaster></a-entity>
48
+ </a-entity> -->
49
+
50
+ <!-- Controls and Camera -->
51
+ <a-entity id="cameraRig" position="100 0 -80">
52
+ <a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
53
+ raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom"
54
+ look-controls wasd-controls="fly: true">
55
+ </a-entity>
48
56
  </a-entity>
49
57
  </a-scene>
50
58
 
@@ -5,10 +5,9 @@
5
5
  <meta charset="utf-8">
6
6
  <title>A-Frame Babia components</title>
7
7
  <meta name="description" content="Babia Pie example" />
8
- <script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
8
+ <script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
9
9
  <script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v6.1.0/dist/aframe-extras.min.js"></script>
10
- <script src="https://unpkg.com/aframe-environment-component@1.2.0/dist/aframe-environment-component.min.js"></script>
11
- <script src="https://unpkg.com/aframe-text-geometry-component@0.5.1/dist/aframe-text-geometry-component.min.js"></script>
10
+ <script src="https://unpkg.com/aframe-environment-component@1.3.1/dist/aframe-environment-component.min.js"></script>
12
11
  <script src="../../../dist/aframe-babia-components.js"></script>
13
12
  <link rel="stylesheet" href="../../assets/gitlab-corner.css">
14
13
  </head>
@@ -23,7 +22,7 @@
23
22
  </a-assets>
24
23
 
25
24
  <a-entity babia-pie='size: points; legend: true; palette: blues; title: babia-pie; titleColor: #FFFFFF;
26
- titleFont: #optimerBoldFont; titlePosition: -1.5 0.5 1.5; animation: true;
25
+ titleFont: #optimerBoldFont; titlePosition: 4 0.5 1.5; animation: true;
27
26
  data: [{"key":"kbn_network","points":10},{"key":"Maria","points":5},{"key":"Dave","points":9},{"key":"Jhon","points":12},{"key":"Sara","points":16},{"key":"Lemar","points":2},{"key":"Dawn","points":1},{"key":"Jesus","points":8},{"key":"Bitergia","points":3},{"key":"URJC","points":6},{"key":"Alice","points":22},{"key":"Pete","points":2},{"key":"Seth","points":6},{"key":"Martin","points":9}]'
28
27
  position="-3 5 15" rotation="90 0 0"></a-entity>
29
28
 
@@ -28,7 +28,7 @@
28
28
  extra: 1.5; base_thick: 1.2; split: pivot; fmaxarea: num_funs; farea: num_funs; fheight: loc;
29
29
  from: treetest'></a-entity>
30
30
 
31
- <a-entity position="20 0 -3" scale="0.2 0.001 0.2" babia-boats="zone_elevation: 3; from: treetest; area: num_funs; height: loc"></a-entity>
31
+ <a-entity position="20 0 -3" scale="0.2 0.001 0.2" babia-boats="zone_elevation: 0.01; from: treetest; area: num_funs; height: loc"></a-entity>
32
32
 
33
33
 
34
34
  <a-entity movement-controls="fly: true" position="0 1.2 12">
@@ -47,7 +47,7 @@
47
47
  \n The area of the base of each building represents the number of functions that the file has, if the file does not have any function, it will have an area value of 1;
48
48
  "></a-entity>
49
49
 
50
- <a-entity position="5 0 3" scale="0.03 0.001 0.03" babia-boats="zone_elevation: 10; from: argoumlcity; area: num_funs; height: loc"></a-entity>
50
+ <a-entity position="5 0 3" scale="0.03 0.001 0.03" babia-boats="zone_elevation: 0.01; from: argoumlcity; area: num_funs; height: loc"></a-entity>
51
51
 
52
52
  <a-entity movement-controls="fly: true" position="0 1.2 12">
53
53
  <a-entity camera position="0 3 4" look-controls></a-entity>
@@ -68,7 +68,7 @@
68
68
 
69
69
  </a-entity>
70
70
 
71
- <a-entity position="3.6 -5 -2.6" scale="0.013 0.006 0.013" babia-boats="zone_elevation: 1; from: argoumlcity; area: num_funs; height: loc_per_function; color: tokens_per_function; height_quarter_legend_box: 5; height_quarter_legend_title: 1"></a-entity>
71
+ <a-entity position="3.6 -5 -2.6" scale="0.013 0.006 0.013" babia-boats="zone_elevation: 0.01; from: argoumlcity; area: num_funs; height: loc_per_function; color: tokens_per_function; height_quarter_legend_box: 5; height_quarter_legend_title: 1"></a-entity>
72
72
 
73
73
  <a-entity id="bardescription" position="12 -4.5 1.5" rotation="-30 0 0">
74
74
  <a-box src="#floor" height="2" width="2" depth="0.1" position="0 0 0"></a-box>
@@ -80,7 +80,7 @@
80
80
  </a-entity>
81
81
  </a-entity>
82
82
 
83
- <a-entity position="-5.5 -5 12.5" rotation="0 90 0" scale="0.013 0.001 0.013" babia-boats="zone_elevation: 1; from: argoumlcity; area: num_funs; height: tokens_per_function; color: ccn; height_quarter_legend_box: 5; height_quarter_legend_title: 1"></a-entity>
83
+ <a-entity position="-5.5 -5 12.5" rotation="0 90 0" scale="0.013 0.001 0.013" babia-boats="zone_elevation: 0.01; from: argoumlcity; area: num_funs; height: tokens_per_function; color: ccn; height_quarter_legend_box: 5; height_quarter_legend_title: 1"></a-entity>
84
84
 
85
85
  <a-entity id="bardescription" position="-1 -4.5 4" rotation="-30 90 0">
86
86
  <a-box src="#floor" height="2" width="2" depth="0.1" position="0 0 0"></a-box>
@@ -92,7 +92,7 @@
92
92
  </a-entity>
93
93
  </a-entity>
94
94
 
95
- <a-entity position="20 -5 5.5" rotation="0 270 0" scale="0.013 0.01 0.013" babia-boats="zone_elevation: 1; from: argoumlcity; area: num_funs; height: ccn_per_function; color: loc_per_function; height_quarter_legend_box: 5; height_quarter_legend_title: 1"></a-entity>
95
+ <a-entity position="20 -5 5.5" rotation="0 270 0" scale="0.013 0.01 0.013" babia-boats="zone_elevation: 0.01; from: argoumlcity; area: num_funs; height: ccn_per_function; color: loc_per_function; height_quarter_legend_box: 5; height_quarter_legend_title: 1"></a-entity>
96
96
 
97
97
  <a-entity id="bardescription" position="15 -4.5 14.2" rotation="-30 270 0">
98
98
  <a-box src="#floor" height="2" width="2" depth="0.1" position="0 0 0"></a-box>
@@ -60,7 +60,7 @@
60
60
 
61
61
  </a-entity>
62
62
 
63
- <a-entity position="9.5 -5 1.5" scale="0.006 0.001 0.006" babia-boats="zone_elevation: 10; from: argoumlcity; area: num_funs; height: loc"></a-entity>
63
+ <a-entity position="9.5 -5 1.5" scale="0.006 0.001 0.006" babia-boats="zone_elevation: 0.01; from: argoumlcity; area: num_funs; height: loc"></a-entity>
64
64
 
65
65
  <a-entity id="bardescription" position="12 -4.5 1.5" rotation="-30 0 0">
66
66
  <a-box src="#floor" height="2" width="2" depth="0.1" position="0 0 0"></a-box>
@@ -68,7 +68,7 @@
68
68
 
69
69
  </a-entity>
70
70
 
71
- <a-entity position="3.6 -5 -2.6" scale="0.0023 3 0.0023" babia-boats="zone_elevation: 0.003; from: argoumlcity; area: tokens; height: functions_per_token; color: loc_per_token; min_building_height: 0.0001; height_quarter_legend_box: 5; height_quarter_legend_title: 1"></a-entity>
71
+ <a-entity position="3.6 -5 -2.6" scale="0.0023 3 0.0023" babia-boats="zone_elevation: 0.01; from: argoumlcity; area: tokens; height: functions_per_token; color: loc_per_token; min_building_height: 0.0001; height_quarter_legend_box: 5; height_quarter_legend_title: 1"></a-entity>
72
72
 
73
73
  <a-entity id="bardescription" position="12 -4.5 1.5" rotation="-30 0 0">
74
74
  <a-box src="#floor" height="2" width="2" depth="0.1" position="0 0 0"></a-box>
@@ -99,7 +99,7 @@
99
99
  </a-entity>
100
100
 
101
101
  <a-entity position="2.2 -5 3.8" scale="0.03 0.01 0.03" id="city"
102
- babia-boats="height_building_legend: -0.5; legend_scale: 0.25; extra: 1; zone_elevation: 1; from: jetumlcity; area: num_funs; height: loc_per_function; color: ccn; height_quarter_legend_box: 1; height_quarter_legend_title: -3">
102
+ babia-boats="height_building_legend: -0.5; legend_scale: 0.25; extra: 1; zone_elevation: 0.01; from: jetumlcity; area: num_funs; height: loc_per_function; color: ccn; height_quarter_legend_box: 1; height_quarter_legend_title: -3">
103
103
  </a-entity>
104
104
 
105
105
  <a-entity id="bardescription" position="8.2 -4.5 4.5" rotation="-30 0 0">
@@ -100,7 +100,7 @@
100
100
  </a-entity>
101
101
 
102
102
  <a-entity position="2.61 -5 4.45" scale="0.03 0.01 0.03" id="city"
103
- babia-boats="height_building_legend: -0.5; legend_scale: 0.25; extra: 1; zone_elevation: 1; from: jetumlcity; area: num_funs; height: loc_per_function; color: ccn; height_quarter_legend_box: 1; height_quarter_legend_title: -3">
103
+ babia-boats="height_building_legend: -0.5; legend_scale: 0.25; extra: 1; zone_elevation: 0.01; from: jetumlcity; area: num_funs; height: loc_per_function; color: ccn; height_quarter_legend_box: 1; height_quarter_legend_title: -3">
104
104
  </a-entity>
105
105
 
106
106
  <a-entity id="bardescription" position="8.2 -4.5 4.5" rotation="-30 0 0">
@@ -190,7 +190,7 @@
190
190
  </a-entity>
191
191
 
192
192
  <a-entity position="2.2 -5 3.8" scale="0.03 0.01 0.03" id="city"
193
- babia-boats="height_building_legend: -0.5; legend_scale: 0.25; extra: 1; zone_elevation: 1; from: jetumlcity; area: num_funs; height: loc_per_function; color: ccn; height_quarter_legend_box: 1; height_quarter_legend_title: -3">
193
+ babia-boats="height_building_legend: -0.5; legend_scale: 0.25; extra: 1; zone_elevation: 0.01; from: jetumlcity; area: num_funs; height: loc_per_function; color: ccn; height_quarter_legend_box: 1; height_quarter_legend_title: -3">
194
194
  </a-entity>
195
195
 
196
196
  <a-entity id="bardescription" position="8.2 -4.5 4.5" rotation="-30 0 0">
@@ -105,7 +105,7 @@
105
105
  </a-entity>
106
106
 
107
107
  <a-entity position="2.61 -5 4.45" scale="0.03 0.01 0.03" id="city"
108
- babia-boats="height_building_legend: -0.5; legend_scale: 0.25; extra: 1; zone_elevation: 1; from: jetumlcity; area: num_funs; height: loc_per_function; color: ccn; height_quarter_legend_box: 1; height_quarter_legend_title: -3.5">
108
+ babia-boats="height_building_legend: -0.5; legend_scale: 0.25; extra: 1; zone_elevation: 0.01; from: jetumlcity; area: num_funs; height: loc_per_function; color: ccn; height_quarter_legend_box: 1; height_quarter_legend_title: -3.5">
109
109
  </a-entity>
110
110
 
111
111
  <a-entity id="bardescription" position="8.2 -4.5 4.5" rotation="-30 0 0">
@@ -47,7 +47,7 @@
47
47
  \n The area of the base of each building represents the number of functions that the file has, if the file does not have any function, it will have an area value of 1;
48
48
  "></a-entity>
49
49
 
50
- <a-entity position="3 0 -18" scale="0.3 0.002 0.3" babia-boats="color: num_funs; zone_elevation: 10; from: percevalcity; area: num_funs; height: loc"></a-entity>
50
+ <a-entity position="3 0 -18" scale="0.3 0.002 0.3" babia-boats="color: num_funs; zone_elevation: 0.01; from: percevalcity; area: num_funs; height: loc"></a-entity>
51
51
 
52
52
  <a-entity movement-controls="fly: true" position="0 1.2 12">
53
53
  <a-entity camera position="0 3 4" look-controls></a-entity>
@@ -60,7 +60,7 @@
60
60
 
61
61
  </a-entity>
62
62
 
63
- <a-entity position="7 -5 -2" scale="0.05 0.0005 0.05" babia-boats="zone_elevation: 60; from: percevalcity; area: num_funs; height: loc"></a-entity>
63
+ <a-entity position="7 -5 -2" scale="0.05 0.0005 0.05" babia-boats="zone_elevation: 0.01; from: percevalcity; area: num_funs; height: loc"></a-entity>
64
64
 
65
65
  <a-entity id="bardescription" position="11 -4.5 1.5" rotation="-30 0 0">
66
66
  <a-box src="#floor" height="2" width="2" depth="0.1" position="0 0 0"></a-box>
@@ -209,7 +209,7 @@
209
209
 
210
210
  <!-- Controls and Camera -->
211
211
  <a-entity id="cameraRig" position="2 1.6 0.5">
212
- <a-entity id="head" babia-camera="raycasterMouse: .babiaxraycasterclass;
212
+ <a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
213
213
  raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom"
214
214
  look-controls wasd-controls="fly: false">
215
215
  <a-entity></a-entity>
@@ -199,7 +199,7 @@
199
199
 
200
200
  <!-- Controls and Camera -->
201
201
  <a-entity id="cameraRig" position="0 1.6 0">
202
- <a-entity id="head" babia-camera="raycasterMouse: .babiaxraycasterclass;
202
+ <a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
203
203
  raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom"
204
204
  look-controls wasd-controls="fly: false">
205
205
  <a-entity></a-entity>
@@ -198,7 +198,7 @@
198
198
 
199
199
  <!-- Controls and Camera -->
200
200
  <a-entity id="cameraRig" position="0 1.6 0">
201
- <a-entity id="head" babia-camera="raycasterMouse: .babiaxraycasterclass;
201
+ <a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
202
202
  raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom"
203
203
  look-controls wasd-controls="fly: false">
204
204
  <a-entity></a-entity>
@@ -43,7 +43,7 @@
43
43
  position="-18 9 0" rotation="90 60 0" scale="1 1 1"></a-entity>
44
44
 
45
45
  <a-entity id="cameraRig" position="-3 5 12">
46
- <a-entity id="head" babia-camera="raycasterMouse: .babiaxraycasterclass;
46
+ <a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
47
47
  raycasterHand: .babiaxraycasterclass; teleportCollision: .environmentGround; gripLLabel: Open/Close \nMenu,"
48
48
  look-controls wasd-controls="fly: false">
49
49
  <a-entity></a-entity>
@@ -87,7 +87,7 @@
87
87
 
88
88
  <!-- Controls and Camera -->
89
89
  <a-entity id="cameraRig" position="0 1.6 0">
90
- <a-entity id="head" babia-camera="raycasterMouse: .babiaxraycasterclass;
90
+ <a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
91
91
  raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom"
92
92
  look-controls wasd-controls="fly: false">
93
93
  <a-entity></a-entity>