aframe-babia-components 1.2.2 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/components/filters/babia-selector.js +256 -79
  2. package/components/filters/babia-treebuilder.js +1 -2
  3. package/components/geometries/babia-bar.js +13 -1
  4. package/components/geometries/babia-cyl.js +189 -0
  5. package/components/others/assets/tooltip.png +0 -0
  6. package/components/others/babia-camera.js +195 -0
  7. package/components/others/babia-controls.js +56 -31
  8. package/components/others/babia-navigator.js +55 -49
  9. package/components/others/babia-range-selector.js +218 -0
  10. package/components/others/babia-slider.js +36 -8
  11. package/components/others/babia-ui.js +246 -73
  12. package/components/others/common.js +91 -83
  13. package/components/queriers/babia-querycsv.js +96 -0
  14. package/components/queriers/babia-queryes.js +209 -131
  15. package/components/visualizers/babia-bars.js +15 -38
  16. package/components/visualizers/babia-barsmap.js +19 -34
  17. package/components/visualizers/babia-boats.js +221 -134
  18. package/components/visualizers/babia-bubbles.js +13 -26
  19. package/components/visualizers/babia-cyls.js +203 -201
  20. package/components/visualizers/babia-cylsmap.js +173 -241
  21. package/components/visualizers/babia-doughnut.js +6 -28
  22. package/components/visualizers/babia-network.js +191 -124
  23. package/components/visualizers/babia-pie.js +6 -30
  24. package/dist/aframe-babia-components.js +21913 -19571
  25. package/dist/aframe-babia-components.min.js +7 -1
  26. package/dist/aframe-babia-components.min.js.map +1 -1
  27. package/docs/APIs/CHARTS.md +33 -14
  28. package/docs/APIs/DATAMANAGEMENT.md +7 -0
  29. package/docs/APIs/OTHERS.md +42 -0
  30. package/docs/APIs/QUERIERS.md +18 -0
  31. package/docs/RELEASE_NOTES.md +58 -21
  32. package/docs/Tutorials/multiuser.md +47 -2
  33. package/examples/assets/door/New Bitmap Image.jpg +0 -0
  34. package/examples/assets/door/door.mtl +26 -0
  35. package/examples/assets/door/door.obj +6927 -0
  36. package/examples/assets/popups/0.png +0 -0
  37. package/examples/assets/popups/1.png +0 -0
  38. package/examples/assets/popups/10.png +0 -0
  39. package/examples/assets/popups/2.png +0 -0
  40. package/examples/assets/popups/3.png +0 -0
  41. package/examples/assets/popups/4.png +0 -0
  42. package/examples/assets/popups/5.png +0 -0
  43. package/examples/assets/popups/6.png +0 -0
  44. package/examples/assets/popups/7.png +0 -0
  45. package/examples/assets/popups/8.png +0 -0
  46. package/examples/assets/popups/9.png +0 -0
  47. package/examples/assets/popups/close.jpg +0 -0
  48. package/examples/assets/popups/info.jpg +0 -0
  49. package/examples/assets/textures/brownwall.png +0 -0
  50. package/examples/assets/textures/concrete.png +0 -0
  51. package/examples/assets/textures/white-wall-texture.jpg +0 -0
  52. package/examples/charts/cyls/index.html +13 -4
  53. package/examples/charts/cyls/primitive.html +76 -0
  54. package/examples/charts/cylsmap/index.html +14 -5
  55. package/examples/charts_querier/bars_querier/data.csv +10 -0
  56. package/examples/charts_querier/bars_querier/index_csv.html +80 -0
  57. package/examples/charts_querier/multichart_querier/manual_colors.html +81 -0
  58. package/examples/dashboard/chaoss-dashboards.html +259 -0
  59. package/examples/dashboard/chaoss-issues.html +248 -0
  60. package/examples/dashboard/chaoss-pr.html +248 -0
  61. package/examples/dashboard/index.html +247 -0
  62. package/examples/dashboard/issues_queries/80-percent-open-time.json +123 -0
  63. package/examples/dashboard/issues_queries/issues-by-organization.json +107 -0
  64. package/examples/dashboard/issues_queries/issues.json +117 -0
  65. package/examples/dashboard/issues_queries/median-open-time.json +123 -0
  66. package/examples/dashboard/issues_queries/organizations.json +130 -0
  67. package/examples/dashboard/issues_queries/projects.json +130 -0
  68. package/examples/dashboard/issues_queries/repositories.json +130 -0
  69. package/examples/dashboard/issues_queries/status.json +107 -0
  70. package/examples/dashboard/issues_queries/submitter.json +125 -0
  71. package/examples/dashboard/issues_queries/submitters.json +113 -0
  72. package/examples/dashboard/pullrequests_queries/80-percent-open-time.json +123 -0
  73. package/examples/dashboard/pullrequests_queries/median-open-time.json +123 -0
  74. package/examples/dashboard/pullrequests_queries/organizations.json +130 -0
  75. package/examples/dashboard/pullrequests_queries/projects.json +130 -0
  76. package/examples/dashboard/pullrequests_queries/pull-requests-by-organization.json +107 -0
  77. package/examples/dashboard/pullrequests_queries/pull-requests.json +117 -0
  78. package/examples/dashboard/pullrequests_queries/repositories.json +130 -0
  79. package/examples/dashboard/pullrequests_queries/status.json +107 -0
  80. package/examples/dashboard/pullrequests_queries/submitter.json +125 -0
  81. package/examples/dashboard/pullrequests_queries/submitters.json +113 -0
  82. package/examples/dashboard/range.html +88 -0
  83. package/examples/dashboard/template.html +136 -0
  84. package/examples/demos/1.0.11/index_multiuser_ui.html +1 -1
  85. package/examples/multi_bars/data.json +14 -0
  86. package/examples/multi_bars/data2.json +15 -0
  87. package/examples/multi_bars/data3.json +23 -0
  88. package/examples/multi_bars/easyrtc.js +11984 -0
  89. package/examples/multi_bars/index.html +97 -0
  90. package/examples/multi_bars/index1.html +111 -0
  91. package/examples/multi_bars/index2.html +102 -0
  92. package/examples/multi_bars/index3.html +104 -0
  93. package/examples/multi_boats/data3.json +174 -0
  94. package/examples/multi_boats/data4.json +192 -0
  95. package/examples/multi_boats/{index.html → index_multi_boats.html} +50 -55
  96. package/examples/multi_boats/jetuml.html +124 -115
  97. package/examples/multi_boats/jetuml_evolution_experiment.html +419 -0
  98. package/examples/multi_boats/only_queryjson.html +132 -0
  99. package/examples/multi_boats/only_queryjson2.html +167 -0
  100. package/examples/multi_boats/only_queryjson3.html +165 -0
  101. package/examples/multi_boats/queryjson_treebuilder.html +132 -0
  102. package/examples/multi_boats/with_selector.html +121 -111
  103. package/examples/multiuser/choose_avatar/index.html +18 -8
  104. package/examples/selector_boats/jetuml_from_3_2_to_1_0.json +62382 -0
  105. package/examples/ui/network/data.json +123 -0
  106. package/examples/ui/network/links.json +13 -0
  107. package/examples/ui/network/network.html +75 -0
  108. package/examples/ui/network/network_nodes_links.html +82 -0
  109. package/examples/ui/network/nodes.json +12 -0
  110. package/index.html +69 -3
  111. package/index.js +6 -1
  112. package/package.json +4 -3
  113. package/tests/screenshots/other_snapshots.js/chaoss-issues.png +0 -0
  114. package/tests/screenshots/other_snapshots.js/chaoss-pr.png +0 -0
  115. package/tests/screenshots/other_snapshots.js/template.png +0 -0
  116. package/tests/ui.js +7 -0
  117. package/webpack.common.js +1 -1
  118. package/webpack.devnossl.js +16 -0
  119. package/.idea/vcs.xml +0 -6
  120. package/.idea/workspace.xml +0 -79
