aframe-babia-components 1.2.9 → 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-html.js +95 -118
- package/components/visualizers/babia-map.js +796 -0
- package/dist/aframe-babia-components.js +7249 -6492
- 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 +9 -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/charts/pie/index.html +0 -5
- 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
|
@@ -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: {"position":"4.5 2 3", "rotation":"-90 0 0"};
|
|
48
|
+
entityLeftButton: {"position":"4.5 2 1.5", "rotation":"-90 0 0"};
|
|
49
|
+
|
|
50
|
+
rightButtons: [
|
|
51
|
+
{"height":"0.5", "width":"1", "label":"Zoom In", "color":"blue", "position":"0 0.75 -0.3", "rotation":"0 0 0", "textSize":3, "className":"zoomInBtn"},
|
|
52
|
+
{"height":"0.5", "width":"1", "label":"Zoom Out", "color":"purple", "position":"0 0 -0.3", "rotation":"0 0 0", "textSize":3, "className":"zoomOutBtn"}
|
|
53
|
+
];
|
|
54
|
+
|
|
55
|
+
crossEntity: {"position":"1 0.375 0", "rotation":"0 0 0"};
|
|
56
|
+
crossButtons: [
|
|
57
|
+
{"height":"0.2", "width":"0.2", "label":"^", "color":"darkgray", "position":"0 0.2 0", "textSize":3, "className":"dpadUp"},
|
|
58
|
+
{"height":"0.2", "width":"0.2", "label":"v", "color":"darkgray", "position":"0 -0.2 0", "textSize":3, "className":"dpadDown"},
|
|
59
|
+
{"height":"0.2", "width":"0.2", "label":"<", "color":"darkgray", "position":"-0.3 0 0", "textSize":3, "className":"dpadLeft"},
|
|
60
|
+
{"height":"0.2", "width":"0.2", "label":">", "color":"darkgray", "position":"0.3 0 0", "textSize":3, "className":"dpadRight"}
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
leftButtons: [
|
|
64
|
+
{"height":"0.5", "width":"1", "label":"Next Layer", "color":"green", "position":"0 0.75 -0.3", "rotation":"0 0 0", "textSize":3, "className":"layerUpBtn"},
|
|
65
|
+
{"height":"0.5", "width":"1", "label":"Previous Layer", "color":"orange", "position":"0 0 -0.3", "rotation":"0 0 0", "textSize":3, "className":"layerDownBtn"}
|
|
66
|
+
];
|
|
67
|
+
|
|
68
|
+
coordinatesText: {"label":"Coordinates: ","color":"black","position":"-0.5 1.2 -0.3","rotation":"0 0 0","textSize":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>
|