aframe-babia-components 1.2.8 → 1.3.0
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-selector.js +33 -21
- package/components/filters/babia-treebuilder.js +14 -13
- package/components/others/babia-navigator.js +94 -37
- package/components/others/babia-poster.js +369 -368
- package/components/others/babia-slider.js +63 -25
- package/components/others/common.js +60 -80
- package/components/visualizers/babia-doughnut.js +2 -1
- package/components/visualizers/babia-html.js +95 -118
- package/components/visualizers/babia-map.js +796 -0
- package/components/visualizers/babia-pie.js +2 -1
- package/dist/aframe-babia-components.js +7247 -6488
- package/dist/aframe-babia-components.min.js +1 -1
- package/dist/aframe-babia-components.min.js.LICENSE.txt +1 -1
- package/dist/aframe-babia-components.min.js.map +1 -1
- package/docs/APIs/OTHERS.md +4 -4
- package/docs/CONTRIBUTING.md +34 -25
- package/docs/RELEASE_NOTES.md +13 -2
- package/docs/Tutorials/HOW_TO_USE_BABIA_MAP.md +554 -0
- package/docs/Tutorials/ejemplo1.png +0 -0
- package/docs/Tutorials/ejemplo2.png +0 -0
- package/docs/Tutorials/ejemplo3.png +0 -0
- package/docs/Tutorials/pyramids.png +0 -0
- package/docs/Tutorials/singular.png +0 -0
- package/docs/Tutorials/terrain-vr-scenario.png +0 -0
- package/docs/Tutorials/terrain.png +0 -0
- package/examples/boats/boats2/data.json +206 -13
- package/examples/demos/map-terrain/assets/360-panorama.jpg +0 -0
- package/examples/demos/map-terrain/assets/floor-texture.jpg +0 -0
- package/examples/demos/map-terrain/assets/mapTextures/512sample.webp +0 -0
- package/examples/demos/map-terrain/assets/mapTextures/defaultTexture.webp +0 -0
- package/examples/demos/map-terrain/assets/maps/defaultMap.png +0 -0
- package/examples/demos/map-terrain/assets/maps/example.png +0 -0
- package/examples/demos/map-terrain/assets/metalic-texture.jpg +0 -0
- package/examples/demos/map-terrain/dist/aframe-lounge-component.min.js +1 -0
- package/examples/demos/map-terrain/index.html +82 -0
- package/examples/demos/map-terrain/index_gallery.html +188 -0
- package/examples/demos/map-terrain/main_data.json +1 -0
- package/examples/demos/map-terrain/pyramids.html +130 -0
- package/examples/js/aframe-orbit-controls-component.js +1060 -0
- package/examples/ui/pie/index.html +0 -1
- package/index.html +15 -0
- package/index.js +1 -0
- package/package.json +5 -5
- package/tests/screenshots/other_snapshots.js/pyramids.png +0 -0
- package/tests/screenshots/other_snapshots.js/singular.png +0 -0
- package/tests/screenshots/other_snapshots.js/terrain-vr-scenario.png +0 -0
- package/tests/screenshots/other_snapshots.js/terrain.png +0 -0
- package/webpack.common.js +1 -1
- package/webpack.dev.js +17 -0
- package/examples/demos/citations/babiaxr.json +0 -1
- package/examples/demos/citations/citations.html +0 -72
- package/examples/demos/citations/music.mp3 +0 -0
- package/examples/demos/citations/stl.js +0 -28
package/docs/APIs/OTHERS.md
CHANGED
|
@@ -25,7 +25,7 @@ This component lets us select the data and the metrics that we want to show in t
|
|
|
25
25
|
| maxPerRow | Max items per row, if more, a breakline will be added | number | 5 |
|
|
26
26
|
| linesSeparation | Distance between lines of the UI | number | 0.3 |
|
|
27
27
|
| customQuerierLabel | Custom label of the first row when there are more than one querier | string | Data |
|
|
28
|
-
| customAttributeSwitch |
|
|
28
|
+
| customAttributeSwitch | Attributes to remove/add to the target. Format **attr:value**, example: **babia-ui="customAttributeSwitch: wireframe:true, color:blue"** | array | - |
|
|
29
29
|
| customAttributeLabel | Custom label for the attributes to represent in the customAttributeSwitch row. Format **attr:label**, example: **babia-ui="customAttributeSwitch: trasnparency20byBuildingField:Transparency, wireframeByBuildingField:Wireframe"** | array | - |
|
|
30
30
|
|
|
31
31
|
|
|
@@ -207,7 +207,7 @@ This component uses the queryes component in order to change the time range in t
|
|
|
207
207
|
|
|
208
208
|
### **babia-experiment component**
|
|
209
209
|
|
|
210
|
-
**We
|
|
210
|
+
**We recommend to follow [this tutorial](../Tutorials/how_to_prepare_an_experiment.md) for using this component**
|
|
211
211
|
|
|
212
212
|
| Property | Description | Type | Default value |
|
|
213
213
|
| ------------------------ | ---------------------------------------------------------------------------- | ------------ | ------------------ |
|
|
@@ -233,7 +233,7 @@ This component uses the queryes component in order to change the time range in t
|
|
|
233
233
|
|
|
234
234
|
### **babia-task component**
|
|
235
235
|
|
|
236
|
-
**We
|
|
236
|
+
**We recommend to follow [this tutorial](../Tutorials/how_to_prepare_an_experiment.md) for using this component**
|
|
237
237
|
|
|
238
238
|
**This component only works when using the babia-experiment component, as a child**
|
|
239
239
|
|
|
@@ -258,6 +258,6 @@ This component uses the queryes component in order to change the time range in t
|
|
|
258
258
|
|
|
259
259
|
| Property | Description | Type | Default value |
|
|
260
260
|
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | ------------- |
|
|
261
|
-
| html | HTML
|
|
261
|
+
| html | HTML stringified to represent in 3D | string | '' |
|
|
262
262
|
| distanceLevels | Distance between children levels | float | 0.7 |
|
|
263
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/CONTRIBUTING.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Contributing to BabiaXR
|
|
2
2
|
|
|
3
|
-
This guide collects information about how to deploy
|
|
3
|
+
This guide collects information about how to deploy BabiaXR locally, how to create a new component and add it to the BabiaXR set and how to create the distribution files.
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> :warning: **IMPORTANT** : BabiaXR is a set of A-Frame components based on [**
|
|
6
|
+
> :warning: **IMPORTANT** : BabiaXR is a set of A-Frame components based on [**angle**](https://www.npmjs.com/package/angle), for further information, please visit the angle main page.
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -22,34 +22,37 @@ A high level overview of our contributing guidelines.
|
|
|
22
22
|
|
|
23
23
|
## Contributing process to the project
|
|
24
24
|
|
|
25
|
-
BabiaXR is an open-source project hosted on [GitLab](https://gitlab.com/babiaxr)
|
|
25
|
+
BabiaXR is an open-source project hosted on [GitLab](https://gitlab.com/babiaxr).
|
|
26
|
+
All the information about the tasks, the repositories with the code and the webpage are there, if you are on GitHub, please visit https://gitlab.com/babiaxr.
|
|
26
27
|
|
|
27
28
|
### Team organization
|
|
28
29
|
|
|
29
|
-
The core developers organize the development using
|
|
30
|
+
The core developers organize the development using sprints of two weeks of duration, each sprint is defined as a Milestone of GitLab. In each milestone, some tasks are worked on, and the organization of the tasks is as follows:
|
|
30
31
|
|
|
31
32
|
- Topics/Subjects of the tasks are defined as issues in GitLab with the `Theme` tag.
|
|
32
|
-
- Epics are big and complex tasks that have smaller and defined subtasks as children, each epic has a topic assigned. Once all the tasks of an epic are resolved, the epic will be resolved as well.
|
|
33
|
+
- Epics are big and complex tasks that have smaller and defined subtasks as children, each epic has a topic assigned. Once all the tasks of an epic are resolved, the epic will be resolved as well. Epics defined as issues in GitLab with the `Epic` tag.
|
|
33
34
|
- The common tasks are issues on GitLab and these issues depend on an epic or are a bug/feature.
|
|
34
35
|
|
|
35
|
-
####
|
|
36
|
+
#### Sprints/Milestones
|
|
36
37
|
|
|
37
|
-
Please, for further information about the
|
|
38
|
+
Please, for further information about the sprints, go to the [RELEASE_NOTES.md](https://gitlab.com/babiaxr/aframe-babia-components/-/blob/master/docs/RELEASE_NOTES.md) doc.
|
|
38
39
|
|
|
39
40
|
### Pending tasks
|
|
40
41
|
|
|
41
|
-
We follow a Kanban for each, hosted as a board on GitLab
|
|
42
|
+
We follow a Kanban process for each task, hosted as a board on GitLab.
|
|
43
|
+
In the "To Do" list there are the tasks that are prepared to do.
|
|
44
|
+
In order to see the tasks related to the current sprint/milestone, please filter the kanban/tasks list by milestones:
|
|
42
45
|
|
|
43
46
|
- Kanban: https://gitlab.com/groups/babiaxr/-/boards
|
|
44
47
|
- Tasks list: https://gitlab.com/groups/babiaxr/-/issues
|
|
45
48
|
|
|
46
|
-
### How to MR
|
|
49
|
+
### How to Merge Request (MR)
|
|
47
50
|
|
|
48
|
-
In order to submit a
|
|
51
|
+
In order to submit a MR, please follow the next steps:
|
|
49
52
|
|
|
50
53
|
1. Fork the target repository of BabiaXR on GitLab.
|
|
51
|
-
2. Do the development/action.
|
|
52
|
-
3. Submit a
|
|
54
|
+
2. Do the development/action (see next section).
|
|
55
|
+
3. Submit a MR referring the task/issue if the development resolves it.
|
|
53
56
|
|
|
54
57
|
## Deploy a dev server locally
|
|
55
58
|
|
|
@@ -88,16 +91,22 @@ The steps to reproduce and deploy a dev server for developing babiaXR are:
|
|
|
88
91
|
Each change in a file will automatically update the dev server.
|
|
89
92
|
|
|
90
93
|
**Warning notice:** `npm run ssldevall` will listen connections in 0.0.0.0,
|
|
91
|
-
which means "all network devices in this host, including
|
|
94
|
+
which means "all network devices in this host, including localhost".
|
|
92
95
|
This implies that the HTTPS server will accept connections from anywhere
|
|
93
|
-
in
|
|
94
|
-
devices (
|
|
95
|
-
with HTTPS access to the 8080 port
|
|
96
|
+
in the internet. While this is quite convenient for connecting external
|
|
97
|
+
devices (e.g., a VR device), it also exposes your directory to anyone
|
|
98
|
+
with HTTPS access to the 8080 port on your host. Use `ssldevall` at your own risk.
|
|
96
99
|
|
|
100
|
+
**Selection of browswer** The dev server will open the default browser.
|
|
101
|
+
If you want to run some other browser, you can run the command that the `ssldev` command will run, but with the browser you want to run. For example:
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
npx webpack-dev-server --config webpack.dev.js --open-app-name 'chromium'
|
|
105
|
+
```
|
|
97
106
|
|
|
98
107
|
## Build distribution files
|
|
99
108
|
|
|
100
|
-
In order to build a distribution release for
|
|
109
|
+
In order to build a distribution release for BabiaXR, just need to execute the next command:
|
|
101
110
|
|
|
102
111
|
```
|
|
103
112
|
npm run dist
|
|
@@ -109,7 +118,7 @@ Therefore, the command will generate two distribution files, `aframe-babia-compo
|
|
|
109
118
|
|
|
110
119
|
## Develop code in BabiaXR
|
|
111
120
|
|
|
112
|
-
In order to develop code for
|
|
121
|
+
In order to develop code for BabiaXR, e.g. a new component, you have to add it to the `index.js` file using `require` sintax:
|
|
113
122
|
|
|
114
123
|
```
|
|
115
124
|
// index.js file
|
|
@@ -135,11 +144,11 @@ To start testing, execute the next command:
|
|
|
135
144
|
```
|
|
136
145
|
npm run test
|
|
137
146
|
```
|
|
138
|
-
This will run all the test that you
|
|
147
|
+
This will run all the test that you have created in the `tests` folder.
|
|
139
148
|
|
|
140
|
-
When a test file includes to create
|
|
149
|
+
When a test file includes to create snapshots or videos, those will be saved into the `/screenshots` and `/videos` folders.
|
|
141
150
|
|
|
142
|
-
While development, if you want to
|
|
151
|
+
While development, if you want to execute some tests, you can run cypress using:
|
|
143
152
|
```
|
|
144
153
|
npm run devtest
|
|
145
154
|
```
|
|
@@ -153,10 +162,10 @@ or
|
|
|
153
162
|
npm run test:chrome
|
|
154
163
|
```
|
|
155
164
|
|
|
156
|
-
## Certificates for npm
|
|
165
|
+
## Certificates for npm run ssldev to work
|
|
157
166
|
|
|
158
167
|
This repository comes with certificates that are used by webpack to configure the HTTPS server.
|
|
159
|
-
They are self-signed, which means they need to be accepted in the browser:
|
|
168
|
+
They are self-signed, which means they need to be accepted in the browser: Usually you
|
|
160
169
|
will get a warning about certificates not being correct, and will be prompted to acept them.
|
|
161
170
|
These certificates have been built as follows:
|
|
162
171
|
|
|
@@ -167,7 +176,7 @@ openssl x509 -req -days 9999 -in csr.pem -signkey babia_key.pem -out babia_cert.
|
|
|
167
176
|
rm csr.pem
|
|
168
177
|
```
|
|
169
178
|
|
|
170
|
-
More details in [How to create a HTTPS server](https://nodejs.org/en/knowledge/HTTP/servers/how-to-create-a-HTTPS-server/)
|
|
179
|
+
More details in [How to create a HTTPS server](https://nodejs.org/en/knowledge/HTTP/servers/how-to-create-a-HTTPS-server/) (Node.js documentation).
|
|
171
180
|
|
|
172
|
-
We are using those certificates to avoid
|
|
181
|
+
We are using those certificates to avoid webpack generating new certificates with every new run,
|
|
173
182
|
which means having to accept them in browser with every new run.
|
package/docs/RELEASE_NOTES.md
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
# Release Notes for BabiaXR
|
|
2
2
|
|
|
3
|
-
This doc gathers all the information about the releases made by the
|
|
3
|
+
This doc gathers all the information about the releases made by the Sprints/Milestones of BabiaXR.
|
|
4
4
|
|
|
5
5
|
## Release notes
|
|
6
6
|
|
|
7
|
+
|
|
8
|
+
### NPM 1.3.0 version
|
|
9
|
+
|
|
10
|
+
`babia-map` added as a component.
|
|
11
|
+
|
|
12
|
+
[TUTORIAL](./Tutorials/HOW_TO_USE_BABIA_MAP.md)
|
|
13
|
+
|
|
14
|
+
### NPM 1.2.9 version
|
|
15
|
+
|
|
16
|
+
`babia-pie` & `babia-doughnut` Fix animation issue when more than one in the scene.
|
|
17
|
+
|
|
7
18
|
### NPM 1.2.8 version
|
|
8
19
|
|
|
9
20
|
`babia-boats` Improved with some attributes and bug fixes.
|
|
@@ -319,7 +330,7 @@ Selector adapted to all the components
|
|
|
319
330
|
|
|
320
331
|
|
|
321
332
|
|
|
322
|
-
##
|
|
333
|
+
## Sprints/Milestones
|
|
323
334
|
|
|
324
335
|
| Name | Start date | End Date | Information | Board | Release Notes | NPM version |
|
|
325
336
|
| -------- | ----------- | ---- | ----- | ------ | ------ | ------- |
|