@@ -24,7 +24,9 @@ This component shows a pie chart.
24
24
  | key | The field of the data that will define each slice of the pie. (Make sure that this field has unique values!) | string | key |
25
25
  | size | The **numeric** field of the data that will define the size of the slices | string | size |
26
26
  | legend | Shows a legend when hovering a slice | boolean | false |
27
- | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) | string | ubuntu |
27
+ | legend_lookat | Element that the legend will follow in terms of rotation | string | `[camera]` |
28
+ | legend_scale | Scale for the legend | number | 1 |
29
+ | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) or a custom array of colors ` <a-entity babia-xxxx='...; palette: ["#ffb02e", "#8600c4", "#007700", "#00388c", "#df0084", "#00c4ff"]'></a-entity>` | string or array | ubuntu |
28
30
  | title | Shows chart title | string | - |
29
31
  | titleFont | Font of the title. Path to a typeface.json file or selector to `<a-asset-item>`. [See more](#fonts) | JSON (list of objects) | https://rawgit.com/supermedium/superframe/master/components/text-geometry/lib/helvetiker_regular.typeface.json |
30
32
  | titleColor | Color of the title | string | #FFFFFF |
@@ -52,7 +54,9 @@ This component shows a doughnut chart.
52
54
  | key | The field of the data that will define each slice of the pie. (Make sure that this field has unique values!) | string | key |
53
55
  | size | The **numeric** field of the data that will define the size of the slices | string | size |
54
56
  | legend | Shows a legend when hovering a slice | boolean | false |
55
- | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) | string | ubuntu |
57
+ | legend_lookat | Element that the legend will follow in terms of rotation | string | `[camera]` |
58
+ | legend_scale | Scale for the legend | number | 1 |
59
+ | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) or a custom array of colors ` <a-entity babia-xxxx='...; palette: ["#ffb02e", "#8600c4", "#007700", "#00388c", "#df0084", "#00c4ff"]'></a-entity>` | string or array | ubuntu |
56
60
  | title | Shows chart title | string | - |
