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.
Files changed (53) hide show
  1. package/components/filters/babia-selector.js +33 -21
  2. package/components/filters/babia-treebuilder.js +14 -13
  3. package/components/others/babia-navigator.js +94 -37
  4. package/components/others/babia-poster.js +369 -368
  5. package/components/others/babia-slider.js +63 -25
  6. package/components/others/common.js +60 -80
  7. package/components/visualizers/babia-doughnut.js +2 -1
  8. package/components/visualizers/babia-html.js +95 -118
  9. package/components/visualizers/babia-map.js +796 -0
  10. package/components/visualizers/babia-pie.js +2 -1
  11. package/dist/aframe-babia-components.js +7247 -6488
  12. package/dist/aframe-babia-components.min.js +1 -1
  13. package/dist/aframe-babia-components.min.js.LICENSE.txt +1 -1
  14. package/dist/aframe-babia-components.min.js.map +1 -1
  15. package/docs/APIs/OTHERS.md +4 -4
  16. package/docs/CONTRIBUTING.md +34 -25
  17. package/docs/RELEASE_NOTES.md +13 -2
  18. package/docs/Tutorials/HOW_TO_USE_BABIA_MAP.md +554 -0
  19. package/docs/Tutorials/ejemplo1.png +0 -0
  20. package/docs/Tutorials/ejemplo2.png +0 -0
  21. package/docs/Tutorials/ejemplo3.png +0 -0
  22. package/docs/Tutorials/pyramids.png +0 -0
  23. package/docs/Tutorials/singular.png +0 -0
  24. package/docs/Tutorials/terrain-vr-scenario.png +0 -0
  25. package/docs/Tutorials/terrain.png +0 -0
  26. package/examples/boats/boats2/data.json +206 -13
  27. package/examples/demos/map-terrain/assets/360-panorama.jpg +0 -0
  28. package/examples/demos/map-terrain/assets/floor-texture.jpg +0 -0
  29. package/examples/demos/map-terrain/assets/mapTextures/512sample.webp +0 -0
  30. package/examples/demos/map-terrain/assets/mapTextures/defaultTexture.webp +0 -0
  31. package/examples/demos/map-terrain/assets/maps/defaultMap.png +0 -0
  32. package/examples/demos/map-terrain/assets/maps/example.png +0 -0
  33. package/examples/demos/map-terrain/assets/metalic-texture.jpg +0 -0
  34. package/examples/demos/map-terrain/dist/aframe-lounge-component.min.js +1 -0
  35. package/examples/demos/map-terrain/index.html +82 -0
  36. package/examples/demos/map-terrain/index_gallery.html +188 -0
  37. package/examples/demos/map-terrain/main_data.json +1 -0
  38. package/examples/demos/map-terrain/pyramids.html +130 -0
  39. package/examples/js/aframe-orbit-controls-component.js +1060 -0
  40. package/examples/ui/pie/index.html +0 -1
  41. package/index.html +15 -0
  42. package/index.js +1 -0
  43. package/package.json +5 -5
  44. package/tests/screenshots/other_snapshots.js/pyramids.png +0 -0
  45. package/tests/screenshots/other_snapshots.js/singular.png +0 -0
  46. package/tests/screenshots/other_snapshots.js/terrain-vr-scenario.png +0 -0
  47. package/tests/screenshots/other_snapshots.js/terrain.png +0 -0
  48. package/webpack.common.js +1 -1
  49. package/webpack.dev.js +17 -0
  50. package/examples/demos/citations/babiaxr.json +0 -1
  51. package/examples/demos/citations/citations.html +0 -72
  52. package/examples/demos/citations/music.mp3 +0 -0
  53. package/examples/demos/citations/stl.js +0 -28
