aframe-babia-components 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/filters/babia-treebuilder.js +1 -1
- package/components/visualizers/babia-boats.js +153 -67
- package/components/visualizers/babia-html.js +255 -0
- package/dist/aframe-babia-components.js +387 -47
- package/dist/aframe-babia-components.min.js +1 -1
- package/dist/aframe-babia-components.min.js.map +1 -1
- package/docs/APIs/CHARTS.md +5 -1
- package/docs/APIs/OTHERS.md +18 -8
- package/docs/RELEASE_NOTES.md +4 -0
- package/examples/boats/boats2/data.json +13 -206
- package/examples/demos/citations/babiaxr.json +1 -0
- package/examples/demos/citations/citations.html +72 -0
- package/examples/demos/citations/music.mp3 +0 -0
- package/examples/demos/citations/stl.js +28 -0
- package/examples/example-template.html +7 -6
- package/examples/experiment/city.html +13 -9
- package/examples/htmlinxr/complex.html +219 -0
- package/examples/htmlinxr/simple.html +163 -0
- package/examples/publications/codecityvs/index.html +12 -10
- package/examples/publications/dashboard/index.html +3 -2
- package/examples/publications/elevated/index.html +2 -1
- package/index.js +1 -0
- package/package.json +1 -1
package/docs/APIs/CHARTS.md
CHANGED
|
@@ -316,10 +316,14 @@ This component shows a city in boats.
|
|
|
316
316
|
| color | Field in data items to represent the color of the buildings as HSL heatmap (or categoric) | string | - |
|
|
317
317
|
| building_separation | Separation of the buildings by a numeric factor | number | 0.25 |
|
|
318
318
|
| legend_lookat | Element that the legend will follow in terms of rotation | string | `[camera]` |
|
|
319
|
-
| legend_scale | Scale for the
|
|
319
|
+
| legend_scale | Scale for the legend | number | 1 |
|
|
320
|
+
| legendsAsChildren | Set the legends as children of buildings and quarters | boolean | false |
|
|
321
|
+
| legendsAsChildrenHeight | Height of the legends when they are children. | number | 3 |
|
|
320
322
|
| metricsInfoId | Id of the HTML entity where the metrics information (max, min and avg) will be displayed | string | - |
|
|
321
323
|
| numericColorLegendId | Id of the color legend when numeric to hide/show | string | - |
|
|
322
324
|
| highlightQuarter | Option to highlight a quarter when a building is clicked | boolean | false |
|
|
325
|
+
| hideQuarterBoxLegend | Option to hide teh transparent box when clicking a quarter | boolean | false |
|
|
326
|
+
| highlightQuarterByClick | Option to highlight a quarter when a quarter is clicked | boolean | false |
|
|
323
327
|
| border | Size of border around buildings (streets are built on it) | number | 0.5 |
|
|
324
328
|
| extra | Extra factor for total area with respect to built area | number | 1.0 |
|
|
325
329
|
| zone_elevation | Zone: elevation for each "depth" of quarters, over the previous one, ABSOLUTE value (scale does not affects this parameter) | number | 0.3 |
|
package/docs/APIs/OTHERS.md
CHANGED
|
@@ -69,7 +69,7 @@ To work needs to indicate it inside the selector
|
|
|
69
69
|
|
|
70
70
|
The axis components add axis to the graphs. It is currently available for babia-bars and babia-barsmap components.
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
### **babia-axis-x component**
|
|
73
73
|
|
|
74
74
|
This component adds a x axis to the graph.
|
|
75
75
|
|
|
@@ -93,7 +93,7 @@ This component adds a x axis to the graph.
|
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
### **babia-axis-y component**
|
|
97
97
|
|
|
98
98
|
This component adds a y axis to the graph.
|
|
99
99
|
|
|
@@ -115,7 +115,7 @@ This component adds a y axis to the graph.
|
|
|
115
115
|
align: left'></a-entity>
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
### **babia-axis-z component**
|
|
119
119
|
|
|
120
120
|
This component adds a z axis to the graph.
|
|
121
121
|
|
|
@@ -138,7 +138,7 @@ This component adds a z axis to the graph.
|
|
|
138
138
|
align: front, name: continent'></a-entity>
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
### **babia-camera component**
|
|
142
142
|
|
|
143
143
|
This component built the needed things related to the camera for changing between VR and On-Screen, it adds cursor components and inserts oculus controllers.
|
|
144
144
|
|
|
@@ -159,7 +159,7 @@ This component built the needed things related to the camera for changing betwee
|
|
|
159
159
|
<a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass, #audio_button; raycasterHand: .babiaxraycasterclass, #audio_button" look-controls wasd-controls="fly: false"></a-entity>
|
|
160
160
|
```
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
### **babia-range-selector component**
|
|
163
163
|
|
|
164
164
|
This component uses the queryes component in order to change the time range in the query (only used in requests). It includes
|
|
165
165
|
|
|
@@ -175,7 +175,7 @@ This component uses the queryes component in order to change the time range in t
|
|
|
175
175
|
```
|
|
176
176
|
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
### **babia-poster component**
|
|
179
179
|
|
|
180
180
|
**This component is a soft fork of aframe-dialog-component**: https://github.com/editvr/aframe-dialog-popup-component#readme
|
|
181
181
|
|
|
@@ -205,7 +205,7 @@ This component uses the queryes component in order to change the time range in t
|
|
|
205
205
|
| dialogBoxColor | Dialog box background color. | white |
|
|
206
206
|
| dialogBoxPadding | Dialog box padding. | 0.2 |
|
|
207
207
|
|
|
208
|
-
|
|
208
|
+
### **babia-experiment component**
|
|
209
209
|
|
|
210
210
|
**We recomment to follow [this tutorial](../Tutorials/how_to_prepare_an_experiment.md) for using this component**
|
|
211
211
|
|
|
@@ -231,7 +231,7 @@ This component uses the queryes component in order to change the time range in t
|
|
|
231
231
|
|
|
232
232
|
|
|
233
233
|
|
|
234
|
-
|
|
234
|
+
### **babia-task component**
|
|
235
235
|
|
|
236
236
|
**We recomment to follow [this tutorial](../Tutorials/how_to_prepare_an_experiment.md) for using this component**
|
|
237
237
|
|
|
@@ -251,3 +251,13 @@ This component uses the queryes component in order to change the time range in t
|
|
|
251
251
|
| taskVideoWidth | Height of the video panel | boolean | 1.75 |
|
|
252
252
|
| offsetX | Offset in the X axis for positioning the task (useful when more than one babia-task) | number | 0 |
|
|
253
253
|
| lookat | What everything created by this component will follow in rotation | string | `[camera]` |
|
|
254
|
+
|
|
255
|
+
### **babia-html component**
|
|
256
|
+
|
|
257
|
+
**This component shows the DOM structure rendered in 3D**
|
|
258
|
+
|
|
259
|
+
| Property | Description | Type | Default value |
|
|
260
|
+
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | ------------- |
|
|
261
|
+
| html | HTML stringifyed to represent in 3D | string | '' |
|
|
262
|
+
| distanceLevels | Distance between children levels | float | 0.7 |
|
|
263
|
+
| renderHTML | If you want to render as a texture the HTML of each item. **IMPORTANT: You need to add into your html the `html2canvas` dependency `<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>` | boolean | false |
|
package/docs/RELEASE_NOTES.md
CHANGED
|
@@ -4,6 +4,10 @@ This doc gathers all the information about the releases made by the Springs/Mile
|
|
|
4
4
|
|
|
5
5
|
## Release notes
|
|
6
6
|
|
|
7
|
+
### NPM 1.2.8 version
|
|
8
|
+
|
|
9
|
+
`babia-boats` Improved with some attributes and bug fixes.
|
|
10
|
+
|
|
7
11
|
### NPM 1.2.6 version
|
|
8
12
|
|
|
9
13
|
Added `babia-experiment` and eveything related to the experiments feature.
|
|
@@ -1,241 +1,48 @@
|
|
|
1
1
|
[
|
|
2
|
-
{
|
|
3
|
-
"id": "/barrio",
|
|
4
|
-
"children": [
|
|
5
|
-
{
|
|
6
|
-
"id": "/barrio/block1",
|
|
7
|
-
"width": "3",
|
|
8
|
-
"height": "1",
|
|
9
|
-
"depth": "3"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"id": "/barrio/subarrio",
|
|
13
|
-
"children": [
|
|
14
|
-
{
|
|
15
|
-
"id": "/barrio/subarrio/block1",
|
|
16
|
-
"width": "5",
|
|
17
|
-
"height": "2",
|
|
18
|
-
"depth": "5"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"id": "/barrio/subarrio/block2",
|
|
22
|
-
"width": "3",
|
|
23
|
-
"height": "1",
|
|
24
|
-
"depth": "3"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"id": "/barrio2",
|
|
32
|
-
"children": [
|
|
33
|
-
{
|
|
34
|
-
"id": "/barrio2/block1",
|
|
35
|
-
"width": "3",
|
|
36
|
-
"height": "1",
|
|
37
|
-
"depth": "3"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"id": "/barrio2/subarrio",
|
|
41
|
-
"children": [
|
|
42
|
-
{
|
|
43
|
-
"id": "/barrio2/subarrio/block1",
|
|
44
|
-
"width": "5",
|
|
45
|
-
"height": "2",
|
|
46
|
-
"depth": "5"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"id": "/barrio2/subarrio/block2",
|
|
50
|
-
"width": "3",
|
|
51
|
-
"height": "1",
|
|
52
|
-
"depth": "3"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"id": "/barrio2/subarrio/block3",
|
|
56
|
-
"width": "1",
|
|
57
|
-
"height": "5",
|
|
58
|
-
"depth": "1"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"id": "/barrio2/block2",
|
|
64
|
-
"width": "2",
|
|
65
|
-
"height": "3",
|
|
66
|
-
"depth": "2"
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"id": "/barrio3",
|
|
72
|
-
"children": [
|
|
73
|
-
{
|
|
74
|
-
"id": "/barrio3/block1",
|
|
75
|
-
"width": "2",
|
|
76
|
-
"height": "1",
|
|
77
|
-
"depth": "2"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"id": "/barrio2/block2",
|
|
81
|
-
"width": "2",
|
|
82
|
-
"height": "3",
|
|
83
|
-
"depth": "2"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"id": "/barrio3/subarrio",
|
|
87
|
-
"children": [
|
|
88
|
-
{
|
|
89
|
-
"id": "/barrio3/subarrio/block2",
|
|
90
|
-
"width": "3",
|
|
91
|
-
"height": "1",
|
|
92
|
-
"depth": "3"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"id": "/barrio3/subarrio/block3",
|
|
96
|
-
"width": "1",
|
|
97
|
-
"height": "5",
|
|
98
|
-
"depth": "1"
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
2
|
{
|
|
105
3
|
"id": "001",
|
|
106
|
-
"width": "5",
|
|
107
4
|
"height": "1",
|
|
108
|
-
"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"id": "003",
|
|
112
|
-
"width": "5",
|
|
113
|
-
"height": "1",
|
|
114
|
-
"depth": "5"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"id": "004",
|
|
118
|
-
"width": "2",
|
|
119
|
-
"height": "1",
|
|
120
|
-
"depth": "2"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"id": "005",
|
|
124
|
-
"width": "3",
|
|
125
|
-
"height": "1",
|
|
126
|
-
"depth": "3"
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
{
|
|
130
|
-
"id": "006",
|
|
131
|
-
"width": "3",
|
|
132
|
-
"height": "1",
|
|
133
|
-
"depth": "3"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"id": "/barrio4",
|
|
137
|
-
"children": [
|
|
138
|
-
{
|
|
139
|
-
"id": "/barrio4/block1",
|
|
140
|
-
"width": "3",
|
|
141
|
-
"height": "1",
|
|
142
|
-
"depth": "3"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"id": "/barrio4/subarrio",
|
|
146
|
-
"children": [
|
|
147
|
-
{
|
|
148
|
-
"id": "/barrio4/subarrio/block1",
|
|
149
|
-
"width": "5",
|
|
150
|
-
"height": "2",
|
|
151
|
-
"depth": "5"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"id": "/barrio4/subarrio/block2",
|
|
155
|
-
"width": "3",
|
|
156
|
-
"height": "1",
|
|
157
|
-
"depth": "3"
|
|
158
|
-
}
|
|
159
|
-
]
|
|
160
|
-
}
|
|
161
|
-
]
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"id": "001",
|
|
165
|
-
"width": "5",
|
|
166
|
-
"height": "1",
|
|
167
|
-
"depth": "5"
|
|
5
|
+
"area": "1"
|
|
168
6
|
},
|
|
169
7
|
{
|
|
170
8
|
"id": "002",
|
|
171
|
-
"width": "3",
|
|
172
9
|
"height": "1",
|
|
173
|
-
"
|
|
10
|
+
"area": "1"
|
|
174
11
|
},
|
|
175
12
|
{
|
|
176
13
|
"id": "003",
|
|
177
|
-
"width": "5",
|
|
178
14
|
"height": "1",
|
|
179
|
-
"
|
|
15
|
+
"area": "1"
|
|
180
16
|
},
|
|
181
17
|
{
|
|
182
18
|
"id": "004",
|
|
183
|
-
"width": "5",
|
|
184
19
|
"height": "1",
|
|
185
|
-
"
|
|
20
|
+
"area": "1"
|
|
186
21
|
},
|
|
22
|
+
|
|
187
23
|
{
|
|
188
24
|
"id": "005",
|
|
189
|
-
"width": "3",
|
|
190
25
|
"height": "1",
|
|
191
|
-
"
|
|
26
|
+
"area": "1"
|
|
192
27
|
},
|
|
193
28
|
{
|
|
194
29
|
"id": "006",
|
|
195
|
-
"width": "3",
|
|
196
|
-
"height": "1",
|
|
197
|
-
"depth": "3"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"id": "001",
|
|
201
|
-
"width": "5",
|
|
202
|
-
"height": "1",
|
|
203
|
-
"depth": "5"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"id": "002",
|
|
207
|
-
"width": "3",
|
|
208
|
-
"height": "1",
|
|
209
|
-
"depth": "3"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
"id": "003",
|
|
213
|
-
"width": "5",
|
|
214
|
-
"height": "1",
|
|
215
|
-
"depth": "5"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"id": "004",
|
|
219
|
-
"width": "5",
|
|
220
30
|
"height": "1",
|
|
221
|
-
"
|
|
31
|
+
"area": "1"
|
|
222
32
|
},
|
|
223
33
|
{
|
|
224
|
-
"id": "
|
|
225
|
-
"width": "3",
|
|
34
|
+
"id": "007",
|
|
226
35
|
"height": "1",
|
|
227
|
-
"
|
|
36
|
+
"area": "1"
|
|
228
37
|
},
|
|
229
38
|
{
|
|
230
|
-
"id": "
|
|
231
|
-
"width": "3",
|
|
39
|
+
"id": "008",
|
|
232
40
|
"height": "1",
|
|
233
|
-
"
|
|
41
|
+
"area": "1"
|
|
234
42
|
},
|
|
235
43
|
{
|
|
236
|
-
"id": "
|
|
237
|
-
"width": "5",
|
|
44
|
+
"id": "009",
|
|
238
45
|
"height": "1",
|
|
239
|
-
"
|
|
46
|
+
"area": "1"
|
|
240
47
|
}
|
|
241
48
|
]
|