aframe-babia-components 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/filters/babia-treebuilder.js +17 -12
- package/components/others/babia-camera.js +52 -40
- package/components/others/babia-experiment.js +457 -0
- package/components/others/babia-poster.js +383 -0
- package/components/others/babia-task.js +247 -0
- package/components/others/babia-ui.js +312 -147
- package/components/others/common.js +36 -5
- package/components/visualizers/babia-boats.js +708 -87
- package/components/visualizers/babia-network.js +268 -212
- package/dist/aframe-babia-components.js +20590 -18317
- package/dist/aframe-babia-components.min.js +3 -3
- package/dist/aframe-babia-components.min.js.map +1 -1
- package/docs/APIs/CHARTS.md +233 -207
- package/docs/APIs/OTHERS.md +143 -56
- package/docs/RELEASE_NOTES.md +5 -0
- package/docs/Tutorials/how_to_prepare_an_experiment.md +148 -0
- package/examples/assets/palettes/bluetored.jpg +0 -0
- package/examples/assets/textures/360-panorama.jpg +0 -0
- package/examples/assets/textures/floor-texture.jpg +0 -0
- package/examples/assets/textures/metalic-texture.jpg +0 -0
- package/examples/boats/boats_dependency/dependencieslist_cloudinary.json +1 -0
- package/examples/boats/boats_dependency/dependencieslist_express.json +4376 -0
- package/examples/boats/boats_dependency/dependencieslist_filestash.json +39533 -0
- package/examples/boats/boats_dependency/dependencieslist_ghdesktop.json +127660 -0
- package/examples/boats/boats_dependency/dependencieslist_karma.json +1 -0
- package/examples/boats/boats_dependency/dependencieslist_pm2.json +13726 -0
- package/examples/boats/boats_dependency/dependencieslist_portainer.json +41818 -0
- package/examples/boats/boats_dependency/dependencieslist_sh.json +5194 -0
- package/examples/boats/boats_dependency/experiment.html +277 -0
- package/examples/boats/boats_dependency/index.html +300 -0
- package/examples/boats/boats_dependency/index_gradient.html +209 -0
- package/examples/boats/boats_dependency/index_normalcity.html +207 -0
- package/examples/boats/boats_dependency/index_quarter_levels_01.html +213 -0
- package/examples/boats/boats_dependency/index_quarter_levels_02.html +213 -0
- package/examples/boats/boats_dependency/index_quarter_levels_03.html +213 -0
- package/examples/boats/boats_dependency/index_quarter_levels_querystring.html +243 -0
- package/examples/boats/boats_dependency/index_tree.html +211 -0
- package/examples/boats/boats_dependency/index_tree_gradient.html +212 -0
- package/examples/boats/boats_dependency/index_tree_wireframe.html +243 -0
- package/examples/charts/network_chart/network_chart.html +10 -2
- package/examples/charts/pie/index.html +3 -4
- package/examples/codecityjs/perceval2021/index.html +1 -1
- package/examples/codecityjs/projects_analysis/argouml_landscape.html +1 -1
- package/examples/codecityjs/projects_analysis/argouml_numfuns.html +3 -3
- package/examples/codecityjs/projects_analysis/argouml_table.html +1 -1
- package/examples/codecityjs/projects_analysis/argouml_tokens.html +1 -1
- package/examples/codecityjs/projects_analysis/experiment_interface.html +1 -1
- package/examples/codecityjs/projects_analysis/experiment_interface_task5.html +1 -1
- package/examples/codecityjs/projects_analysis/experiment_interface_vr_2021.html +1 -1
- package/examples/codecityjs/projects_analysis/experiment_interface_vr_task5.html +1 -1
- package/examples/codecityjs/projects_analysis/perceval_landscape.html +1 -1
- package/examples/codecityjs/projects_analysis/perceval_table.html +1 -1
- package/examples/dashboard/chaoss-dashboards.html +1 -1
- package/examples/dashboard/chaoss-issues.html +1 -1
- package/examples/dashboard/chaoss-pr.html +1 -1
- package/examples/dashboard/range.html +1 -1
- package/examples/dashboard/template.html +1 -1
- package/examples/experiment/city.html +352 -0
- package/examples/experiment/index.html +527 -0
- package/examples/experiment/pie.html +90 -0
- package/examples/experiment/sample-3s.mp3 +0 -0
- package/examples/experiment/sample.mp4 +0 -0
- package/examples/experiment/staticdata/80-percent-open-time-issues2.json +1 -0
- package/examples/experiment/staticdata/80-percent-open-time-pr.json +1 -0
- package/examples/experiment/staticdata/issues-by-organization.json +1 -0
- package/examples/experiment/staticdata/issues.json +1 -0
- package/examples/experiment/staticdata/jetuml_code_data.json +1 -0
- package/examples/experiment/staticdata/median-open-time-issues.json +1 -0
- package/examples/experiment/staticdata/median-open-time-pr.json +1 -0
- package/examples/experiment/staticdata/organizations-issues.json +1 -0
- package/examples/experiment/staticdata/organizations-pr.json +1 -0
- package/examples/experiment/staticdata/projects-issues.json +1 -0
- package/examples/experiment/staticdata/projects-pr.json +1 -0
- package/examples/experiment/staticdata/pull-requests-by-organization.json +1 -0
- package/examples/experiment/staticdata/pull-requests.json +1 -0
- package/examples/experiment/staticdata/repositories-issues-asignees.json +1 -0
- package/examples/experiment/staticdata/repositories-issues-avgdays.json +1 -0
- package/examples/experiment/staticdata/repositories-issues-count.json +1 -0
- package/examples/experiment/staticdata/repositories-issues-submitters.json +1 -0
- package/examples/experiment/staticdata/repositories-pr-asignees.json +1 -0
- package/examples/experiment/staticdata/repositories-pr-avgdays.json +1 -0
- package/examples/experiment/staticdata/repositories-pr-count.json +1 -0
- package/examples/experiment/staticdata/repositories-pr-submitters.json +1 -0
- package/examples/experiment/staticdata/status-issues.json +1 -0
- package/examples/experiment/staticdata/status-pr.json +1 -0
- package/examples/experiment/staticdata/submitter-issues-avgdays.json +1 -0
- package/examples/experiment/staticdata/submitter-issues-count.json +1 -0
- package/examples/experiment/staticdata/submitter-issues-repo.json +1 -0
- package/examples/experiment/staticdata/submitter-pr-avgdays.json +1 -0
- package/examples/experiment/staticdata/submitter-pr-count.json +1 -0
- package/examples/experiment/staticdata/submitter-pr-repo.json +1 -0
- package/examples/experiment/staticdata/submitters-issues.json +1 -0
- package/examples/experiment/staticdata/submitters-pr.json +1 -0
- package/examples/multi_boats/jetuml_evolution_experiment.html +1 -1
- package/index.js +23 -9
- package/package.json +1 -1
- package/examples/charts_querier/network_chart_querier/data.json +0 -123
- package/examples/charts_querier/network_chart_querier/links.json +0 -13
- package/examples/charts_querier/network_chart_querier/network_chart_querier.html +0 -68
- package/examples/charts_querier/network_chart_querier/network_chart_querier_nodes_links.html +0 -74
- package/examples/charts_querier/network_chart_querier/nodes.json +0 -12
package/docs/APIs/CHARTS.md
CHANGED
|
@@ -18,21 +18,21 @@ This component shows a pie chart.
|
|
|
18
18
|
|
|
19
19
|
#### API
|
|
20
20
|
|
|
21
|
-
| Property
|
|
22
|
-
|
|
|
23
|
-
| from | The filterdata/querier entity ID where is the data for the chart
|
|
24
|
-
| key
|
|
25
|
-
| size | The **numeric** field of the data that will define the size of the slices
|
|
26
|
-
| legend
|
|
27
|
-
| legend_lookat
|
|
28
|
-
| legend_scale
|
|
29
|
-
| palette
|
|
30
|
-
| title
|
|
31
|
-
| titleFont
|
|
32
|
-
| titleColor
|
|
33
|
-
| titlePosition
|
|
34
|
-
| animation
|
|
35
|
-
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute.
|
|
21
|
+
| Property | Description | Type | Default value |
|
|
22
|
+
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
23
|
+
| from | The filterdata/querier entity ID where is the data for the chart | string | - |
|
|
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
|
+
| size | The **numeric** field of the data that will define the size of the slices | string | size |
|
|
26
|
+
| legend | Shows a legend when hovering a slice | boolean | false |
|
|
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 |
|
|
30
|
+
| title | Shows chart title | string | - |
|
|
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 |
|
|
32
|
+
| titleColor | Color of the title | string | #FFFFFF |
|
|
33
|
+
| titlePosition | Position of the title | string | 0 0 0 |
|
|
34
|
+
| animation | Animates chart | boolean | false |
|
|
35
|
+
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - |
|
|
36
36
|
|
|
37
37
|
#### Data format example
|
|
38
38
|
```json
|
|
@@ -48,21 +48,21 @@ This component shows a doughnut chart.
|
|
|
48
48
|
|
|
49
49
|
#### API
|
|
50
50
|
|
|
51
|
-
| Property
|
|
52
|
-
|
|
|
53
|
-
| from | The filterdata/querier entity ID where is the data for the chart
|
|
54
|
-
| key
|
|
55
|
-
| size | The **numeric** field of the data that will define the size of the slices
|
|
56
|
-
| legend
|
|
57
|
-
| legend_lookat
|
|
58
|
-
| legend_scale
|
|
59
|
-
| palette
|
|
60
|
-
| title
|
|
61
|
-
| titleFont
|
|
62
|
-
| titleColor
|
|
63
|
-
| titlePosition
|
|
64
|
-
| animation
|
|
65
|
-
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute.
|
|
51
|
+
| Property | Description | Type | Default value |
|
|
52
|
+
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
53
|
+
| from | The filterdata/querier entity ID where is the data for the chart | string | - |
|
|
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 |
|
|
55
|
+
| size | The **numeric** field of the data that will define the size of the slices | string | size |
|
|
56
|
+
| legend | Shows a legend when hovering a slice | boolean | false |
|
|
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 |
|
|
60
|
+
| title | Shows chart title | string | - |
|
|
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 |
|
|
62
|
+
| titleColor | Color of the title | string | #FFFFFF |
|
|
63
|
+
| titlePosition | Position of the title | string | 0 0 0 |
|
|
64
|
+
| animation | Animates chart | boolean | false |
|
|
65
|
+
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - |
|
|
66
66
|
|
|
67
67
|
#### Data format example
|
|
68
68
|
```json
|
|
@@ -78,25 +78,25 @@ This component shows a simple 2D bar chart.
|
|
|
78
78
|
|
|
79
79
|
#### API
|
|
80
80
|
|
|
81
|
-
| Property
|
|
82
|
-
|
|
|
83
|
-
| from | The filterdata/querier entity ID where is the data for the chart
|
|
84
|
-
| x_axis
|
|
85
|
-
| height
|
|
86
|
-
| legend
|
|
87
|
-
| legend_lookat
|
|
88
|
-
| legend_scale
|
|
89
|
-
| axis | Shows chart axis
|
|
90
|
-
| axis_name
|
|
91
|
-
| chartHeight
|
|
92
|
-
| palette
|
|
93
|
-
| title
|
|
94
|
-
| titleFont
|
|
95
|
-
| titleColor
|
|
96
|
-
| titlePosition
|
|
97
|
-
| animation
|
|
98
|
-
| dur
|
|
99
|
-
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute.
|
|
81
|
+
| Property | Description | Type | Default value |
|
|
82
|
+
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
83
|
+
| from | The filterdata/querier entity ID where is the data for the chart | string | - |
|
|
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 |
|
|
85
|
+
| height | the **numeric** field of the data that will define the height of the bars | string | height |
|
|
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 |
|
|
89
|
+
| axis | Shows chart axis | boolean | true |
|
|
90
|
+
| axis_name | Shows metric labels on axis | boolean | false |
|
|
91
|
+
| chartHeight | Adjusts the height of the chart. | number | - |
|
|
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 |
|
|
93
|
+
| title | Shows chart title | string | - |
|
|
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 |
|
|
95
|
+
| titleColor | Color of the title | string | #FFFFFF |
|
|
96
|
+
| titlePosition | Position of the title | string | 0 0 0 |
|
|
97
|
+
| animation | Animates chart | boolean | false |
|
|
98
|
+
| dur | Duration of the animation(ms) | number | 2000 |
|
|
99
|
+
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - |
|
|
100
100
|
|
|
101
101
|
#### Data format example
|
|
102
102
|
```json
|
|
@@ -113,26 +113,26 @@ This component shows a bars map.
|
|
|
113
113
|
|
|
114
114
|
#### API
|
|
115
115
|
|
|
116
|
-
| Property
|
|
117
|
-
|
|
|
118
|
-
| from | The filterdata/querier entity ID where is the data for the chart
|
|
119
|
-
| x_axis
|
|
120
|
-
| z_axis
|
|
121
|
-
| height
|
|
122
|
-
| legend
|
|
123
|
-
| legend_lookat
|
|
124
|
-
| legend_scale
|
|
125
|
-
| axis | Shows chart axis
|
|
126
|
-
| axis_name
|
|
127
|
-
| chartHeight
|
|
128
|
-
| palette
|
|
129
|
-
| title
|
|
130
|
-
| titleFont
|
|
131
|
-
| titleColor
|
|
132
|
-
| titlePosition
|
|
133
|
-
| animation
|
|
134
|
-
| dur
|
|
135
|
-
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute.
|
|
116
|
+
| Property | Description | Type | Default value |
|
|
117
|
+
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
118
|
+
| from | The filterdata/querier entity ID where is the data for the chart | string | - |
|
|
119
|
+
| 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 |
|
|
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 |
|
|
121
|
+
| height | the **numeric** field of the data that will define the height of the bars | string | height |
|
|
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 |
|
|
125
|
+
| axis | Shows chart axis | boolean | true |
|
|
126
|
+
| axis_name | Shows metric labels on axis | boolean | false |
|
|
127
|
+
| chartHeight | Adjusts the height of the chart. | number | - |
|
|
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 |
|
|
129
|
+
| title | Shows chart title | string | - |
|
|
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 |
|
|
131
|
+
| titleColor | Color of the title | string | #FFFFFF |
|
|
132
|
+
| titlePosition | Position of the title | string | 0 0 0 |
|
|
133
|
+
| animation | Animates chart | boolean | false |
|
|
134
|
+
| dur | Duration of the animation(ms) | number | 2000 |
|
|
135
|
+
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - |
|
|
136
136
|
|
|
137
137
|
#### Data format example
|
|
138
138
|
```json
|
|
@@ -149,27 +149,27 @@ This component shows a 3D Bubbles chart.
|
|
|
149
149
|
|
|
150
150
|
#### API
|
|
151
151
|
|
|
152
|
-
| Property
|
|
153
|
-
|
|
|
154
|
-
| from | The filterdata/querier entity ID where is the data for the chart
|
|
155
|
-
| x_axis
|
|
156
|
-
| z_axis
|
|
157
|
-
| height
|
|
158
|
-
| radius
|
|
159
|
-
| legend
|
|
160
|
-
| legend_lookat
|
|
161
|
-
| legend_scale
|
|
162
|
-
| axis | Shows chart axis
|
|
163
|
-
| scale
|
|
164
|
-
| heightMax
|
|
165
|
-
| radiusMax
|
|
166
|
-
| palette
|
|
167
|
-
| title
|
|
168
|
-
| titleFont
|
|
169
|
-
| titleColor
|
|
170
|
-
| titlePosition
|
|
171
|
-
| animation
|
|
172
|
-
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute.
|
|
152
|
+
| Property | Description | Type | Default value |
|
|
153
|
+
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
154
|
+
| from | The filterdata/querier entity ID where is the data for the chart | string | - |
|
|
155
|
+
| x_axis | The field of the data that will define the tags of the x_axis of the chart (as a keys) | string | x_axis |
|
|
156
|
+
| 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 |
|
|
157
|
+
| height | the **numeric** field of the data that will define the height of the bubbles | string | height |
|
|
158
|
+
| radius | the **numeric** field of the data that will define the radius of the bubbles | string | radius |
|
|
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 |
|
|
162
|
+
| axis | Shows chart axis | boolean | true |
|
|
163
|
+
| scale | Scales up the chart. For example: scale 1/100 => `scale: 100` | number | - |
|
|
164
|
+
| heightMax | Adjusts the height of the chart. | number | - |
|
|
165
|
+
| radiusMax | Adjusts bubbles' radius of the chart. | number | - |
|
|
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 |
|
|
167
|
+
| title | Shows chart title | string | - |
|
|
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 |
|
|
169
|
+
| titleColor | Color of the title | string | #FFFFFF |
|
|
170
|
+
| titlePosition | Position of the title | string | 0 0 0 |
|
|
171
|
+
| animation | Animates chart | boolean | false |
|
|
172
|
+
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - |
|
|
173
173
|
|
|
174
174
|
#### Data format example
|
|
175
175
|
```json
|
|
@@ -187,28 +187,28 @@ This component shows a cylinder chart.
|
|
|
187
187
|
|
|
188
188
|
#### API
|
|
189
189
|
|
|
190
|
-
| Property
|
|
191
|
-
|
|
|
192
|
-
| from | The filterdata/querier entity ID where is the data for the chart
|
|
193
|
-
| x_axis
|
|
194
|
-
| height
|
|
195
|
-
| radius
|
|
196
|
-
| legend
|
|
197
|
-
| legend_lookat
|
|
198
|
-
| legend_scale
|
|
199
|
-
| axis | Shows chart axis
|
|
200
|
-
| axis_name
|
|
201
|
-
| chartHeight
|
|
202
|
-
| keepHeight
|
|
203
|
-
| radiusMax
|
|
204
|
-
| palette
|
|
205
|
-
| title
|
|
206
|
-
| titleFont
|
|
207
|
-
| titleColor
|
|
208
|
-
| titlePosition
|
|
209
|
-
| animation
|
|
210
|
-
| dur
|
|
211
|
-
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute.
|
|
190
|
+
| Property | Description | Type | Default value |
|
|
191
|
+
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
192
|
+
| from | The filterdata/querier entity ID where is the data for the chart | string | - |
|
|
193
|
+
| 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 |
|
|
194
|
+
| height | the **numeric** field of the data that will define the height of the cylynders | string | height |
|
|
195
|
+
| radius | the **numeric** field of the data that will define the radius of the cylynders | string | radius |
|
|
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 |
|
|
199
|
+
| axis | Shows chart axis | boolean | true |
|
|
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 |
|
|
205
|
+
| title | Shows chart title | string | - |
|
|
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 |
|
|
207
|
+
| titleColor | Color of the title | string | #FFFFFF |
|
|
208
|
+
| titlePosition | Position of the title | string | 0 0 0 |
|
|
209
|
+
| animation | Animates chart | boolean | false |
|
|
210
|
+
| dur | Duration of the animation(ms) | number | 2000 |
|
|
211
|
+
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - |
|
|
212
212
|
|
|
213
213
|
#### Data format example
|
|
214
214
|
```json
|
|
@@ -225,30 +225,30 @@ This component shows a 3D cylinder chart.
|
|
|
225
225
|
|
|
226
226
|
#### API
|
|
227
227
|
|
|
228
|
-
| Property
|
|
229
|
-
|
|
|
230
|
-
| from | The filterdata/querier entity ID where is the data for the chart
|
|
231
|
-
| x_axis
|
|
232
|
-
| z_axis
|
|
233
|
-
| height
|
|
234
|
-
| radius
|
|
235
|
-
| legend
|
|
236
|
-
| legend_lookat
|
|
237
|
-
| legend_scale
|
|
238
|
-
| axis | Shows chart axis
|
|
239
|
-
| axis_name
|
|
240
|
-
| scale
|
|
241
|
-
| chartHeight
|
|
242
|
-
| keepHeight
|
|
243
|
-
| radiusMax
|
|
244
|
-
| palette
|
|
245
|
-
| title
|
|
246
|
-
| titleFont
|
|
247
|
-
| titleColor
|
|
248
|
-
| titlePosition
|
|
249
|
-
| animation
|
|
250
|
-
| dur
|
|
251
|
-
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute.
|
|
228
|
+
| Property | Description | Type | Default value |
|
|
229
|
+
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
230
|
+
| from | The filterdata/querier entity ID where is the data for the chart | string | - |
|
|
231
|
+
| x_axis | The field of the data that will define the tags of the x_axis of the chart (as a keys) | string | x_axis |
|
|
232
|
+
| 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 |
|
|
233
|
+
| height | the **numeric** field of the data that will define the height of the cylynders | string | height |
|
|
234
|
+
| radius | the **numeric** field of the data that will define the radius of the cylynders | string | radius |
|
|
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 |
|
|
238
|
+
| axis | Shows chart axis | boolean | true |
|
|
239
|
+
| axis_name | Shows metric labels on axis | boolean | false |
|
|
240
|
+
| scale | Scales up the chart. For example: scale 1/100 => `scale: 100` | number | - |
|
|
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 |
|
|
245
|
+
| title | Shows chart title | string | - |
|
|
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 |
|
|
247
|
+
| titleColor | Color of the title | string | #FFFFFF |
|
|
248
|
+
| titlePosition | Position of the title | string | 0 0 0 |
|
|
249
|
+
| animation | Animates chart | boolean | false |
|
|
250
|
+
| dur | Duration of the animation(ms) | number | 2000 |
|
|
251
|
+
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - |
|
|
252
252
|
|
|
253
253
|
#### Data format example
|
|
254
254
|
```json
|
|
@@ -265,27 +265,27 @@ This component shows a city chart.
|
|
|
265
265
|
|
|
266
266
|
#### API
|
|
267
267
|
|
|
268
|
-
| Property
|
|
269
|
-
|
|
|
270
|
-
| from
|
|
271
|
-
| absolute
|
|
272
|
-
| width | Width of the entire city.
|
|
273
|
-
| depth | Depth of the entire city.
|
|
274
|
-
| split | Algoritm to split rectangle in buildings: naive, pivot
|
|
275
|
-
| farea | Field in data items to represent as building area
|
|
276
|
-
| fmaxarea
|
|
277
|
-
| fheight
|
|
278
|
-
| titles
|
|
279
|
-
| building_color
|
|
280
|
-
| base
|
|
281
|
-
| base_thick
|
|
282
|
-
| base_color
|
|
283
|
-
| border
|
|
284
|
-
| extra | Extra factor for total area with respect to built area
|
|
285
|
-
| zone_elevation
|
|
286
|
-
| unicolor
|
|
287
|
-
| wireframe
|
|
288
|
-
| data
|
|
268
|
+
| Property | Description | Type | Default value |
|
|
269
|
+
| -------------- | --------------------------------------------------------------------------------------------------- | ---------------------- | ------------- |
|
|
270
|
+
| from | The treebuilder entity ID where is the data for the chart | string | - |
|
|
271
|
+
| absolute | Absolute size (width and depth will be used for proportions) | boolean | false |
|
|
272
|
+
| width | Width of the entire city. | number | 20 |
|
|
273
|
+
| depth | Depth of the entire city. | number | 20 |
|
|
274
|
+
| split | Algoritm to split rectangle in buildings: naive, pivot | (naive or pivot) | naive |
|
|
275
|
+
| farea | Field in data items to represent as building area | string | area |
|
|
276
|
+
| fmaxarea | Field in data items to represent as building max_area | string | max_area |
|
|
277
|
+
| fheight | Field in data items to represent as building height | string | height |
|
|
278
|
+
| titles | Titles on top of the buildings when hovering | boolean | true |
|
|
279
|
+
| building_color | Color of the buildings | color | #E6B9A1 |
|
|
280
|
+
| base | build the base or not | boolean | true |
|
|
281
|
+
| base_thick | Base thickness | number | 0.2 |
|
|
282
|
+
| base_color | Base color | color | #98e690 |
|
|
283
|
+
| border | Size of border around buildings (streets are built on it) | number | 1 |
|
|
284
|
+
| extra | Extra factor for total area with respect to built area | number | 1.4 |
|
|
285
|
+
| zone_elevation | Zone: elevation for each "depth" of quarters, over the previous one | number | 1 |
|
|
286
|
+
| unicolor | Unique color for each zone | boolean | false |
|
|
287
|
+
| wireframe | Show materials as wireframe | boolean | false |
|
|
288
|
+
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - |
|
|
289
289
|
|
|
290
290
|
#### Data format example
|
|
291
291
|
```json
|
|
@@ -304,24 +304,48 @@ This component shows a city in boats.
|
|
|
304
304
|
|
|
305
305
|
#### API
|
|
306
306
|
|
|
307
|
-
| Property
|
|
308
|
-
|
|
|
309
|
-
| from
|
|
310
|
-
| area
|
|
311
|
-
| width
|
|
312
|
-
| depth
|
|
313
|
-
| height
|
|
314
|
-
|
|
|
315
|
-
|
|
|
316
|
-
|
|
|
317
|
-
|
|
|
318
|
-
|
|
|
319
|
-
|
|
|
320
|
-
|
|
|
321
|
-
|
|
|
322
|
-
|
|
|
323
|
-
|
|
|
324
|
-
|
|
|
307
|
+
| Property | Description | Type | Default value |
|
|
308
|
+
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | ------------- |
|
|
309
|
+
| from | The treebuilder entity ID where is the data for the chart | string | - |
|
|
310
|
+
| area | Field in data items to represent as building area. **DON'T USE IT WITH WIDTH/DEPTH PARAMETERS**. | string | - |
|
|
311
|
+
| width | Field in data items to represent as building area. **DON'T USE IT WITH AREA PARAMETERS**. | string | width |
|
|
312
|
+
| depth | Field in data items to represent as building area. **DON'T USE IT WITH AREA PARAMETERS**. | string | depth |
|
|
313
|
+
| height | Field in data items to represent as building height | string | height |
|
|
314
|
+
| minBuildingHeight | Min value for the building height | number | 0.03 |
|
|
315
|
+
| maxBuildingHeight | Max value for the building height | number | 2 |
|
|
316
|
+
| color | Field in data items to represent the color of the buildings as HSL heatmap (or categoric) | string | - |
|
|
317
|
+
| building_separation | Separation of the buildings by a numeric factor | number | 0.25 |
|
|
318
|
+
| legend_lookat | Element that the legend will follow in terms of rotation | string | `[camera]` |
|
|
319
|
+
| legend_scale | Scale for the legen d | number | 1 |
|
|
320
|
+
| metricsInfoId | Id of the HTML entity where the metrics information (max, min and avg) will be displayed | string | - |
|
|
321
|
+
| numericColorLegendId | Id of the color legend when numeric to hide/show | string | - |
|
|
322
|
+
| highlightQuarter | Option to highlight a quarter when a building is clicked | boolean | false |
|
|
323
|
+
| border | Size of border around buildings (streets are built on it) | number | 0.5 |
|
|
324
|
+
| extra | Extra factor for total area with respect to built area | number | 1.0 |
|
|
325
|
+
| zone_elevation | Zone: elevation for each "depth" of quarters, over the previous one, ABSOLUTE value (scale does not affects this parameter) | number | 0.3 |
|
|
326
|
+
| building_color | Color of the buildings | color | #E6B9A1 |
|
|
327
|
+
| buildingAlpha | Alpha of the buildings - opacity | number | 1 |
|
|
328
|
+
| base_color | Quarter color | color | #98e690 |
|
|
329
|
+
| baseAlpha | Quarter alpha - opacity | number | 1 |
|
|
330
|
+
| gradientBaseColor | Quarter color following a green gradient from hsl(140, 100%, 15%) to hsl(140, 100%, 100%) | boolean | false |
|
|
331
|
+
| data | Data to show with the chart. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - |
|
|
332
|
+
| field | Field of the data that will define the tree (**DON'T USE WITH TREEBUILDER**) | string | `uid` |
|
|
333
|
+
| autoscale | Force the scale of the boats-city in a fit space (**Only in x and z axis**), it also affects to the animation¡ | boolean | false |
|
|
334
|
+
| autoscaleSizeX | Max size (absolute units) in x-axis for the autoscale | number | 3 |
|
|
335
|
+
| autoscaleSizeZ | Max size (absolute units) in z-axis for the autoscale | number | 3 |
|
|
336
|
+
| treeLayout | New layout that forms trees - **WIP** for strictly hierarchy data | boolean | false |
|
|
337
|
+
| treeFixQuarterHeight | **Only when treeLayout activated**: Fix the position of the quarters in a defined height | boolean | false |
|
|
338
|
+
| treeQuartersLevelHeight | **Only when treeLayout and treeFixQuarterHeight activated**: Distance where the quarters will be fixed | number | 0.2 |
|
|
339
|
+
| treeHideOneSonQuarters | **Only when treeLayout activated**: Hide quarters with only one son, this does not show empty quarters at the top of the city | boolean | false |
|
|
340
|
+
| wireframeByRepeatedField | If a building share the same value of the field selected in this parameter, it will be printed as a wireframe | string | - |
|
|
341
|
+
| transparency80ByRepeatedField | If a building share the same value of the field selected in this parameter, it will be printed with opacity 0.8 **IMPORTANT TO DEFINE THE RENDERER OF A-FRAME WITH sortObjects set at true** | string | - |
|
|
342
|
+
| transparency20ByRepeatedField | If a building share the same value of the field selected in this parameter, it will be printed with opacity 0.2 **IMPORTANT TO DEFINE THE RENDERER OF A-FRAME WITH sortObjects set at true** | string | - |
|
|
343
|
+
| highlightBuildingByField | Field that will determine if a building will be highlighted (by putting it color to yellow) if share the same value to the building clicked | string | - |
|
|
344
|
+
| highlightBuildingByFieldColor | Color for highlighting the previous attribute | string | white |
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
325
349
|
|
|
326
350
|
#### Data format example
|
|
327
351
|
```json
|
|
@@ -341,15 +365,15 @@ This component creates a terrain using vertices data.
|
|
|
341
365
|
|
|
342
366
|
#### API
|
|
343
367
|
|
|
344
|
-
| Property
|
|
345
|
-
|
|
|
346
|
-
| width | Width of the terrain
|
|
347
|
-
| height
|
|
348
|
-
| segmentsWidth
|
|
349
|
-
| segmentsHeight
|
|
350
|
-
| color | Color of the terrain
|
|
351
|
-
| filled
|
|
352
|
-
| data
|
|
368
|
+
| Property | Description | Type | Default value |
|
|
369
|
+
| -------------- | ---------------------------------- | ------- | ------------- |
|
|
370
|
+
| width | Width of the terrain | number | 1 |
|
|
371
|
+
| height | Height of the terrain | number | 1 |
|
|
372
|
+
| segmentsWidth | Number of width segments | number | 1 |
|
|
373
|
+
| segmentsHeight | Number of height segments | number | 1 |
|
|
374
|
+
| color | Color of the terrain | string | #FFFFFF |
|
|
375
|
+
| filled | Fill the terrain | boolean | false |
|
|
376
|
+
| data | Data about vertices of the terrain | array | - |
|
|
353
377
|
|
|
354
378
|
#### Data Format
|
|
355
379
|
Data length must be the same as the vertices = segmentsWidth x segmentsHeight.
|
|
@@ -391,29 +415,31 @@ This component shows a network chart.
|
|
|
391
415
|
|
|
392
416
|
#### API
|
|
393
417
|
|
|
394
|
-
| Property
|
|
395
|
-
|
|
|
396
|
-
| nodeLegend
|
|
397
|
-
| linkLegend
|
|
398
|
-
|
|
|
399
|
-
|
|
|
400
|
-
|
|
|
401
|
-
|
|
|
402
|
-
|
|
|
403
|
-
|
|
|
404
|
-
|
|
|
405
|
-
|
|
|
406
|
-
|
|
|
407
|
-
|
|
|
408
|
-
|
|
|
409
|
-
|
|
|
410
|
-
|
|
|
411
|
-
|
|
|
412
|
-
|
|
|
413
|
-
|
|
|
414
|
-
|
|
|
415
|
-
|
|
|
416
|
-
|
|
|
418
|
+
| Property | Description | Type | Parse | Default value |
|
|
419
|
+
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | ------------- | ------------- |
|
|
420
|
+
| nodeLegend | Shows a legend when hovering a node. | boolean | - | false |
|
|
421
|
+
| linkLegend | Shows a legend when hovering a link. **Important**: will only work if nodeLabel is different from "" | boolean | - | false |
|
|
422
|
+
| legend_lookat | Element that the legend will follow in terms of rotation | string | `[camera]` |
|
|
423
|
+
| legend_scale | Scale for the legend | number | 1 |
|
|
424
|
+
| from | The filterdata/querier entity ID where the data for the chart is. | string | - | - |
|
|
425
|
+
| data | Complete data to show in the chart. Link information will be obtained from the information inside the nodes. **Important**: Using this attribute will disable the `from`, `nodes` and `links` attributes. | JSON (list of objects) | - | - |
|
|
426
|
+
| nodes | Nodes data to show in the chart. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - | - |
|
|
427
|
+
| links | Links data to show in the chart. **Important**: Using this attribute will disable the `from` attribute. | JSON (list of objects) | - | - |
|
|
428
|
+
| nodeId | Field of data/nodes that will define each node of the network. (Make sure that this field has unique values!) | string | - | nodeId |
|
|
429
|
+
| nodeLabel | Field of data/nodes or property that will be shown in the legend of each node of the network. It accepts **numbers**, **strings** or **functions**. | - | parseAccessor | id |
|
|
430
|
+
| linkId | Field of data that will define the relation between different nodes of the network. **Important**: Used when adding complete data, to generate links. | string | - | - |
|
|
431
|
+
| linkSource | Field of data/links that will define the links' sources. | string | - | source |
|
|
432
|
+
| linkTarget | Field of data/links that will define the links' targets. | string | - | target |
|
|
433
|
+
| nodeVal | Field of data/nodes or property that will define the size of the spheres. It accepts **numbers**, **strings** or **functions**. | - | parseAccessor | size |
|
|
434
|
+
| nodeRelSize | Volume per nodeVal unit, it adjusts the size of the spheres my multiplying their nodeVal. | number | - | 4 |
|
|
435
|
+
| nodeColor | Field of data/nodes or property that will define the color of each node. It accepts **numbers**, **strings** or **functions**. | - | parseAccessor | color |
|
|
436
|
+
| nodeAutoColorBy | Field of data/nodes or property that will define the color of each node by coloring those with the same field equally. It accepts **numbers**, **strings** or **functions**. **Important**: It only affects nodes without a nodeColor property. | - | parseAccessor | - |
|
|
437
|
+
| nodeResolution | Defines the number of slice segments in the sphere's circumference in the nodes | number | 8 | - |
|
|
438
|
+
| linkColor | Field of data/links that will define the color of each link. It accepts **numbers**, **strings** or **functions**. | - | parseAccessor | color |
|
|
439
|
+
| linkAutoColorBy | Field of data/links that will define the color of each link of the network by coloring those with the same field equally. It accepts **numbers**, **strings** or **functions**. **Important**: It only affects links without a linkColor property. | - | parseAccessor | - |
|
|
440
|
+
| linkWidth | Defines the width of the links. It accepts **numbers**, **strings** or **functions**. A value of 0 will render a line. | - | parseAccessor | 0 |
|
|
441
|
+
| linkResolution | Defines the number of radial segments in the line cylinder's geometry in each link only if the linkWidth is positive. | number | - | 6 |
|
|
442
|
+
| linkLabel | Field of data/links or property that will be shown in the legend of each link of the network. It cannot be "source" or "target", nor "linkSource" or "linkTarget". It accepts **numbers**, **strings** or **functions**. | - | parseAccessor | "" |
|
|
417
443
|
|
|
418
444
|
|
|
419
445
|
|