57
61
  | titleFont | Font of the title. Path to a typeface.json file or selector to `<a-asset-item>`. [See more](#fonts) | JSON (list of objects) | https://rawgit.com/supermedium/superframe/master/components/text-geometry/lib/helvetiker_regular.typeface.json |
58
62
  | titleColor | Color of the title | string | #FFFFFF |
@@ -80,11 +84,12 @@ This component shows a simple 2D bar chart.
80
84
  | x_axis | The field of the data that will define the tags of the x_axis of the chart (as a keys). (Make sure that this field has unique values!) | string | x_axis |
81
85
  | height | the **numeric** field of the data that will define the height of the bars | string | height |
82
86
  | legend | Shows a legend when hovering a bar | boolean | false |
87
+ | legend_lookat | Element that the legend will follow in terms of rotation | string | `[camera]` |
88
+ | legend_scale | Scale for the legend | number | 1 |
83
89
  | axis | Shows chart axis | boolean | true |
84
90
  | axis_name | Shows metric labels on axis | boolean | false |
85
- | scale | Scales up the chart. For example: scale 1/100 => `scale: 100` | number | - |
86
91
  | chartHeight | Adjusts the height of the chart. | number | - |
87
- | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) | string | ubuntu |
92
+ | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) or a custom array of colors ` <a-entity babia-xxxx='...; palette: ["#ffb02e", "#8600c4", "#007700", "#00388c", "#df0084", "#00c4ff"]'></a-entity>` | string or array | ubuntu |
88
93
  | title | Shows chart title | string | - |
89
94
  | titleFont | Font of the title. Path to a typeface.json file or selector to `<a-asset-item>`. [See more](#fonts) | JSON (list of objects) | https://rawgit.com/supermedium/superframe/master/components/text-geometry/lib/helvetiker_regular.typeface.json |
90
95
  | titleColor | Color of the title | string | #FFFFFF |
@@ -115,11 +120,12 @@ This component shows a bars map.
115
120
  | z_axis | The field of the data that will define the tags of the z_axis of the chart (as a keys). (Make sure that this field has unique values!) | string | z_axis |
116
121
  | height | the **numeric** field of the data that will define the height of the bars | string | height |
117
122
  | legend | Shows a legend when hovering a bar | boolean | false |
123
+ | legend_lookat | Element that the legend will follow in terms of rotation | string | `[camera]` |
124
+ | legend_scale | Scale for the legend | number | 1 |
118
125
  | axis | Shows chart axis | boolean | true |
119
126
  | axis_name | Shows metric labels on axis | boolean | false |
120
- | scale | Scales up the chart. For example: scale 1/100 => `scale: 100` | number | - |
121
127
  | chartHeight | Adjusts the height of the chart. | number | - |
122
- | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) | string | ubuntu |
128
+ | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) or a custom array of colors ` <a-entity babia-xxxx='...; palette: ["#ffb02e", "#8600c4", "#007700", "#00388c", "#df0084", "#00c4ff"]'></a-entity>` | string or array | ubuntu |
123
129
  | title | Shows chart title | string | - |
124
130
  | titleFont | Font of the title. Path to a typeface.json file or selector to `<a-asset-item>`. [See more](#fonts) | JSON (list of objects) | https://rawgit.com/supermedium/superframe/master/components/text-geometry/lib/helvetiker_regular.typeface.json |
125
131
  | titleColor | Color of the title | string | #FFFFFF |
@@ -151,11 +157,13 @@ This component shows a 3D Bubbles chart.
151
157
  | height | the **numeric** field of the data that will define the height of the bubbles | string | height |
152
158
  | radius | the **numeric** field of the data that will define the radius of the bubbles | string | radius |
153
159
  | legend | Shows a legend when hovering a bubble | boolean | false |
160
+ | legend_lookat | Element that the legend will follow in terms of rotation | string | `[camera]` |
161
+ | legend_scale | Scale for the legend | number | 1 |
154
162
  | axis | Shows chart axis | boolean | true |
155
163
  | scale | Scales up the chart. For example: scale 1/100 => `scale: 100` | number | - |
156
164
  | heightMax | Adjusts the height of the chart. | number | - |
157
165
  | radiusMax | Adjusts bubbles' radius of the chart. | number | - |
158
- | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) | string | ubuntu |
166
+ | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) or a custom array of colors ` <a-entity babia-xxxx='...; palette: ["#ffb02e", "#8600c4", "#007700", "#00388c", "#df0084", "#00c4ff"]'></a-entity>` | string or array | ubuntu |
159
167
  | title | Shows chart title | string | - |
