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.
Files changed (52) 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-html.js +95 -118
  8. package/components/visualizers/babia-map.js +796 -0
  9. package/dist/aframe-babia-components.js +7249 -6492
  10. package/dist/aframe-babia-components.min.js +1 -1
  11. package/dist/aframe-babia-components.min.js.LICENSE.txt +1 -1
  12. package/dist/aframe-babia-components.min.js.map +1 -1
  13. package/docs/APIs/OTHERS.md +4 -4
  14. package/docs/CONTRIBUTING.md +34 -25
  15. package/docs/RELEASE_NOTES.md +9 -2
  16. package/docs/Tutorials/HOW_TO_USE_BABIA_MAP.md +554 -0
  17. package/docs/Tutorials/ejemplo1.png +0 -0
  18. package/docs/Tutorials/ejemplo2.png +0 -0
  19. package/docs/Tutorials/ejemplo3.png +0 -0
  20. package/docs/Tutorials/pyramids.png +0 -0
  21. package/docs/Tutorials/singular.png +0 -0
  22. package/docs/Tutorials/terrain-vr-scenario.png +0 -0
  23. package/docs/Tutorials/terrain.png +0 -0
  24. package/examples/boats/boats2/data.json +206 -13
  25. package/examples/charts/pie/index.html +0 -5
  26. package/examples/demos/map-terrain/assets/360-panorama.jpg +0 -0
  27. package/examples/demos/map-terrain/assets/floor-texture.jpg +0 -0
  28. package/examples/demos/map-terrain/assets/mapTextures/512sample.webp +0 -0
  29. package/examples/demos/map-terrain/assets/mapTextures/defaultTexture.webp +0 -0
  30. package/examples/demos/map-terrain/assets/maps/defaultMap.png +0 -0
  31. package/examples/demos/map-terrain/assets/maps/example.png +0 -0
  32. package/examples/demos/map-terrain/assets/metalic-texture.jpg +0 -0
  33. package/examples/demos/map-terrain/dist/aframe-lounge-component.min.js +1 -0
  34. package/examples/demos/map-terrain/index.html +82 -0
  35. package/examples/demos/map-terrain/index_gallery.html +188 -0
  36. package/examples/demos/map-terrain/main_data.json +1 -0
  37. package/examples/demos/map-terrain/pyramids.html +130 -0
  38. package/examples/js/aframe-orbit-controls-component.js +1060 -0
  39. package/examples/ui/pie/index.html +0 -1
  40. package/index.html +15 -0
  41. package/index.js +1 -0
  42. package/package.json +5 -5
  43. package/tests/screenshots/other_snapshots.js/pyramids.png +0 -0
  44. package/tests/screenshots/other_snapshots.js/singular.png +0 -0
  45. package/tests/screenshots/other_snapshots.js/terrain-vr-scenario.png +0 -0
  46. package/tests/screenshots/other_snapshots.js/terrain.png +0 -0
  47. package/webpack.common.js +1 -1
  48. package/webpack.dev.js +17 -0
  49. package/examples/demos/citations/babiaxr.json +0 -1
  50. package/examples/demos/citations/citations.html +0 -72
  51. package/examples/demos/citations/music.mp3 +0 -0
  52. package/examples/demos/citations/stl.js +0 -28