@@ -0,0 +1,130 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title>BabiaXR Demo - Map Terrains </title>
7
+ <meta name="description" content="BabiaXR Map Terrain Gallery">
8
+ </meta>
9
+ <script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v7.2.0/dist/aframe-extras.min.js"></script>
11
+ <script src="https://unpkg.com/aframe-environment-component@1.5.x/dist/aframe-environment-component.min.js"></script>
12
+ <script
13
+ src="https://unpkg.com/aframe-text-geometry-component@0.5.2/dist/aframe-text-geometry-component.min.js"></script>
14
+ <script
15
+ src="https://unpkg.com/aframe-geometry-merger-component/dist/aframe-geometry-merger-component.min.js"></script>
16
+ <script src="https://rawgit.com/zcanter/aframe-gradient-sky/master/dist/gradientsky.min.js"></script>
17
+ <script src="https://supereggbert.github.io/aframe-htmlembed-component/dist/build.js"></script>
18
+ <script src="dist/aframe-lounge-component.min.js"></script>
19
+ <script src="../../../dist/aframe-babia-components.js"></script>
20
+ <link rel="stylesheet" href="../../assets/gitlab-corner.css">
21
+ <style>
22
+ h1 {
23
+ color: #AAAAAA;
24
+ font-family: 'Archivo', sans-serif;
25
+ font-size: 45px;
26
+ text-align: center;
27
+ text-shadow: black 0.1em 0.1em 0.2em
28
+ }
29
+
30
+ p {
31
+ color: #444444;
32
+ font-family: 'Archivo', sans-serif;
33
+ font-size: 26px;
34
+ text-align: justify;
35
+ text-shadow: #AAAAAA 0.1em 0.1em 0.2em
36
+ }
37
+ </style>
38
+ </head>
39
+
40
+ <body>
41
+ <a-scene id="scene" light="defaultLightsEnabled: false">
42
+
43
+ <a-entity environment="preset: egypt"></a-entity>
44
+
45
+ <!-- 3D Components -->
46
+ <a-entity class="collidable" babia-map="height: 8; width: 8; bumpScale: 1; zoom: 13; x: 4804; y: 3380; textureType: Satellite; handsUi: false;
47
+ entityRightButton: {&quot;position&quot;:&quot;4.5 2 3&quot;, &quot;rotation&quot;:&quot;-90 0 0&quot;};
48
+ entityLeftButton: {&quot;position&quot;:&quot;4.5 2 1.5&quot;, &quot;rotation&quot;:&quot;-90 0 0&quot;};
49
+
50
+ rightButtons: [
51
+ {&quot;height&quot;:&quot;0.5&quot;, &quot;width&quot;:&quot;1&quot;, &quot;label&quot;:&quot;Zoom In&quot;, &quot;color&quot;:&quot;blue&quot;, &quot;position&quot;:&quot;0 0.75 -0.3&quot;, &quot;rotation&quot;:&quot;0 0 0&quot;, &quot;textSize&quot;:3, &quot;className&quot;:&quot;zoomInBtn&quot;},
52
+ {&quot;height&quot;:&quot;0.5&quot;, &quot;width&quot;:&quot;1&quot;, &quot;label&quot;:&quot;Zoom Out&quot;, &quot;color&quot;:&quot;purple&quot;, &quot;position&quot;:&quot;0 0 -0.3&quot;, &quot;rotation&quot;:&quot;0 0 0&quot;, &quot;textSize&quot;:3, &quot;className&quot;:&quot;zoomOutBtn&quot;}
53
+ ];
54
+
55
+ crossEntity: {&quot;position&quot;:&quot;1 0.375 0&quot;, &quot;rotation&quot;:&quot;0 0 0&quot;};
56
+ crossButtons: [
57
+ {&quot;height&quot;:&quot;0.2&quot;, &quot;width&quot;:&quot;0.2&quot;, &quot;label&quot;:&quot;^&quot;, &quot;color&quot;:&quot;darkgray&quot;, &quot;position&quot;:&quot;0 0.2 0&quot;, &quot;textSize&quot;:3, &quot;className&quot;:&quot;dpadUp&quot;},
58
+ {&quot;height&quot;:&quot;0.2&quot;, &quot;width&quot;:&quot;0.2&quot;, &quot;label&quot;:&quot;v&quot;, &quot;color&quot;:&quot;darkgray&quot;, &quot;position&quot;:&quot;0 -0.2 0&quot;, &quot;textSize&quot;:3, &quot;className&quot;:&quot;dpadDown&quot;},
59
+ {&quot;height&quot;:&quot;0.2&quot;, &quot;width&quot;:&quot;0.2&quot;, &quot;label&quot;:&quot;&lt;&quot;, &quot;color&quot;:&quot;darkgray&quot;, &quot;position&quot;:&quot;-0.3 0 0&quot;, &quot;textSize&quot;:3, &quot;className&quot;:&quot;dpadLeft&quot;},
60
+ {&quot;height&quot;:&quot;0.2&quot;, &quot;width&quot;:&quot;0.2&quot;, &quot;label&quot;:&quot;&gt;&quot;, &quot;color&quot;:&quot;darkgray&quot;, &quot;position&quot;:&quot;0.3 0 0&quot;, &quot;textSize&quot;:3, &quot;className&quot;:&quot;dpadRight&quot;}
61
+ ];
62
+
63
+ leftButtons: [
64
+ {&quot;height&quot;:&quot;0.5&quot;, &quot;width&quot;:&quot;1&quot;, &quot;label&quot;:&quot;Next Layer&quot;, &quot;color&quot;:&quot;green&quot;, &quot;position&quot;:&quot;0 0.75 -0.3&quot;, &quot;rotation&quot;:&quot;0 0 0&quot;, &quot;textSize&quot;:3, &quot;className&quot;:&quot;layerUpBtn&quot;},
65
+ {&quot;height&quot;:&quot;0.5&quot;, &quot;width&quot;:&quot;1&quot;, &quot;label&quot;:&quot;Previous Layer&quot;, &quot;color&quot;:&quot;orange&quot;, &quot;position&quot;:&quot;0 0 -0.3&quot;, &quot;rotation&quot;:&quot;0 0 0&quot;, &quot;textSize&quot;:3, &quot;className&quot;:&quot;layerDownBtn&quot;}
66
+ ];
67
+
68
+ coordinatesText: {&quot;label&quot;:&quot;Coordinates: &quot;,&quot;color&quot;:&quot;black&quot;,&quot;position&quot;:&quot;-0.5 1.2 -0.3&quot;,&quot;rotation&quot;:&quot;0 0 0&quot;,&quot;textSize&quot;:3};
69
+ " position="3 5 -6" rotation="90 0 0">
70
+ </a-entity>
71
+
72
+ <!-- Lights -->
73
+ <a-entity light="color: #fff ; type: ambient; intensity: 0.85"></a-entity>
74
+
75
+ <!-- Controls and Camera -->
76
+ <a-entity movement-controls="fly: false" position="3 3 0">
77
+ <a-entity camera position="0 0 0" look-controls></a-entity>
78
+ <a-entity cursor="rayOrigin:mouse" raycaster="objects: .babiaxraycasterclass, .collidable">
79
+ </a-entity>
80
+ <a-entity id="rightHand" laser-controls="hand: right" oculus-touch-controls="hand: right" raycaster="objects: .babiaxraycasterclass, .collidable">
81
+ </a-entity>
82
+ <a-entity id="leftHand" laser-controls="hand: left" oculus-touch-controls="hand: left" raycaster="objects: .collidable"></a-entity>
83
+ </a-entity>
84
+ </a-scene>
85
+
86
+ <!-- TOKEN FORM-->
87
+ <form id="token-form" style="position: absolute; top: 20px; left: 30px; z-index: 999;">
88
+ <input type="text" id="token-input" placeholder="Introduce tu token de Mapbox" style="width: 200px;" />
89
+ <button type="submit">Guardar</button>
90
+ </form>
91
+
92
+ <div class="gitlab-corner-wrapper"><a
93
+ href="https://gitlab.com/babiaxr/aframe-babia-components/-/blob/master/examples/demos/map-terrain/index_gallery.html"
94
+ class="gitlab-corner" aria-label="View source on GitLab"><svg id="logo_art" data-name="logo art"
95
+ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 586 559">
96
+ <g id="g44">
97
+ <path id="path46" class="cls-1"
98
+ d="M461.17,301.83l-18.91-58.12L404.84,128.43a6.47,6.47,0,0,0-12.27,0L355.15,243.64H230.82L193.4,128.43a6.46,6.46,0,0,0-12.26,0L143.78,243.64l-18.91,58.19a12.88,12.88,0,0,0,4.66,14.39L293,435,456.44,316.22a12.9,12.9,0,0,0,4.73-14.39" />
99
+ </g>
100
+ <g id="g48">
101
+ <path id="path50" class="cls-2"
102
+ d="M293,434.91h0l62.16-191.28H230.87L293,434.91Z" />
103
+ </g>
104
+ <g id="g56">
105
+ <path id="path58" class="cls-1" d="M293,434.91,230.82,243.63h-87L293,434.91Z" />
106
+ </g>
107
+ <g id="g64">
108
+ <path id="path66" class="cls-3"
109
+ d="M143.75,243.69h0l-18.91,58.12a12.88,12.88,0,0,0,4.66,14.39L293,435,143.75,243.69Z" />
110
+ </g>
111
+ <g id="g72">
112
+ <path id="path74" class="cls-2"
113
+ d="M143.78,243.69h87.11L193.4,128.49a6.47,6.47,0,0,0-12.27,0l-37.35,115.2Z" />
114
+ </g>
115
+ <g id="g76">
116
+ <path id="path78" class="cls-1"
117
+ d="M293,434.91l62.16-191.28H442.3L293,434.91Z" />
118
+ </g>
119
+ <g id="g80">
120
+ <path id="path82" class="cls-3"
121
+ d="M442.24,243.69h0l18.91,58.12a12.85,12.85,0,0,1-4.66,14.39L293,434.91l149.2-191.22Z" />
122
+ </g>
123
+ <g id="g84">
124
+ <path id="path86" class="cls-2"
125
+ d="M442.28,243.69h-87.1l37.42-115.2a6.46,6.46,0,0,1,12.26,0l37.42,115.2Z" />
126
+ </g>
127
+ </svg></a></div>
128
+ </body>
129
+
130
+ </html>