aframe-babia-components 1.2.6 → 1.2.8
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/common/noti-buffer.js +4 -1
- package/components/filters/babia-treebuilder.js +14 -4
- package/components/others/babia-slider.js +296 -296
- package/components/visualizers/babia-boats.js +218 -84
- package/components/visualizers/babia-html.js +255 -0
- package/cypress.json +1 -1
- package/dist/aframe-babia-components.js +41889 -46000
- package/dist/aframe-babia-components.min.js +2 -7
- package/dist/aframe-babia-components.min.js.LICENSE.txt +12 -0
- package/dist/aframe-babia-components.min.js.map +1 -1
- package/docs/APIs/CHARTS.md +5 -1
- package/docs/APIs/OTHERS.md +18 -8
- package/docs/RELEASE_NOTES.md +4 -0
- package/docs/Tutorials/get_started.md +2 -2
- package/docs/Tutorials/temporal_evol_with_boats.md +3 -3
- package/examples/ar/multichart/index.html +75 -0
- package/examples/assets/fonts/regular.json +1 -0
- package/examples/async/index.html +3 -3
- package/examples/async/index_filter.html +3 -3
- package/examples/async/index_noti_buffer.html +3 -3
- package/examples/async/index_noti_buffer_filter.html +3 -3
- package/examples/boats/boats/index.html +3 -3
- package/examples/boats/boats2/data.json +13 -206
- package/examples/boats/boats2/index.html +4 -4
- package/examples/boats/boats_city/index.html +4 -4
- package/examples/boats/boats_city_plan_view/index.html +4 -4
- package/examples/boats/boats_dependency/experiment.html +8 -7
- package/examples/boats/boats_dependency/index.html +1 -1
- package/examples/boats/boats_dependency/index_gradient.html +1 -1
- package/examples/boats/boats_dependency/index_normalcity.html +1 -1
- package/examples/boats/boats_dependency/index_quarter_levels_01.html +1 -1
- package/examples/boats/boats_dependency/index_quarter_levels_02.html +1 -1
- package/examples/boats/boats_dependency/index_quarter_levels_03.html +1 -1
- package/examples/boats/boats_dependency/index_quarter_levels_querystring.html +1 -1
- package/examples/boats/boats_dependency/index_tree.html +1 -1
- package/examples/boats/boats_dependency/index_tree_gradient.html +1 -1
- package/examples/boats/boats_dependency/index_tree_wireframe.html +1 -1
- package/examples/boats/boats_new_element/index.html +3 -3
- package/examples/boats/boats_new_quarter/index.html +3 -3
- package/examples/boats/boats_plan_view/index.html +3 -3
- package/examples/boats/boats_plan_view2/index.html +4 -4
- package/examples/boats/boats_quarter_resize/index.html +3 -3
- package/examples/boats/boats_quarter_resize2/index.html +3 -3
- package/examples/boats/boats_resize/index.html +3 -3
- package/examples/boats/boats_temporal/index.html +3 -3
- package/examples/boats/boats_treegenerator/index.html +3 -3
- package/examples/boats/jetuml_evol/ar.html +333 -0
- package/examples/boats/jetuml_evol/data.json +62382 -0
- package/examples/boats/jetuml_evol/index.html +381 -0
- package/examples/charts/bars/bars_change.html +2 -2
- package/examples/charts/bars/bars_json.html +2 -2
- package/examples/charts/bars/index.html +3 -3
- package/examples/charts/barsmap/index.html +3 -3
- package/examples/charts/bubbles/index.html +3 -3
- package/examples/charts/cyls/index.html +3 -3
- package/examples/charts/cyls/primitive.html +3 -3
- package/examples/charts/cylsmap/index.html +3 -3
- package/examples/charts/doughnut/index.html +3 -3
- package/examples/charts/multichart/index.html +3 -3
- package/examples/charts/network_chart/network_chart.html +1 -1
- package/examples/charts/network_chart/network_large_chart.html +3 -3
- package/examples/charts/network_chart/network_nodes_links_chart.html +3 -3
- package/examples/charts/network_chart/network_nodes_links_directed_chart.html +2 -2
- package/examples/charts/network_chart/network_random_chart.html +2 -2
- package/examples/charts/pie/index.html +2 -2
- package/examples/charts_querier/bars_querier/bars_axis_name.html +3 -3
- package/examples/charts_querier/bars_querier/index.html +3 -3
- package/examples/charts_querier/bars_querier/index_csv.html +3 -3
- package/examples/charts_querier/barsmap_querier/barsmap_axis_name.html +3 -3
- package/examples/charts_querier/barsmap_querier/index.html +3 -3
- package/examples/charts_querier/bubbles_querier/index.html +3 -3
- package/examples/charts_querier/cyls_querier/index.html +3 -3
- package/examples/charts_querier/cylsmap_querier/index.html +3 -3
- package/examples/charts_querier/doughnut_querier/index.html +3 -3
- package/examples/charts_querier/multichart_querier/index.html +3 -3
- package/examples/charts_querier/multichart_querier/manual_colors.html +3 -3
- package/examples/charts_querier/pie_querier/index.html +3 -3
- package/examples/codecityjs/argouml/index.html +4 -4
- package/examples/codecityjs/basic/index.html +2 -2
- package/examples/codecityjs/basic_treegenerator/index.html +2 -2
- package/examples/codecityjs/perceval/index.html +2 -2
- package/examples/codecityjs/perceval2021/index.html +4 -4
- package/examples/codecityjs/projects_analysis/argouml_landscape.html +2 -2
- package/examples/codecityjs/projects_analysis/argouml_numfuns.html +2 -2
- package/examples/codecityjs/projects_analysis/argouml_table.html +2 -2
- package/examples/codecityjs/projects_analysis/argouml_tokens.html +2 -2
- package/examples/codecityjs/projects_analysis/experiment_interface.html +2 -2
- package/examples/codecityjs/projects_analysis/experiment_interface_task5.html +2 -2
- package/examples/codecityjs/projects_analysis/experiment_interface_vr_2021.html +2 -2
- package/examples/codecityjs/projects_analysis/experiment_interface_vr_task5.html +2 -2
- package/examples/codecityjs/projects_analysis/perceval_landscape.html +2 -2
- package/examples/codecityjs/projects_analysis/perceval_table.html +2 -2
- package/examples/codecityjs/sortinghat/index.html +2 -2
- package/examples/codecityjs/sortinghat/indexcolor.html +2 -2
- package/examples/codecityjs/time_evolution_angular/index.html +2 -2
- 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/index.html +1 -1
- package/examples/dashboard/range.html +3 -3
- package/examples/dashboard/template.html +1 -1
- package/examples/demos/1.0.11/index.html +4 -4
- package/examples/demos/1.0.11/index_multiuser.html +3 -3
- package/examples/demos/1.0.11/index_multiuser_ui.html +3 -3
- package/examples/demos/1.0.7/index.html +3 -3
- package/examples/demos/citations/babiaxr.json +1 -0
- package/examples/demos/citations/citations.html +72 -0
- package/examples/demos/citations/music.mp3 +0 -0
- package/examples/demos/citations/stl.js +28 -0
- package/examples/elevation/elevation basic/index.html +2 -2
- package/examples/elevation/elevation filled/index.html +2 -2
- package/{example-template.html → examples/example-template.html} +10 -9
- package/examples/experiment/city.html +15 -11
- package/examples/experiment/index.html +1 -1
- package/examples/experiment/pie.html +2 -2
- package/examples/experiment/third_party.html +92 -0
- package/examples/htmlinxr/complex.html +219 -0
- package/examples/htmlinxr/simple.html +163 -0
- package/examples/img/codecitytree.png +0 -0
- package/examples/img/codecityvs.png +0 -0
- package/examples/img/dashboard.png +0 -0
- package/examples/img/elevatedcity.png +0 -0
- package/examples/img/experiment.png +0 -0
- package/examples/img/time.png +0 -0
- package/examples/img/uinetwork.png +0 -0
- package/examples/img/uinetwork_json.png +0 -0
- package/examples/multi_bars/index.html +3 -3
- package/examples/multi_bars/index1.html +3 -3
- package/examples/multi_bars/index2.html +3 -3
- package/examples/multi_bars/index3.html +3 -3
- package/examples/multi_boats/index_multi_boats.html +3 -3
- package/examples/multi_boats/jetuml.html +3 -3
- package/examples/multi_boats/jetuml_evolution_experiment.html +3 -3
- package/examples/multi_boats/only_queryjson.html +3 -3
- package/examples/multi_boats/only_queryjson2.html +3 -3
- package/examples/multi_boats/only_queryjson3.html +3 -3
- package/examples/multi_boats/queryjson_treebuilder.html +3 -3
- package/examples/multi_boats/with_selector.html +3 -3
- package/examples/multiuser/choose_avatar/desert_demo.html +3 -3
- package/examples/multiuser/demo_esLibre_audio.html +3 -3
- package/examples/multiuser/demo_esLibre_no_audio.html +3 -3
- package/examples/multiuser/demo_no_share_ui.html +3 -3
- package/examples/multiuser/meaningful.html +3 -3
- package/examples/multiuser/new_demo.html +3 -3
- package/examples/multiuser/no_persistence.html +3 -3
- package/examples/multiuser/persistence.html +3 -3
- package/examples/multiuser/simple_scene.html +3 -3
- package/examples/performance/500bars_100anime/index.html +3 -3
- package/examples/performance/500bars_anime/index.html +3 -3
- package/examples/performance/500simplebars_100anime/index.html +3 -3
- package/examples/publications/codecityvs/aframe-lounge-component.min.js +1 -0
- package/examples/publications/codecityvs/index.html +535 -0
- package/examples/publications/codecityvs/jetuml_code_data.json +1 -0
- package/examples/publications/dashboard/index.html +764 -0
- package/examples/publications/dashboard/staticdata/80-percent-open-time-issues2.json +1 -0
- package/examples/publications/dashboard/staticdata/80-percent-open-time-pr.json +1 -0
- package/examples/publications/dashboard/staticdata/issues-by-organization.json +1 -0
- package/examples/publications/dashboard/staticdata/issues.json +1 -0
- package/examples/publications/dashboard/staticdata/median-open-time-issues.json +1 -0
- package/examples/publications/dashboard/staticdata/median-open-time-pr.json +1 -0
- package/examples/publications/dashboard/staticdata/organizations-issues.json +1 -0
- package/examples/publications/dashboard/staticdata/organizations-pr.json +1 -0
- package/examples/publications/dashboard/staticdata/projects-issues.json +1 -0
- package/examples/publications/dashboard/staticdata/projects-pr.json +1 -0
- package/examples/publications/dashboard/staticdata/pull-requests-by-organization.json +1 -0
- package/examples/publications/dashboard/staticdata/pull-requests.json +1 -0
- package/examples/publications/dashboard/staticdata/repositories-issues-asignees.json +1 -0
- package/examples/publications/dashboard/staticdata/repositories-issues-avgdays.json +1 -0
- package/examples/publications/dashboard/staticdata/repositories-issues-count.json +1 -0
- package/examples/publications/dashboard/staticdata/repositories-issues-submitters.json +1 -0
- package/examples/publications/dashboard/staticdata/repositories-pr-asignees.json +1 -0
- package/examples/publications/dashboard/staticdata/repositories-pr-avgdays.json +1 -0
- package/examples/publications/dashboard/staticdata/repositories-pr-count.json +1 -0
- package/examples/publications/dashboard/staticdata/repositories-pr-submitters.json +1 -0
- package/examples/publications/dashboard/staticdata/status-issues.json +1 -0
- package/examples/publications/dashboard/staticdata/status-pr.json +1 -0
- package/examples/publications/dashboard/staticdata/submitter-issues-avgdays.json +1 -0
- package/examples/publications/dashboard/staticdata/submitter-issues-count.json +1 -0
- package/examples/publications/dashboard/staticdata/submitter-issues-repo.json +1 -0
- package/examples/publications/dashboard/staticdata/submitter-pr-avgdays.json +1 -0
- package/examples/publications/dashboard/staticdata/submitter-pr-count.json +1 -0
- package/examples/publications/dashboard/staticdata/submitter-pr-repo.json +1 -0
- package/examples/publications/dashboard/staticdata/submitters-issues.json +1 -0
- package/examples/publications/dashboard/staticdata/submitters-pr.json +1 -0
- package/examples/publications/elevated/dependencieslist_ghdesktop.json +127660 -0
- package/examples/publications/elevated/dependencieslist_pm2.json +13726 -0
- package/examples/publications/elevated/dependencieslist_portainer.json +41818 -0
- package/examples/publications/elevated/dependencieslist_sh.json +5194 -0
- package/examples/publications/elevated/index.html +278 -0
- package/examples/selector/index.html +2 -2
- package/examples/selector_boats/index.html +3 -3
- package/examples/selector_boats/index2.html +3 -3
- package/examples/selector_boats/jetuml.html +3 -3
- package/examples/selector_boats/jetumltest.html +3 -3
- package/examples/temporal_evol/bars/index.html +3 -3
- package/examples/temporal_evol/barsmap/index.html +3 -3
- package/examples/timeline/index.html +3 -3
- package/examples/timeline/index2.html +3 -3
- package/examples/timeline/index3.html +3 -3
- package/examples/ui/bars/index.html +3 -3
- package/examples/ui/barsmap/index.html +3 -3
- package/examples/ui/boats_treegenerator/index.html +3 -3
- package/examples/ui/city_treegenerator/index.html +3 -3
- package/examples/ui/cylsmap/index.html +3 -3
- package/examples/ui/link/index.html +3 -3
- package/examples/ui/network/network.html +3 -3
- package/examples/ui/network/network_nodes_links.html +2 -2
- package/examples/ui/oculus/index.html +3 -3
- package/examples/ui/pie/index.html +3 -3
- package/examples/ui/ui_treegenerator/index.html +3 -3
- package/examples/watcher/querier_watcher/index.html +2 -2
- package/index.html +186 -168
- package/index.js +6 -1
- package/package.json +15 -14
- package/tests/index.html +2 -2
- package/tests/treebuilder.js +69 -0
- package/webpack.dev.js +12 -7
- package/webpack.devall.js +12 -7
- package/webpack.devnossl.js +5 -4
- package/webpack.prod.js +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
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
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
});
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<title>Terrais Elevations</title>
|
|
5
5
|
<meta charset="utf-8">
|
|
6
|
-
<script src="https://aframe.io/releases/1.0
|
|
7
|
-
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@
|
|
6
|
+
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
|
|
7
|
+
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v7.2.0/dist/aframe-extras.min.js"></script>
|
|
8
8
|
<script src="https://unpkg.com/aframe-environment-component@1.0.0/dist/aframe-environment-component.min.js"></script>
|
|
9
9
|
<script src="https://unpkg.com/aframe-text-geometry-component@0.5.1/dist/aframe-text-geometry-component.min.js"></script>
|
|
10
10
|
<script src="../../../dist/aframe-babia-components.js"></script>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<title>Terrais Elevations</title>
|
|
5
5
|
<meta charset="utf-8">
|
|
6
|
-
<script src="https://aframe.io/releases/1.0
|
|
7
|
-
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@
|
|
6
|
+
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
|
|
7
|
+
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v7.2.0/dist/aframe-extras.min.js"></script>
|
|
8
8
|
<script src="https://unpkg.com/aframe-environment-component@1.0.0/dist/aframe-environment-component.min.js"></script>
|
|
9
9
|
<script src="https://unpkg.com/aframe-text-geometry-component@0.5.1/dist/aframe-text-geometry-component.min.js"></script>
|
|
10
10
|
<script src="../../../dist/aframe-babia-components.js"></script>
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
<meta charset="utf-8">
|
|
6
6
|
<title></title>
|
|
7
7
|
<meta name="description" content="A BabiaXR example - " />
|
|
8
|
-
<script src="https://aframe.io/releases/1.
|
|
9
|
-
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@
|
|
10
|
-
<script src="https://unpkg.com/aframe-environment-component@1.
|
|
11
|
-
<script src="https://unpkg.com/aframe-text-geometry-component@0.5.1/dist/aframe-text-geometry-component.min.js"></script>
|
|
8
|
+
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
|
|
9
|
+
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v7.2.0/dist/aframe-extras.min.js"></script>
|
|
10
|
+
<script src="https://unpkg.com/aframe-environment-component@1.3.3/dist/aframe-environment-component.min.js"></script>
|
|
12
11
|
<script src="../../../dist/aframe-babia-components.min.js"></script>
|
|
13
12
|
<link rel="stylesheet" href="../../assets/gitlab-corner.css">
|
|
14
13
|
</head>
|
|
@@ -20,11 +19,13 @@
|
|
|
20
19
|
|
|
21
20
|
<!-- scene -->
|
|
22
21
|
|
|
23
|
-
<!-- Camera -->
|
|
24
|
-
<a-entity
|
|
25
|
-
<a-entity camera
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
<!-- Controls and Camera -->
|
|
23
|
+
<a-entity id="cameraRig" position="0 1.6 3">
|
|
24
|
+
<a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
|
|
25
|
+
raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom" look-controls
|
|
26
|
+
wasd-controls="fly: true; acceleration: 10">
|
|
27
|
+
<a-entity></a-entity>
|
|
28
|
+
</a-entity>
|
|
28
29
|
</a-entity>
|
|
29
30
|
|
|
30
31
|
</a-scene>
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<title>JetUML 2021 | BabiaXR Experiment</title>
|
|
7
7
|
<meta name="description" content="BabiaXR Components Gallery using covid-19 data">
|
|
8
8
|
</meta>
|
|
9
|
-
<script src="https://aframe.io/releases/1.
|
|
10
|
-
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@
|
|
9
|
+
<script src="https://aframe.io/releases/1.5.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
11
|
<script
|
|
12
12
|
src="https://unpkg.com/aframe-environment-component@1.1.0/dist/aframe-environment-component.min.js"></script>
|
|
13
13
|
<script
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<a-sky src="#sky"></a-sky>
|
|
62
62
|
|
|
63
63
|
<!-- Information popup -->
|
|
64
|
-
<a-entity rotation="0 -90 0" position="
|
|
64
|
+
<a-entity rotation="0 -90 0" position="3 5 -4.5">
|
|
65
65
|
<a-entity id="navbarpopup" position="2 -1 -5"
|
|
66
66
|
dialog-popup="
|
|
67
67
|
openIconImage: ../assets/popups/info.jpg;
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
<!-- Aframe Lounge -->
|
|
87
|
-
<a-entity position="
|
|
87
|
+
<a-entity position="-1 0.6 0.9" id="city"
|
|
88
88
|
babia-boats="height_building_legend: -0.5; legend_scale: 0.25; extra: 1; zone_elevation: 0.01; from: jetumlcity; area: num_funs; height: loc_per_function; color: ccn; height_quarter_legend_box: 1; height_quarter_legend_title: -3; autoscale: true">
|
|
89
89
|
</a-entity>
|
|
90
90
|
|
|
91
|
-
<a-entity id="lounge" position="5 0
|
|
91
|
+
<a-entity id="lounge" position="1 5.6 0" lounge="width: 20; depth: 25; height: 11;
|
|
92
92
|
north: barrier;
|
|
93
93
|
floorTexture: ../assets/textures/floor-texture.jpg">
|
|
94
94
|
|
|
@@ -104,8 +104,7 @@
|
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
|
|
107
|
-
<a-entity id="bardescription" position="7.4 -4.7 -1.5" rotation="-30 0 0" scale="0.8 0.8 0.8">
|
|
108
|
-
<!-- Close tooltips -->
|
|
107
|
+
<!-- <a-entity id="bardescription" position="7.4 -4.7 -1.5" rotation="-30 0 0" scale="0.8 0.8 0.8">
|
|
109
108
|
<a-plane id="closelegends" babia-lookat="[camera]" class="babiaxraycasterclass" scale="0.8 0.8 0.8"
|
|
110
109
|
position="0 1.5 0" geometry="primitive: plane; width: 2; height: 0.5" color="#012752"
|
|
111
110
|
text="value: Close All Tooltips; color: white; align: center; wrapCount: 30; width: 3.6; transparent: false; alphaTest: 6; opacity: 6">
|
|
@@ -127,7 +126,7 @@
|
|
|
127
126
|
<p>Interactions: Click (or hover) on a building or click on a quarter to discover more.
|
|
128
127
|
</p>
|
|
129
128
|
</a-entity>
|
|
130
|
-
</a-entity>
|
|
129
|
+
</a-entity> -->
|
|
131
130
|
|
|
132
131
|
<!-- Lights -->
|
|
133
132
|
<a-entity position="5 50 0" light="type: hemisphere; color: #CEE4F0; intensity: 1; groundColor: #454545">
|
|
@@ -137,9 +136,14 @@
|
|
|
137
136
|
<a-entity lounge-entry-point rotation="0 -90 0">
|
|
138
137
|
|
|
139
138
|
</a-entity>
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
<!-- Controls and Camera -->
|
|
140
|
+
<a-entity id="cameraRig" position="0 1.6 5" movement-controls>
|
|
141
|
+
<a-entity id="head" camera
|
|
142
|
+
babia-camera="raycasterMouse: .babiaxraycasterclass; raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom"
|
|
143
|
+
look-controls wasd-controls="fly: true">
|
|
144
|
+
<a-entity></a-entity>
|
|
145
|
+
</a-entity>
|
|
146
|
+
</a-entity>
|
|
143
147
|
</a-entity>
|
|
144
148
|
|
|
145
149
|
</a-scene>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>Babia Dashboard - Github Pull Requests Timing - CHAOSS Bitergia Analytics </title>
|
|
7
7
|
<meta name="description" content="Museum building with aframe and babia">
|
|
8
8
|
</meta>
|
|
9
|
-
<script src="https://aframe.io/releases/1.
|
|
9
|
+
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
|
|
10
10
|
<script
|
|
11
11
|
src="https://rawgit.com/fernandojsg/aframe-teleport-controls/master/dist/aframe-teleport-controls.min.js"></script>
|
|
12
12
|
<script
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<meta charset="utf-8">
|
|
6
6
|
<title>A-Frame Babia components</title>
|
|
7
7
|
<meta name="description" content="Babia Pie example" />
|
|
8
|
-
<script src="https://aframe.io/releases/1.
|
|
9
|
-
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@
|
|
8
|
+
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
|
|
9
|
+
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v7.2.0/dist/aframe-extras.min.js"></script>
|
|
10
10
|
<script
|
|
11
11
|
src="https://unpkg.com/aframe-environment-component@1.3.1/dist/aframe-environment-component.min.js"></script>
|
|
12
12
|
<script
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<title>A-Frame Babia components</title>
|
|
7
|
+
<meta name="description" content="Babia Pie example" />
|
|
8
|
+
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
|
|
9
|
+
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v7.2.0/dist/aframe-extras.min.js"></script>
|
|
10
|
+
<script
|
|
11
|
+
src="https://unpkg.com/aframe-environment-component@1.3.1/dist/aframe-environment-component.min.js"></script>
|
|
12
|
+
<script
|
|
13
|
+
src="https://unpkg.com/@editvr/aframe-dialog-popup-component@1.7.3/dist/aframe-dialog-popup-component.js"></script>
|
|
14
|
+
<script src="https://unpkg.com/3dstreet@0.3.2/dist/aframe-street-component.js"></script>
|
|
15
|
+
<script src="../../dist/aframe-babia-components.js"></script>
|
|
16
|
+
<link rel="stylesheet" href="../../assets/gitlab-corner.css">
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<a-scene background="color: #A8F3FF" id="AframeScene" gltf-model="dracoDecoderPath: https://www.gstatic.com/draco/v1/decoders/;">
|
|
21
|
+
<a-assets>
|
|
22
|
+
<a-asset-item id="optimerBoldFont"
|
|
23
|
+
src="https://rawgit.com/mrdoob/three.js/dev/examples/fonts/optimer_bold.typeface.json">
|
|
24
|
+
</a-asset-item>
|
|
25
|
+
<video id="videosample" loop="true" src="sample.mp4"></video>
|
|
26
|
+
</a-assets>
|
|
27
|
+
|
|
28
|
+
<a-entity babia-experiment id="experiment">
|
|
29
|
+
<a-entity id="task3" babia-task="offsetX: -3"></a-entity>
|
|
30
|
+
<a-entity id="task1" babia-task="taskVideo: true; taskVideoId: #videosample"></a-entity>
|
|
31
|
+
<a-entity id="task2" babia-task="offsetX: 3; taskAudio: true; taskAudioUrl: sample-3s.mp3"></a-entity>
|
|
32
|
+
<a-light type="point" intensity="1" position="-10 20 30"></a-light>
|
|
33
|
+
|
|
34
|
+
<a-entity id="mySimpleStreet" position="0 -3 0" street streetmix-loader="streetmixStreetURL: https://streetmix.net/kfarr/3/" ></a-entity>
|
|
35
|
+
|
|
36
|
+
<a-entity
|
|
37
|
+
babia-pie='size: points; legend: true; palette: ubuntu; title: babia-pie; titleColor: #FFFFFF;
|
|
38
|
+
titleFont: #optimerBoldFont; titlePosition: 0 0.5 1.5; animation: true;
|
|
39
|
+
data: [{"key":"kbn_network","points":10},{"key":"Maria","points":5},{"key":"Dave","points":9},{"key":"Jhon","points":12},{"key":"Sara","points":16},{"key":"Lemar","points":2},{"key":"Dawn","points":1},{"key":"Jesus","points":8},{"key":"Bitergia","points":3},{"key":"URJC","points":6},{"key":"Alice","points":22},{"key":"Pete","points":2},{"key":"Seth","points":6},{"key":"Martin","points":9}]'
|
|
40
|
+
position="-3 3 -6" rotation="90 0 0"></a-entity>
|
|
41
|
+
|
|
42
|
+
<!-- Controls and Camera -->
|
|
43
|
+
<a-entity id="cameraRig" position="0 1.6 0">
|
|
44
|
+
<a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
|
|
45
|
+
raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom"
|
|
46
|
+
look-controls wasd-controls="fly: true">
|
|
47
|
+
</a-entity>
|
|
48
|
+
</a-entity>
|
|
49
|
+
</a-entity>
|
|
50
|
+
|
|
51
|
+
</a-scene>
|
|
52
|
+
|
|
53
|
+
<!-- GITLAB CORNER-->
|
|
54
|
+
<div class="gitlab-corner-wrapper"><a
|
|
55
|
+
href="https://gitlab.com/babiaxr/aframe-babia-components/-/blob/master/examples/charts/pie/index.html"
|
|
56
|
+
class="gitlab-corner" aria-label="View source on GitLab"><svg id="logo_art" data-name="logo art"
|
|
57
|
+
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 586 559">
|
|
58
|
+
<g id="g44">
|
|
59
|
+
<path id="path46" class="cls-1"
|
|
60
|
+
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" />
|
|
61
|
+
</g>
|
|
62
|
+
<g id="g48">
|
|
63
|
+
<path id="path50" class="cls-2" d="M293,434.91h0l62.16-191.28H230.87L293,434.91Z" />
|
|
64
|
+
</g>
|
|
65
|
+
<g id="g56">
|
|
66
|
+
<path id="path58" class="cls-1" d="M293,434.91,230.82,243.63h-87L293,434.91Z" />
|
|
67
|
+
</g>
|
|
68
|
+
<g id="g64">
|
|
69
|
+
<path id="path66" class="cls-3"
|
|
70
|
+
d="M143.75,243.69h0l-18.91,58.12a12.88,12.88,0,0,0,4.66,14.39L293,435,143.75,243.69Z" />
|
|
71
|
+
</g>
|
|
72
|
+
<g id="g72">
|
|
73
|
+
<path id="path74" class="cls-2"
|
|
74
|
+
d="M143.78,243.69h87.11L193.4,128.49a6.47,6.47,0,0,0-12.27,0l-37.35,115.2Z" />
|
|
75
|
+
</g>
|
|
76
|
+
<g id="g76">
|
|
77
|
+
<path id="path78" class="cls-1" d="M293,434.91l62.16-191.28H442.3L293,434.91Z" />
|
|
78
|
+
</g>
|
|
79
|
+
<g id="g80">
|
|
80
|
+
<path id="path82" class="cls-3"
|
|
81
|
+
d="M442.24,243.69h0l18.91,58.12a12.85,12.85,0,0,1-4.66,14.39L293,434.91l149.2-191.22Z" />
|
|
82
|
+
</g>
|
|
83
|
+
<g id="g84">
|
|
84
|
+
<path id="path86" class="cls-2"
|
|
85
|
+
d="M442.28,243.69h-87.1l37.42-115.2a6.46,6.46,0,0,1,12.26,0l37.42,115.2Z" />
|
|
86
|
+
</g>
|
|
87
|
+
</svg></a></div>
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
</body>
|
|
91
|
+
|
|
92
|
+
</html>
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<title></title>
|
|
7
|
+
<meta name="description" content="A BabiaXR example - " />
|
|
8
|
+
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
|
|
9
|
+
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v7.2.0/dist/aframe-extras.min.js"></script>
|
|
10
|
+
<script
|
|
11
|
+
src="https://unpkg.com/aframe-environment-component@1.3.3/dist/aframe-environment-component.min.js"></script>
|
|
12
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
|
|
13
|
+
<script src="../../dist/aframe-babia-components.js"></script>
|
|
14
|
+
<script src="../../components/visualizers/babia-html.js"></script>
|
|
15
|
+
<link rel="stylesheet" href="../../assets/gitlab-corner.css">
|
|
16
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
|
|
17
|
+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
|
|
18
|
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
|
|
19
|
+
</head>
|
|
20
|
+
|
|
21
|
+
<body>
|
|
22
|
+
<a-scene xr-mode-ui="XRMode: xr" background="color: #A8F3FF" id="AframeScene">
|
|
23
|
+
<!-- <a-entity environment="playArea: 10"></a-entity> -->
|
|
24
|
+
<a-light type="point" intensity="1" position="-10 20 30"></a-light>
|
|
25
|
+
|
|
26
|
+
<!-- scene -->
|
|
27
|
+
<a-entity scale="0.3 0.3 0.3" position="-2 2 0" id="htmlDOM" babia-html='renderHTML: true; renderHTMLOnlyLeafs: true; distanceLevels: 0.7; html:
|
|
28
|
+
<div class="container">
|
|
29
|
+
<h2>Alerts 1</h2>
|
|
30
|
+
<div class="alert alert-success">
|
|
31
|
+
Success! This alert box could indicate a successful or positive action.
|
|
32
|
+
</div>
|
|
33
|
+
<div class="alert alert-info">
|
|
34
|
+
Info! This alert box could indicate a neutral informative change or action.
|
|
35
|
+
</div>
|
|
36
|
+
<div class="alert alert-warning">
|
|
37
|
+
Warning! This alert box could indicate a warning that might need attention.
|
|
38
|
+
</div>
|
|
39
|
+
<div class="alert alert-danger">
|
|
40
|
+
Danger! This alert box could indicate a dangerous or potentially negative action.
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div class="wrapper">
|
|
45
|
+
<header>
|
|
46
|
+
<div class="branding">
|
|
47
|
+
<h1>Brand Name</h1>
|
|
48
|
+
<nav>
|
|
49
|
+
<ul>
|
|
50
|
+
<li><a href="#home">Home</a></li>
|
|
51
|
+
<li><a href="#products">Products</a>
|
|
52
|
+
<ul>
|
|
53
|
+
<li><a href="#product1">Product 1</a></li>
|
|
54
|
+
<li><a href="#product2">Product 2</a></li>
|
|
55
|
+
</ul>
|
|
56
|
+
</li>
|
|
57
|
+
<li><a href="#services">Services</a></li>
|
|
58
|
+
<li><a href="#contact">Contact</a></li>
|
|
59
|
+
</ul>
|
|
60
|
+
</nav>
|
|
61
|
+
</div>
|
|
62
|
+
</header>
|
|
63
|
+
<main>
|
|
64
|
+
<section class="intro">
|
|
65
|
+
<h2>Welcome</h2>
|
|
66
|
+
<p>Introduction content here.</p>
|
|
67
|
+
</section>
|
|
68
|
+
<section class="features">
|
|
69
|
+
<div class="feature">
|
|
70
|
+
<h3>Feature 1</h3>
|
|
71
|
+
<p>Description of feature 1.</p>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="feature">
|
|
74
|
+
<h3>Feature 2</h3>
|
|
75
|
+
<p>Description of feature 2.</p>
|
|
76
|
+
</div>
|
|
77
|
+
</section>
|
|
78
|
+
<article class="highlight">
|
|
79
|
+
<h2>Highlighted Article</h2>
|
|
80
|
+
<p>Content of the highlighted article.</p>
|
|
81
|
+
<table>
|
|
82
|
+
<thead>
|
|
83
|
+
<tr>
|
|
84
|
+
<th>Column 1</th>
|
|
85
|
+
<th>Column 2</th>
|
|
86
|
+
<th>Column 3</th>
|
|
87
|
+
</tr>
|
|
88
|
+
</thead>
|
|
89
|
+
<tbody>
|
|
90
|
+
<tr>
|
|
91
|
+
<td>Data 1</td>
|
|
92
|
+
<td>Data 2</td>
|
|
93
|
+
<td>Data 3</td>
|
|
94
|
+
</tr>
|
|
95
|
+
<tr>
|
|
96
|
+
<td>Data 4</td>
|
|
97
|
+
<td>Data 5</td>
|
|
98
|
+
<td>Data 6</td>
|
|
99
|
+
</tr>
|
|
100
|
+
</tbody>
|
|
101
|
+
</table>
|
|
102
|
+
</article>
|
|
103
|
+
</main>
|
|
104
|
+
<footer>
|
|
105
|
+
<p>© 2024 Company Name</p>
|
|
106
|
+
</footer>
|
|
107
|
+
</div>
|
|
108
|
+
'></a-entity>
|
|
109
|
+
|
|
110
|
+
<!-- buttons -->
|
|
111
|
+
<a-entity position="0 3 0">
|
|
112
|
+
<!-- RotateX button -->
|
|
113
|
+
<a-plane id="rotateX" class="babiaxraycasterclass" position="-1 1 -3" width="1" height="0.5" color="blue"
|
|
114
|
+
rotation="0 0 0" text="value: RotateX; color: white; align: center; width: 3;"></a-plane>
|
|
115
|
+
|
|
116
|
+
<!-- RotateY button -->
|
|
117
|
+
<a-plane id="rotateY" class="babiaxraycasterclass" position="0 1 -3" width="1" height="0.5" color="green"
|
|
118
|
+
rotation="0 0 0" text="value: RotateY; color: white; align: center; width: 3;"></a-plane>
|
|
119
|
+
|
|
120
|
+
<!-- RotateZ button -->
|
|
121
|
+
<a-plane id="rotateZ" class="babiaxraycasterclass" position="1 1 -3" width="1" height="0.5" color="red"
|
|
122
|
+
rotation="0 0 0" text="value: RotateZ; color: white; align: center; width: 3;"></a-plane>
|
|
123
|
+
|
|
124
|
+
<!-- Collapse button -->
|
|
125
|
+
<a-plane id="collapse" class="babiaxraycasterclass" position="-1 0.5 -3" width="1" height="0.5"
|
|
126
|
+
color="yellow" rotation="0 0 0"
|
|
127
|
+
text="value: Collapse; color: black; align: center; width: 3;"></a-plane>
|
|
128
|
+
|
|
129
|
+
<!-- Expand button -->
|
|
130
|
+
<a-plane id="expand" class="babiaxraycasterclass" position="1 0.5 -3" width="1" height="0.5" color="purple"
|
|
131
|
+
rotation="0 0 0" text="value: Expand; color: white; align: center; width: 3;"></a-plane>
|
|
132
|
+
</a-entity>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
<!-- Controls and Camera -->
|
|
136
|
+
<a-entity id="cameraRig" position="0 1.6 3">
|
|
137
|
+
<a-entity id="head" camera babia-camera="raycasterMouse: .babiaxraycasterclass;
|
|
138
|
+
raycasterHand: .babiaxraycasterclass; teleportCollision: #floorRoom" look-controls
|
|
139
|
+
wasd-controls="fly: true; acceleration: 10">
|
|
140
|
+
<a-entity></a-entity>
|
|
141
|
+
</a-entity>
|
|
142
|
+
</a-entity>
|
|
143
|
+
|
|
144
|
+
</a-scene>
|
|
145
|
+
|
|
146
|
+
<script>// RotateX button
|
|
147
|
+
document.querySelector('#rotateX').addEventListener('click', function () {
|
|
148
|
+
let entity = document.querySelector('#htmlDOM');
|
|
149
|
+
let rotation = entity.getAttribute('rotation');
|
|
150
|
+
entity.setAttribute('rotation', { x: rotation.x + 90, y: rotation.y, z: rotation.z });
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
// RotateY button
|
|
154
|
+
document.querySelector('#rotateY').addEventListener('click', function () {
|
|
155
|
+
let entity = document.querySelector('#htmlDOM');
|
|
156
|
+
let rotation = entity.getAttribute('rotation');
|
|
157
|
+
entity.setAttribute('rotation', { x: rotation.x, y: rotation.y + 90, z: rotation.z });
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
// RotateZ button
|
|
161
|
+
document.querySelector('#rotateZ').addEventListener('click', function () {
|
|
162
|
+
let entity = document.querySelector('#htmlDOM');
|
|
163
|
+
let rotation = entity.getAttribute('rotation');
|
|
164
|
+
entity.setAttribute('rotation', { x: rotation.x, y: rotation.y, z: rotation.z + 90 });
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
// Collapse button
|
|
168
|
+
document.querySelector('#collapse').addEventListener('click', function () {
|
|
169
|
+
let entity = document.querySelector('#htmlDOM');
|
|
170
|
+
entity.setAttribute('babia-html', 'distanceLevels: 0.01');
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
// Expand button
|
|
174
|
+
document.querySelector('#expand').addEventListener('click', function () {
|
|
175
|
+
let entity = document.querySelector('#htmlDOM');
|
|
176
|
+
entity.setAttribute('babia-html', 'distanceLevels: 0.7');
|
|
177
|
+
});
|
|
178
|
+
</script>
|
|
179
|
+
|
|
180
|
+
<!-- GITLAB CORNER-->
|
|
181
|
+
<div class="gitlab-corner-wrapper"><a
|
|
182
|
+
href="https://gitlab.com/babiaxr/aframe-babia-components/-/blob/master/examples///index.html"
|
|
183
|
+
class="gitlab-corner" aria-label="View source on GitLab"><svg id="logo_art" data-name="logo art"
|
|
184
|
+
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 586 559">
|
|
185
|
+
<g id="g44">
|
|
186
|
+
<path id="path46" class="cls-1"
|
|
187
|
+
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" />
|
|
188
|
+
</g>
|
|
189
|
+
<g id="g48">
|
|
190
|
+
<path id="path50" class="cls-2" d="M293,434.91h0l62.16-191.28H230.87L293,434.91Z" />
|
|
191
|
+
</g>
|
|
192
|
+
<g id="g56">
|
|
193
|
+
<path id="path58" class="cls-1" d="M293,434.91,230.82,243.63h-87L293,434.91Z" />
|
|
194
|
+
</g>
|
|
195
|
+
<g id="g64">
|
|
196
|
+
<path id="path66" class="cls-3"
|
|
197
|
+
d="M143.75,243.69h0l-18.91,58.12a12.88,12.88,0,0,0,4.66,14.39L293,435,143.75,243.69Z" />
|
|
198
|
+
</g>
|
|
199
|
+
<g id="g72">
|
|
200
|
+
<path id="path74" class="cls-2"
|
|
201
|
+
d="M143.78,243.69h87.11L193.4,128.49a6.47,6.47,0,0,0-12.27,0l-37.35,115.2Z" />
|
|
202
|
+
</g>
|
|
203
|
+
<g id="g76">
|
|
204
|
+
<path id="path78" class="cls-1" d="M293,434.91l62.16-191.28H442.3L293,434.91Z" />
|
|
205
|
+
</g>
|
|
206
|
+
<g id="g80">
|
|
207
|
+
<path id="path82" class="cls-3"
|
|
208
|
+
d="M442.24,243.69h0l18.91,58.12a12.85,12.85,0,0,1-4.66,14.39L293,434.91l149.2-191.22Z" />
|
|
209
|
+
</g>
|
|
210
|
+
<g id="g84">
|
|
211
|
+
<path id="path86" class="cls-2"
|
|
212
|
+
d="M442.28,243.69h-87.1l37.42-115.2a6.46,6.46,0,0,1,12.26,0l37.42,115.2Z" />
|
|
213
|
+
</g>
|
|
214
|
+
</svg></a></div>
|
|
215
|
+
|
|
216
|
+
</body>
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
</html>
|