@@ -1,72 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8">
6
- <title>VISSOFT Citations (over time)</title>
7
- <meta name="description" content="Citations to papers presented in VISSOFT, in 3D, using BabiaXR.">
8
- <script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
9
- <script src="https://cdn.jsdelivr.net/gh/c-frame/aframe-extras@7.4.0/dist/aframe-extras.min.js"></script>
10
- <script src="../../../dist/aframe-babia-components.js"></script>
11
- <!-- <script
12
- src="https://gl.githack.com/babiaxr/aframe-babia-components/-/raw/refactor/dist/aframe-babia-components.min.js">
13
- </script> -->
14
-
15
- <script
16
- src="https://cdn.jsdelivr.net/gh/jgbarah/aframe-stl-exporter-component@aframe-1.5.0/dist/aframe-stl-exporter-component.min.js"></script>
17
- <script src="stl.js"></script>
18
- <link href="overlay.css" rel="stylesheet" />
19
- </head>
20
-
21
- <body>
22
- <div class="container">
23
- <button id="export_btn" class="button"><span>Export as STL</span></button>
24
- <button id="music_btn" class="button"><span>Music on</span></button>
25
- <button id="source_btn" class="button"><span><a href="https://gitlab.com/jgbarah/biblio3d/">Source
26
- code</a></span></button>
27
- <button id="info_btn" class="button"><span><a href="https://gitlab.com/jgbarah/biblio3d/-/blob/main/README.md">+
28
- Info</a></span></button>
29
- <button id="static_btn" class="button"><span><a href="citations-static.html">Static</a></span></button>
30
- </div>
31
-
32
- <a-scene renderer="antialias: true" background="color: #c9f4f9" stl-exporter>
33
- <a-assets>
34
- <audio id="music" src="music.mp3" preload="auto"></audio>
35
- </a-assets>
36
-
37
- <!-- Navigator -->
38
- <a-entity id="nav" babia-navigator position="8 12 4" rotation="0 0 0"></a-entity>
39
-
40
- <a-entity id="querier" babia-queryjson="url: ./babiaxr.json;"></a-entity>
41
-
42
- <a-entity id="selector" babia-selector="from: querier; controller: nav;
43
- speed: 0.3">
44
- </a-entity>
45
-
46
- <a-entity id="tree" babia-treebuilder="field: title; split_by: /; from: selector;
47
- build_root: true">
48
- </a-entity>
49
-
50
- <!-- Boats Visualizer -->
51
- <a-entity animation="property: rotation; to: 0 360 0; loop: true;
52
- easing: linear; dur: 60000" id="biblio" babia-boats="from: tree; area: area; height: cites; legendsAsChildren: true; legendsAsChildrenHeight: 10;
53
- zone_elevation: 1; maxBuildingHeight: 14; hideQuarterBoxLegend: true; highlightQuarterByClick: true; building_separation: 0;
54
- extra: 0; border: 0;
55
- legend_lookat: [camera]" position="0 0.1 0" sound="src: #music; loop: true">
56
- </a-entity>
57
-
58
- <a-entity light="type: ambient; color: #BBB; intensity: 0.2"></a-entity>
59
- <a-entity light="type: directional; color: #FFF; intensity: 0.6" position="-0.5 1 1"></a-entity>
60
-
61
- <a-entity movement-controls="fly: true" position="0 7 15" rotation="0 0 0">
62
- <a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
63
- raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom" look-controls
64
- wasd-controls="fly: true; acceleration: 10">
65
- <a-entity></a-entity>
66
- </a-entity>
67
- </a-entity>
68
- </a-scene>
69
-
70
- </body>
71
-
72
- </html>
Binary file
@@ -1,28 +0,0 @@
1
-
2
- let music_on = "Music on"
3
- let music_off = "Music off"
4
-
5
- let to_export_id = "biblio"
6
-
7
- document.addEventListener("DOMContentLoaded", () => {
8
- let export_btn = document.getElementById('export_btn');
9
- export_btn.addEventListener('click', function () {
10
- console.log("Exporting STL");
11
- to_export = document.getElementById(to_export_id);
12
- AFRAME.scenes[0].systems['stl-exporter'].export(to_export, {binary: true});
13
- });
14
- let music_btn = document.getElementById('music_btn');
15
- music_btn.innerHTML = music_on;
16
- music_btn.addEventListener('click', function () {
17
- console.log("Switching music...");
18
- let entity = document.querySelector('[sound]');
19
- console.log(this.innerHTML);
20
- if ( this.innerHTML === music_on) {
21
- this.innerHTML = music_off;
22
- entity.components.sound.playSound();
23
- } else {
24
- this.innerHTML = music_on;
25
- entity.components.sound.pauseSound();
26
- };
27
- });
28
- });