160
168
  | titleFont | Font of the title. Path to a typeface.json file or selector to `<a-asset-item>`. [See more](#fonts) | JSON (list of objects) | https://rawgit.com/supermedium/superframe/master/components/text-geometry/lib/helvetiker_regular.typeface.json |
161
169
  | titleColor | Color of the title | string | #FFFFFF |
@@ -186,16 +194,20 @@ This component shows a cylinder chart.
186
194
  | height | the **numeric** field of the data that will define the height of the cylynders | string | height |
187
195
  | radius | the **numeric** field of the data that will define the radius of the cylynders | string | radius |
188
196
  | legend | Shows a legend when hovering a cylinder | boolean | false |
197
+ | legend_lookat | Element that the legend will follow in terms of rotation | string | `[camera]` |
198
+ | legend_scale | Scale for the legend | number | 1 |
189
199
  | axis | Shows chart axis | boolean | true |
190
- | scale | Scales up the chart. For example: scale 1/100 => `scale: 100` | number | - |
191
- | heightMax | Adjusts the height of the chart. | number | - |
192
- | radiusMax | Adjusts bubbles' radius of the chart. | number | - |
193
- | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) | string | ubuntu |
200
+ | axis_name | Shows metric labels on axis | boolean | false |
201
+ | chartHeight | Adjusts the height of the chart. | number | 10 |
202
+ | keepHeight | Keep height when updating data. | boolean | true |
203
+ | radiusMax | Adjusts bubbles' radius of the chart. | number | 2 |
204
+ | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) or a custom array of colors ` <a-entity babia-xxxx='...; palette: ["#ffb02e", "#8600c4", "#007700", "#00388c", "#df0084", "#00c4ff"]'></a-entity>` | string or array | ubuntu |
194
205
  | title | Shows chart title | string | - |
195
206
  | titleFont | Font of the title. Path to a typeface.json file or selector to `<a-asset-item>`. [See more](#fonts) | JSON (list of objects) | https://rawgit.com/supermedium/superframe/master/components/text-geometry/lib/helvetiker_regular.typeface.json |
196
207
  | titleColor | Color of the title | string | #FFFFFF |
197
208
  | titlePosition | Position of the title | string | 0 0 0 |
198
209
  | animation | Animates chart | boolean | false |
210
+ | dur | Duration of the animation(ms) | number | 2000 |
199
211
  | data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - |
200
212
 
201
213
  #### Data format example
@@ -221,16 +233,21 @@ This component shows a 3D cylinder chart.
221
233
  | height | the **numeric** field of the data that will define the height of the cylynders | string | height |
222
234
  | radius | the **numeric** field of the data that will define the radius of the cylynders | string | radius |
223
235
  | legend | Shows a legend when hovering a cylinder | boolean | false |
236
+ | legend_lookat | Element that the legend will follow in terms of rotation | string | `[camera]` |
237
+ | legend_scale | Scale for the legend | number | 1 |
224
238
  | axis | Shows chart axis | boolean | true |
239
+ | axis_name | Shows metric labels on axis | boolean | false |
225
240
  | scale | Scales up the chart. For example: scale 1/100 => `scale: 100` | number | - |
226
- | heightMax | Adjusts the height of the chart. | number | - |
227
- | radiusMax | Adjusts bubbles' radius of the chart. | number | - |
228
- | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) | string | ubuntu |
241
+ | chartHeight | Adjusts the height of the chart. | number | 10 |
242
+ | keepHeight | Keep height when updating data. | boolean | true |
243
+ | radiusMax | Adjusts bubbles' radius of the chart. | number | 2 |
244
+ | palette | Color palette of the chart `blues` `bussiness` `sunset`. [See more](#color-palettes) or a custom array of colors ` <a-entity babia-xxxx='...; palette: ["#ffb02e", "#8600c4", "#007700", "#00388c", "#df0084", "#00c4ff"]'></a-entity>` | string or array | ubuntu |
229
245
  | title | Shows chart title | string | - |
230
246
  | titleFont | Font of the title. Path to a typeface.json file or selector to `<a-asset-item>`. [See more](#fonts) | JSON (list of objects) | https://rawgit.com/supermedium/superframe/master/components/text-geometry/lib/helvetiker_regular.typeface.json |
231
247
  | titleColor | Color of the title | string | #FFFFFF |
232
248
  | titlePosition | Position of the title | string | 0 0 0 |
233
249
  | animation | Animates chart | boolean | false |
250
+ | dur | Duration of the animation(ms) | number | 2000 |
234
251
  | data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - |
235
252
 
236
253
  #### Data format example
@@ -296,6 +313,8 @@ This component shows a city in boats.
296
313
  | height | Field in data items to represent as building height | string | height |
297
314
  | color | Field in data items to represent the color of the buildings as HSL heatmap | string | - |
298
315
  | building_separation | Separation of the buildings by a numeric factor | number | 0.25 |
316
+ | legend_lookat | Element that the legend will follow in terms of rotation | string | `[camera]` |
317
+ | legend_scale | Scale for the legend | number | 1 |
299
318
  | border | Size of border around buildings (streets are built on it) | number | 0.5 |
300
319
  | extra | Extra factor for total area with respect to built area | number | 1.0 |
301
320
  | zone_elevation | Zone: elevation for each "depth" of quarters, over the previous one | number | 0.3 |
@@ -53,7 +53,14 @@ You need the `babia-navigator` to manage the progress.
53
53
  | select | Field to filter data | string | `date` |
54
54
  | timeout | Time between points of time in seconds | number | 6000 |
55
55
  | data | Embedded data to filter. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - |
56
+ | current_value | Current value of the time evolution **Important**: This attribute allows to the timeline to start at any point desired. It is also important for the syncronization in multiuser mode. | number | -2 |
57
+ | speed | Speed of the time evolution | number | 0 |
58
+ | step | Step of the time evolution | number | 0 |
59
+ | direction | Direction of the time evolution (`forward` or `rewind`). If is empty or it gets a different value, it behaves like `forward` | string | `forward`
60
+ | state | State of the time evolution (`play` or `pause`). If is empty or it gets a different value, it behaves like `play` | string | `play`
56
61
 
57
62
  **NOTE:** You can use multiple visualizers with the same selector component. Only indicating its id in `from` of any visualizer. All of them will be managed by the same navigator component.
58
63
 
59
64
  **IMPORTANT:** If you use this component with other filters, the correct order is: `Querier > Filters > Selector`. For `babia-boats` you need treebuilder component too, so the order is: `Querier > Filters > Selector > Treebuilder`. Not following this order can not work.
65
+
66
+ **IMPORTANT:** In order to activate multiuser mode for selector and navigator, remember to add `network` component before `babia-selector` component in the entity. Navigator does not need to be syncronized.
@@ -49,6 +49,12 @@ To work needs to indicate it inside the selector
49
49
  ```html
50
50
  <a-entity id="nav" babia-navigator></a-entity>
51
51
  ```
52
+ #### API
53
+
54
+ | Property | Description | Type | Default value |
55
+ | -------- | ----------- | ---- | ----- |
56
+ | direction | Direction of the time evolution (`forward` or `rewind`). If is empty or it gets a different value, it behaves like `forward`. **Important:** Do not set this value manually, it will be updated with the direction value of the selector via notiBuffer. | string | `forward`
57
+ | state | State of the time evolution (`play` or `pause`). If is empty or it gets a different value, it behaves like `play`. **Important:** Do not set this value manually, it will be updated with the state value of the selector via notiBuffer | string | `play`
52
58
 
53
59
  ### babia-axis components
54
60
 
@@ -121,4 +127,40 @@ This component adds a z axis to the graph.
121
127
  ```html
122
128
  <a-entity babia-axis-z = 'labels: continents, ticks: calculatedTicks, length: 10, palette: pearl,
123
129
  align: front, name: continent'></a-entity>
130
+ ```
131
+
132
+ #### **babia-camera component**
133
+
134
+ This component replaces A-frame camera and cursor components and inserts oculus controllers.
135
+
136
+ #### API
137
+
138
+ | Property | Description | Type | Default value |
139
+ | -------- | ----------- | ---- | ----- |
140
+ | raycasterMouse | Objects the raycaster can interact with | string | .babiaxraycasterclass |
141
+ | raycasterHand | Objects the raycaster can interact with | string | .babiaxraycasterclass |
142
+ | tipsOpened | Displays tips about hand controllers | boolean | true |
143
+ | triggerRLabel | Action label for this button | string | Click |
144
+ | triggerLLabel | Action label for this button | string | Teleport |
145
+ | gridRLabel | Action label for this button | string | Open/Close Tips |
146
+ | grigLLabel | Action label for this button | string | Stop Audio |
147
+ | teleportCollision | Selector of the meshes used to check the collisions | string | .environmentGround |
148
+
149
+ ```html
150
+ <a-entity id="head" babia-camera="raycasterMouse: .babiaxraycasterclass, #audio_button; raycasterHand: .babiaxraycasterclass, #audio_button" look-controls wasd-controls="fly: false"></a-entity>
151
+ ```
152
+
153
+ #### **babia-range-selector component**
154
+
155
+ This component uses the queryes component in order to change the time range in the query (only used in requests). It includes
156
+
157
+ #### API
158
+
159
+ | Property | Description | Type | Default value |
160
+ | -------- | ----------- | ---- | ----- |
161
+ | defaultRange | Default time range in the list, options: `Last 5 years, Last 2 years, Last 1 year, Last 6 months, Last 90 days, Last 60 days, Last 30 days, Last 7 days, Last 24 hours, Last 12 hours, Last 4 hours, Last 1 hour, Last 30 minutes, Last 15 minutes` | string | `Last 1 year` |
162
+
163
+ ```html
164
+ <!-- UI -->
165
+ <a-entity id="interface" babia-range-selector position="3.376 1.072 -3.073" rotation="0 -90 0" scale="0.132 0.132 0.132"></a-entity>
124
166
  ```
@@ -21,9 +21,14 @@ This component will put the data retrieved into the `babiaData` attribute of the
21
21
  | Property | Description | Type | Default value |
22
22
  | -------- | ----------- | ---- | ------ |
23
23
  | elasticsearch_url | Url of ElasticSearch | string | - |
24
+ | user | Username for the ElasticSearch if secured | string | - |
25
+ | password | Password for the ElasticSearch if secured | string | - |
24
26
  | index | Index of the query | string | - |
25
27
  | size | Size of the max results of the query | int | 10 |
26
28
  | query | Query using the Lucene query string syntax, p.e: `q=name:dlumbrer` | string | - |
29
+ | request | JSON body with aggregations that summarizes your data (See [example](https://gitlab.com/babiaxr/aframe-babia-components/-/blob/master/examples/queryes/index.html))| string | - |
30
+ | rangeSelector | ID from the range selector entity (See this [doc](./OTHERS.md)| string | - |
31
+
27
32
 
28
33
  > **Important**: The ElasticSearch must have enabled cross-origin resource sharing because the queries are made by the browser. See this [ElasticSearch reference](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html)
29
34
 
@@ -40,6 +45,19 @@ This component will put the data retrieved into the `babiaData` attribute of the
40
45
  | url | Url of the file with the JSON data | string | - |
41
46
  | data | JSON data directly stringified in the property | string | - |
42
47
 
48
+ ### babia-querycsv component
49
+
50
+ Component that will retrieve data from a CSV input that can be defined as an url or directly embedded.
51
+
52
+ This component will put the data retrieved into the `babiaData` attribute of the entity.
53
+
54
+ #### API
55
+
56
+ | Property | Description | Type | Default value |
57
+ | -------- | ----------- | ---- | ------ |
58
+ | url | Url of the file with the CSV data | string | - |
59
+ | data | CSV data directly stringified in the property | string | - |
60
+
43
61
 
44
62
  ### babia-querygithub component
45
63
 
@@ -2,29 +2,41 @@
2
2
 
3
3
  This doc gathers all the information about the releases made by the Springs/Milestones of BabiaXR.
4
4
 
5
- ## Springs/Milestones
5
+ ## Release notes
6
6
 
7
- | Name | Start date | End Date | Information | Board | Release Notes | NPM version |
8
- | -------- | ----------- | ---- | ----- | ------ | ------ | ------- |
9
- | Akira | 2020-04-22 | 2020-05-06 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/2) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Akira) | [Link](#akira) | 1.0.7 |
10
- | Bobobo | 2020-05-06 | 2020-05-20 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/3) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Bobobo) | [Link](#bobobo) | 1.0.8 |
11
- | Cowboy Bepop | 2020-05-20 | 2020-06-11 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/4) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Cowboy%20Bepop) | [Link](#cowboy-bepop) | 1.0.9 |
12
- | Detective Conan | 2020-06-10 | 2020-06-24 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/5) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Detective%20Conan) | [Link](#detective-conan) | 1.0.10 |
13
- | Excel Saga | 2020-06-24 | 2020-07-08 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/6) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Excel%20Saga) | [Link](#excel-saga) | - |
14
- | Fairy Tail | 2020-07-22 | 2020-08-05 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/7) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Fairy%20Tail) | [Link](#fairy-tail) | - |
15
- | Gantz | 2020-08-19 | 2020-09-02 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/8) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Gantz) | [Link](#gantz) | - |
16
- | Haikyu!! | 2020-09-09 | 2020-10-22 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/9) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Haikyu!!) | [Link](#haikyu!!) | 1.0.11 |
17
- | Inuyasha | 2020-10-22 | 2020-11-05 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/10) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Inuyasha) | [Link](#inuyasha) | 1.0.12 |
18
- | Kakegurui | - | - | [Link](https://gitlab.com/groups/babiaxr/-/milestones/12) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Kakegurui) | [Link](#kakegurui) | 1.1.0 |
19
- | Light | - | 2021-03-08 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/13) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Light) | [Link](#light) | 1.1.1 |
20
- | Mazinger Z | - | 2021-04-21 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/14) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&milestone_title=Mazinger%20Z) | [Link](#mazinger-z) | - |
21
- | Naruto | - | 2021-05-04 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/15) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&milestone_title=Naruto) | [Link](#naruto) | 1.1.2 |
22
- | One Punch Man | 2021-05-04 | 2021-06-07 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/16) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&milestone_title=One%20Punch%20Man) | [Link](#one-punch-man) | 1.1.3 |
23
- | Pokemon | 2021-06-07 | 2021-06-26 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/17) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&milestone_title=Pokemon) | [Link](#pokemon) | 1.1.4 |
24
- | Queens Blade | 2021-06-26 | 2021-09-29 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/18) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&milestone_title=Queens%20Blade) | [Link](#queens-blade) | 1.2.1 |
7
+ ### NPM 1.2.5 version
25
8
 
9
+ #### Colors palettes
26
10
 
27
- ## Release notes
11
+ - Added the feature of change the color palette just adding an array:
12
+
13
+ ```
14
+ <a-entity babia-barsmap='animation: true; x_axis: name; z_axis: age; height: size; legend: true; from: queriertest; palette: ["#ffb02e", "#8600c4", "#007700", "#00388c", "#df0084", "#00c4ff"]' position="-10 0 0" rotation="0 0 0"></a-entity>
15
+
16
+ ```
17
+
18
+ ### NPM 1.2.4 version
19
+
20
+ #### Range Selector
21
+
22
+ - Included this new component
23
+ - Default value now can be custom
24
+
25
+ #### barsmap
26
+
27
+ - When data changes the bars now changes, fixed the bug
28
+
29
+ #### Legends
30
+
31
+ - Add lookat and scale to the legends in bars, cyls, doughnut, pie and bubbles
32
+
33
+ ### No-name
34
+
35
+ > NPM 1.2.3 version
36
+
37
+ #### Querycsv
38
+
39
+ Included this new component
28
40
 
29
41
  ### ReLIFE
30
42
 
@@ -294,4 +306,29 @@ Selector adapted to all the components
294
306
  - Added `querier_es` to query ElasticSearch Databases.
295
307
  - Added cylinder (3D an 3D) and doughnut charts to the components set.
296
308
  - Added animation to the visualizations (except pie and doughnut chart).
297
- - Added Totem chart in order to change the data of some visualizations dynamically.
309
+ - Added Totem chart in order to change the data of some visualizations dynamically.
310
+
311
+
312
+
313
+ ## Springs/Milestones
314
+
315
+ | Name | Start date | End Date | Information | Board | Release Notes | NPM version |
316
+ | -------- | ----------- | ---- | ----- | ------ | ------ | ------- |
317
+ | Akira | 2020-04-22 | 2020-05-06 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/2) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Akira) | [Link](#akira) | 1.0.7 |
318
+ | Bobobo | 2020-05-06 | 2020-05-20 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/3) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Bobobo) | [Link](#bobobo) | 1.0.8 |
319
+ | Cowboy Bepop | 2020-05-20 | 2020-06-11 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/4) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Cowboy%20Bepop) | [Link](#cowboy-bepop) | 1.0.9 |
320
+ | Detective Conan | 2020-06-10 | 2020-06-24 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/5) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Detective%20Conan) | [Link](#detective-conan) | 1.0.10 |
321
+ | Excel Saga | 2020-06-24 | 2020-07-08 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/6) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Excel%20Saga) | [Link](#excel-saga) | - |
322
+ | Fairy Tail | 2020-07-22 | 2020-08-05 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/7) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Fairy%20Tail) | [Link](#fairy-tail) | - |
323
+ | Gantz | 2020-08-19 | 2020-09-02 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/8) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Gantz) | [Link](#gantz) | - |
324
+ | Haikyu!! | 2020-09-09 | 2020-10-22 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/9) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Haikyu!!) | [Link](#haikyu!!) | 1.0.11 |
325
+ | Inuyasha | 2020-10-22 | 2020-11-05 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/10) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Inuyasha) | [Link](#inuyasha) | 1.0.12 |
326
+ | Kakegurui | - | - | [Link](https://gitlab.com/groups/babiaxr/-/milestones/12) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Kakegurui) | [Link](#kakegurui) | 1.1.0 |
327
+ | Light | - | 2021-03-08 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/13) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Light) | [Link](#light) | 1.1.1 |
328
+ | Mazinger Z | - | 2021-04-21 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/14) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&milestone_title=Mazinger%20Z) | [Link](#mazinger-z) | - |
329
+ | Naruto | - | 2021-05-04 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/15) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&utf8=%E2%9C%93&milestone_title=Naruto) | [Link](#naruto) | 1.1.2 |
330
+ | One Punch Man | 2021-05-04 | 2021-06-07 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/16) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&milestone_title=One%20Punch%20Man) | [Link](#one-punch-man) | 1.1.3 |
331
+ | Pokemon | 2021-06-07 | 2021-06-26 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/17) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&milestone_title=Pokemon) | [Link](#pokemon) | 1.1.4 |
332
+ | Queens Blade | 2021-06-26 | 2021-09-29 | [Link](https://gitlab.com/groups/babiaxr/-/milestones/18) | [Link](https://gitlab.com/groups/babiaxr/-/boards?scope=all&milestone_title=Queens%20Blade) | [Link](#queens-blade) | 1.2.1 |
333
+
334
+ **DEPRECATED**
@@ -324,9 +324,11 @@ NAF.schemas.add({
324
324
 
325
325
  ### Special case 4: **babia querier**
326
326
 
327
- If we are using a querier to get the data it needs to be syncronized as well, so we need to add it to the schema of the entity that contains it.
327
+ If we are using a querier and a filter to get and process the data, we can choose to syncronize just the querier instead of the graph. In this case, we need to add it to the schema of the entity that contains it. It is going to be a persistent entity, that does not duplicate entities when new clients connect.
328
+
329
+ In the case where querier/filter and graphs are in the same entity, we simply syncronize the entity that contains them all and add the three components to the schema.
330
+
328
331
 
329
- In this case, we want a persistent entity, that does not duplicate entities when new clients connect.
330
332
 
331
333
  ```html
332
334
  <!-- TEMPLATE -->
@@ -376,6 +378,49 @@ scene.addEventListener('child-attached', function (event) {
376
378
 
377
379
  ```
378
380
 
381
+ ### Special case 6: **babia-selector and babia-navigator**
382
+
383
+ When we are working with temporal evolution of a graph with a selector and a navigator, the entity containing the **selector is the only one** that needs to be syncronized. Once adding the **networked** component to it, creating the template and adding the babia-selector to the schema, the component is going to behave in the multiuser mode automatically.
384
+
385
+ ```html
386
+ <!-- TEMPLATE -->
387
+ <template id="selector-template">
388
+ <a-entity class="selector"></a-entity>
389
+ </template>
390
+
391
+ <!-- ENTITY -->
392
+ <a-entity id="selector" networked="template:#selector-template; networkId:selector; persistent: true; owner: scene" babia-selector="from: querier; controller: nav"></a-entity>
393
+ ```
394
+ ```javascript
395
+ /* SCHEMA */
396
+ NAF.schemas.add({
397
+ template: '#selector-template',
398
+ components: [
399
+ 'babia-selector'
400
+ ]
401
+ })
402
+ ```
403
+
404
+
405
+ >IMPORTANT: The **networked** component needs to appear **before** the **babia-selector** component. This is important because the selector needs to check the existance of the networked component in order to activate the multiuser mode.
406
+
407
+ **How does the multiuser mode work?**
408
+ - When the first user enters and creates the scene, the selector owner is the scene, meaning no user has control over it.
409
+
410
+ - When a second user enters the scene, the ownership of the selector will change and the first user will get it, so they will now have control over it.
411
+
412
+ - When this happens, the second user will hide the controls of the navigator and only show the main slider.
413
+
414
+ - The new user is going to update its selector current value when syncronizing it, so that if the first user was already seeing the slider in the third position, the new user will see the same. This also happens with the values of the direction (forward/backwards), the state (play/pause), the step and the speed.
415
+
416
+ - Whenever the owner interacts with the navigator, the other user will receive all the changes.
417
+
418
+ - This behaviour is going to be repeated every time a new user enters. This way only the first one will have the ownership until someone else asks for this ownership.
419
+
420
+ - If another user wants to ask for the ownership, they have to click on the navigator and the ownership will be transfered to them. The old owner will hide the controls and the new owner will now show them with the same values that the old owner had (direction, state, step and speed).
421
+
422
+ - When the owner leaves the scene, the ownership is transfered in order of arrival.
423
+
379
424
  **Same ui for more than one graph**
380
425
 
381
426
  When we use the same ui for more than one graph, we need to ask for the ownership of a different graph depending on which one is activated. In order to do so, we just have to get the target and use it in the previous code, so it acts on the specific selected graph and no other:
File without changes
@@ -0,0 +1,26 @@
1
+ # 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
2
+ # File Created: 16.08.2012 14:06:35
3
+
4
+ newmtl White_Mat__wood_
5
+ Ns 26.0000
6
+ Ni 1.5000
7
+ d 1.0000
8
+ Tr 0.0000
9
+ Tf 1.0000 1.0000 1.0000
10
+ illum 2
11
+ Ka 0.9686 0.9686 0.9686
12
+ Kd 0.9686 0.9686 0.9686
13
+ Ks 0.4050 0.4050 0.4050
14
+ Ke 0.0000 0.0000 0.0000
15
+
16
+ newmtl Silver_mat
17
+ Ns 60.0000
18
+ Ni 1.5000
19
+ d 1.0000
20
+ Tr 0.0000
21
+ Tf 1.0000 1.0000 1.0000
22
+ illum 2
23
+ Ka 0.6980 0.6980 0.6980
24
+ Kd 0.6980 0.6980 0.6980
25
+ Ks 0.5676 0.5676 0.5676
26
+ Ke 0.0000 0.0000 0.0000