aframe-babia-components 1.2.0 → 1.2.3

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 (127) hide show
  1. package/components/filters/babia-selector.js +256 -79
  2. package/components/filters/babia-treebuilder.js +4 -5
  3. package/components/geometries/babia-cyl.js +180 -0
  4. package/components/others/assets/tooltip.png +0 -0
  5. package/components/others/babia-camera.js +195 -0
  6. package/components/others/babia-controls.js +62 -37
  7. package/components/others/babia-navigator.js +55 -49
  8. package/components/others/babia-range-selector.js +208 -0
  9. package/components/others/babia-slider.js +36 -8
  10. package/components/others/babia-ui.js +246 -73
  11. package/components/others/common.js +60 -73
  12. package/components/queriers/babia-querycsv.js +96 -0
  13. package/components/queriers/babia-queryes.js +203 -132
  14. package/components/visualizers/babia-bars.js +4 -35
  15. package/components/visualizers/babia-barsmap.js +2 -30
  16. package/components/visualizers/babia-boats.js +291 -279
  17. package/components/visualizers/babia-bubbles.js +9 -26
  18. package/components/visualizers/babia-city.js +19 -9
  19. package/components/visualizers/babia-cyls.js +197 -201
  20. package/components/visualizers/babia-cylsmap.js +171 -241
  21. package/components/visualizers/babia-doughnut.js +2 -28
  22. package/components/visualizers/babia-network.js +191 -124
  23. package/components/visualizers/babia-pie.js +2 -30
  24. package/dist/aframe-babia-components.js +6785 -5626
  25. package/dist/aframe-babia-components.min.js +7 -1
  26. package/dist/aframe-babia-components.min.js.map +1 -0
  27. package/docs/APIs/CHARTS.md +11 -4
  28. package/docs/APIs/DATAMANAGEMENT.md +7 -0
  29. package/docs/APIs/OTHERS.md +27 -0
  30. package/docs/APIs/QUERIERS.md +16 -0
  31. package/docs/RELEASE_NOTES.md +44 -23
  32. package/docs/Tutorials/multiuser.md +47 -2
  33. package/docs/Tutorials/temporal_evol_with_boats.md +4 -4
  34. package/examples/assets/door/New Bitmap Image.jpg +0 -0
  35. package/examples/assets/door/door.mtl +26 -0
  36. package/examples/assets/door/door.obj +6927 -0
  37. package/examples/assets/popups/0.png +0 -0
  38. package/examples/assets/popups/1.png +0 -0
  39. package/examples/assets/popups/10.png +0 -0
  40. package/examples/assets/popups/2.png +0 -0
  41. package/examples/assets/popups/3.png +0 -0
  42. package/examples/assets/popups/4.png +0 -0
  43. package/examples/assets/popups/5.png +0 -0
  44. package/examples/assets/popups/6.png +0 -0
  45. package/examples/assets/popups/7.png +0 -0
  46. package/examples/assets/popups/8.png +0 -0
  47. package/examples/assets/popups/9.png +0 -0
  48. package/examples/assets/popups/close.jpg +0 -0
  49. package/examples/assets/popups/info.jpg +0 -0
  50. package/examples/assets/textures/brownwall.png +0 -0
  51. package/examples/assets/textures/concrete.png +0 -0
  52. package/examples/assets/textures/white-wall-texture.jpg +0 -0
  53. package/examples/boats/boats_new_element/data1.json +18 -18
  54. package/examples/boats/boats_new_element/data2.json +19 -19
  55. package/examples/boats/boats_new_element/index.html +1 -1
  56. package/examples/charts/cyls/index.html +13 -4
  57. package/examples/charts/cyls/primitive.html +76 -0
  58. package/examples/charts/cylsmap/index.html +14 -5
  59. package/examples/charts_querier/bars_querier/data.csv +10 -0
  60. package/examples/charts_querier/bars_querier/index_csv.html +80 -0
  61. package/examples/dashboard/chaoss-dashboards.html +259 -0
  62. package/examples/dashboard/chaoss-issues.html +248 -0
  63. package/examples/dashboard/chaoss-pr.html +248 -0
  64. package/examples/dashboard/index.html +247 -0
  65. package/examples/dashboard/issues_queries/80-percent-open-time.json +123 -0
  66. package/examples/dashboard/issues_queries/issues-by-organization.json +107 -0
  67. package/examples/dashboard/issues_queries/issues.json +117 -0
  68. package/examples/dashboard/issues_queries/median-open-time.json +123 -0
  69. package/examples/dashboard/issues_queries/organizations.json +130 -0
  70. package/examples/dashboard/issues_queries/projects.json +130 -0
  71. package/examples/dashboard/issues_queries/repositories.json +130 -0
  72. package/examples/dashboard/issues_queries/status.json +107 -0
  73. package/examples/dashboard/issues_queries/submitter.json +125 -0
  74. package/examples/dashboard/issues_queries/submitters.json +113 -0
  75. package/examples/dashboard/pullrequests_queries/80-percent-open-time.json +123 -0
  76. package/examples/dashboard/pullrequests_queries/median-open-time.json +123 -0
  77. package/examples/dashboard/pullrequests_queries/organizations.json +130 -0
  78. package/examples/dashboard/pullrequests_queries/projects.json +130 -0
  79. package/examples/dashboard/pullrequests_queries/pull-requests-by-organization.json +107 -0
  80. package/examples/dashboard/pullrequests_queries/pull-requests.json +117 -0
  81. package/examples/dashboard/pullrequests_queries/repositories.json +130 -0
  82. package/examples/dashboard/pullrequests_queries/status.json +107 -0
  83. package/examples/dashboard/pullrequests_queries/submitter.json +125 -0
  84. package/examples/dashboard/pullrequests_queries/submitters.json +113 -0
  85. package/examples/dashboard/range.html +88 -0
  86. package/examples/dashboard/template.html +136 -0
  87. package/examples/demos/1.0.11/index_multiuser_ui.html +1 -1
  88. package/examples/multi_bars/data.json +14 -0
  89. package/examples/multi_bars/data2.json +15 -0
  90. package/examples/multi_bars/data3.json +23 -0
  91. package/examples/multi_bars/easyrtc.js +11984 -0
  92. package/examples/multi_bars/index.html +97 -0
  93. package/examples/multi_bars/index1.html +111 -0
  94. package/examples/multi_bars/index2.html +102 -0
  95. package/examples/multi_bars/index3.html +104 -0
  96. package/examples/multi_boats/data3.json +174 -0
  97. package/examples/multi_boats/data4.json +192 -0
  98. package/examples/multi_boats/easyrtc.js +11984 -0
  99. package/examples/multi_boats/index_multi_boats.html +223 -0
  100. package/examples/multi_boats/jetuml.html +256 -0
  101. package/examples/multi_boats/jetuml_code_data.json +1 -0
  102. package/examples/multi_boats/jetuml_evolution_experiment.html +419 -0
  103. package/examples/multi_boats/only_queryjson.html +132 -0
  104. package/examples/multi_boats/only_queryjson2.html +167 -0
  105. package/examples/multi_boats/only_queryjson3.html +165 -0
  106. package/examples/multi_boats/queryjson_treebuilder.html +132 -0
  107. package/examples/multi_boats/with_selector.html +255 -0
  108. package/examples/multiuser/choose_avatar/index.html +18 -8
  109. package/examples/selector_boats/jetuml.html +74 -0
  110. package/examples/selector_boats/jetuml_evol_data.json +1 -0
  111. package/examples/selector_boats/jetuml_from_3_2_to_1_0.json +62382 -0
  112. package/examples/selector_boats/jetumltest.html +80 -0
  113. package/examples/ui/link/index.html +12 -11
  114. package/examples/ui/network/data.json +123 -0
  115. package/examples/ui/network/links.json +13 -0
  116. package/examples/ui/network/network.html +75 -0
  117. package/examples/ui/network/network_nodes_links.html +82 -0
  118. package/examples/ui/network/nodes.json +12 -0
  119. package/index.html +73 -2
  120. package/index.js +12 -1
  121. package/package.json +6 -3
  122. package/tests/screenshots/other_snapshots.js/chaoss-issues.png +0 -0
  123. package/tests/screenshots/other_snapshots.js/chaoss-pr.png +0 -0
  124. package/tests/screenshots/other_snapshots.js/template.png +0 -0
  125. package/tests/ui.js +7 -0
  126. package/webpack.common.js +10 -1
  127. package/webpack.devnossl.js +16 -0
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,108 +1,108 @@
1
1
  [
2
2
  {
3
- "uid": "001",
3
+ "path": "001",
4
4
  "width": "5",
5
5
  "height": "1",
6
6
  "depth": "5"
7
7
  },
8
8
  {
9
- "uid": "003",
9
+ "path": "003",
10
10
  "width": "5",
11
11
  "height": "1",
12
12
  "depth": "5"
13
13
  },
14
14
  {
15
- "uid": "004",
15
+ "path": "004",
16
16
  "width": "2",
17
17
  "height": "1",
18
18
  "depth": "2"
19
19
  },
20
20
  {
21
- "uid": "005",
21
+ "path": "005",
22
22
  "width": "3",
23
23
  "height": "1",
24
24
  "depth": "3"
25
25
  },
26
26
  {
27
- "uid": "006",
27
+ "path": "006",
28
28
  "width": "3",
29
29
  "height": "1",
30
30
  "depth": "3"
31
31
  },
32
32
  {
33
- "uid": "007",
33
+ "path": "007",
34
34
  "width": "5",
35
35
  "height": "1",
36
36
  "depth": "5"
37
37
  },
38
38
  {
39
- "uid": "008",
39
+ "path": "008",
40
40
  "width": "3",
41
41
  "height": "1",
42
42
  "depth": "3"
43
43
  },
44
44
  {
45
- "uid": "009",
45
+ "path": "009",
46
46
  "width": "5",
47
47
  "height": "1",
48
48
  "depth": "5"
49
49
  },
50
50
  {
51
- "uid": "010",
51
+ "path": "010",
52
52
  "width": "5",
53
53
  "height": "1",
54
54
  "depth": "5"
55
55
  },
56
56
  {
57
- "uid": "011",
57
+ "path": "011",
58
58
  "width": "3",
59
59
  "height": "1",
60
60
  "depth": "3"
61
61
  },
62
62
  {
63
- "uid": "012",
63
+ "path": "012",
64
64
  "width": "3",
65
65
  "height": "1",
66
66
  "depth": "3"
67
67
  },
68
68
  {
69
- "uid": "013",
69
+ "path": "013",
70
70
  "width": "5",
71
71
  "height": "1",
72
72
  "depth": "5"
73
73
  },
74
74
  {
75
- "uid": "014",
75
+ "path": "014",
76
76
  "width": "3",
77
77
  "height": "1",
78
78
  "depth": "3"
79
79
  },
80
80
  {
81
- "uid": "015",
81
+ "path": "015",
82
82
  "width": "5",
83
83
  "height": "1",
84
84
  "depth": "5"
85
85
  },
86
86
  {
87
- "uid": "016",
87
+ "path": "016",
88
88
  "width": "5",
89
89
  "height": "1",
90
90
  "depth": "5"
91
91
  },
92
92
  {
93
- "uid": "017",
93
+ "path": "017",
94
94
  "width": "3",
95
95
  "height": "1",
96
96
  "depth": "3"
97
97
  },
98
98
  {
99
- "uid": "018",
99
+ "path": "018",
100
100
  "width": "3",
101
101
  "height": "1",
102
102
  "depth": "3"
103
103
  },
104
104
  {
105
- "uid": "019",
105
+ "path": "019",
106
106
  "width": "5",
107
107
  "height": "1",
108
108
  "depth": "5"
@@ -1,114 +1,114 @@
1
1
  [
2
2
  {
3
- "uid": "001",
3
+ "path": "001",
4
4
  "width": "5",
5
5
  "height": "1",
6
6
  "depth": "5"
7
7
  },
8
8
  {
9
- "uid": "003",
9
+ "path": "003",
10
10
  "width": "5",
11
11
  "height": "1",
12
12
  "depth": "5"
13
13
  },
14
14
  {
15
- "uid": "004",
15
+ "path": "004",
16
16
  "width": "2",
17
17
  "height": "1",
18
18
  "depth": "2"
19
19
  },
20
20
  {
21
- "uid": "005",
21
+ "path": "005",
22
22
  "width": "3",
23
23
  "height": "1",
24
24
  "depth": "3"
25
25
  },
26
26
  {
27
- "uid": "006",
27
+ "path": "006",
28
28
  "width": "3",
29
29
  "height": "1",
30
30
  "depth": "3"
31
31
  },
32
32
  {
33
- "uid": "007",
33
+ "path": "007",
34
34
  "width": "5",
35
35
  "height": "1",
36
36
  "depth": "5"
37
37
  },
38
38
  {
39
- "uid": "008",
39
+ "path": "008",
40
40
  "width": "3",
41
41
  "height": "1",
42
42
  "depth": "3"
43
43
  },
44
44
  {
45
- "uid": "009",
45
+ "path": "009",
46
46
  "width": "5",
47
47
  "height": "1",
48
48
  "depth": "5"
49
49
  },
50
50
  {
51
- "uid": "010",
51
+ "path": "010",
52
52
  "width": "5",
53
53
  "height": "1",
54
54
  "depth": "5"
55
55
  },
56
56
  {
57
- "uid": "011",
57
+ "path": "011",
58
58
  "width": "3",
59
59
  "height": "1",
60
60
  "depth": "3"
61
61
  },
62
62
  {
63
- "uid": "012",
63
+ "path": "012",
64
64
  "width": "3",
65
65
  "height": "1",
66
66
  "depth": "3"
67
67
  },
68
68
  {
69
- "uid": "013",
69
+ "path": "013",
70
70
  "width": "5",
71
71
  "height": "1",
72
72
  "depth": "5"
73
73
  },
74
74
  {
75
- "uid": "014",
75
+ "path": "014",
76
76
  "width": "3",
77
77
  "height": "1",
78
78
  "depth": "3"
79
79
  },
80
80
  {
81
- "uid": "015",
81
+ "path": "015",
82
82
  "width": "5",
83
83
  "height": "1",
84
84
  "depth": "5"
85
85
  },
86
86
  {
87
- "uid": "016",
87
+ "path": "016",
88
88
  "width": "5",
89
89
  "height": "1",
90
90
  "depth": "5"
91
91
  },
92
92
  {
93
- "uid": "017",
93
+ "path": "017",
94
94
  "width": "3",
95
95
  "height": "1",
96
96
  "depth": "3"
97
97
  },
98
98
  {
99
- "uid": "018",
99
+ "path": "018",
100
100
  "width": "3",
101
101
  "height": "1",
102
102
  "depth": "3"
103
103
  },
104
104
  {
105
- "uid": "019",
105
+ "path": "019",
106
106
  "width": "5",
107
107
  "height": "1",
108
108
  "depth": "5"
109
109
  },
110
110
  {
111
- "uid": "020",
111
+ "path": "020",
112
112
  "width": "10",
113
113
  "height": "1",
114
114
  "depth": "10"
@@ -16,7 +16,7 @@
16
16
  <a-entity id="data1" babia-queryjson="url: data1.json;"></a-entity>
17
17
  <a-entity id="data2" babia-queryjson="url: data2.json;"></a-entity>
18
18
 
19
- <a-entity id="boats" babia-boats="from: data1" position="0 1 0"></a-entity>
19
+ <a-entity id="boats" babia-boats="from: data1; field: path" position="0 1 0"></a-entity>
20
20
 
21
21
  <a-entity movement-controls="fly: true" position="5 20 0" rotation="-90 0 0">
22
22
  <a-entity camera look-controls></a-entity>
@@ -22,18 +22,27 @@
22
22
  <a-asset-item id="optimerBoldFont" src="https://rawgit.com/mrdoob/three.js/dev/examples/fonts/optimer_bold.typeface.json"></a-asset-item>
23
23
  </a-assets>
24
24
 
25
- <a-entity scale = "0.5 0.5. 0.5" babia-cyls='x_axis: key; legend: true; palette: ubuntu; title: babia-cyls;
25
+ <a-entity id="cyls" scale = "0.5 0.5. 0.5" babia-cyls='x_axis: key; legend: true; palette: ubuntu; title: babia-cyls;
26
26
  titleColor: #FFFFFF; titleFont: #optimerBoldFont; titlePosition: -10 0.5 5.5; radiusMax: 2; heightMax: 45; animation: true;
27
- data: [{"key":"Andrea","height":20,"radius":4},{"key":"Jesus","height":40,"radius":2},{"key":"David","height":30,"radius":1},{"key":"David","height":20,"radius":3}]'
27
+ data: [{"key":"Andrea","height":20,"radius":4},{"key":"Jesus","height":40,"radius":2},{"key":"David","height":30,"radius":1},{"key":"Almudena","height":20,"radius":3}]'
28
28
  position="0 0 0" rotation="0 0 0"></a-entity>
29
29
 
30
- <a-entity movement-controls="fly: true" position="-3 5 20">
31
- <a-entity camera position="7 5 0" look-controls></a-entity>
30
+ <a-entity movement-controls="fly: true" position="2 3 8">
31
+ <a-entity camera position="0 0 0" look-controls></a-entity>
32
32
  <a-entity cursor="rayOrigin:mouse"></a-entity>
33
33
  <a-entity laser-controls="hand: right"></a-entity>
34
34
  </a-entity>
35
35
  </a-scene>
36
36
 
37
+ <script>
38
+ setTimeout(updateData, 4000);
39
+ let data = '[{"key":"Andrea","height":2,"radius":1},{"key":"Jesus","height":20,"radius":10},{"key":"David","height":1,"radius":5},{"key":"Almudena","height":25,"radius":20}]';
40
+
41
+ function updateData () {
42
+ document.querySelector('#cyls').setAttribute('babia-cyls', 'data', data);
43
+ }
44
+ </script>
45
+
37
46
  <!-- GITLAB CORNER-->
38
47
  <div class="gitlab-corner-wrapper"><a href="https://gitlab.com/babiaxr/aframe-babia-components/-/blob/master/examples/charts/cyls/index.html" class="gitlab-corner"
39
48
  aria-label="View source on GitLab"><svg id="logo_art" data-name="logo art" xmlns="http://www.w3.org/2000/svg"
@@ -0,0 +1,76 @@
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 Cylinder example." />
8
+ <script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
9
+ <script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v6.1.0/dist/aframe-extras.min.js"></script>
10
+ <script src="https://unpkg.com/aframe-environment-component@1.2.0/dist/aframe-environment-component.min.js"></script>
11
+ <script src="https://unpkg.com/aframe-text-geometry-component@0.5.1/dist/aframe-text-geometry-component.min.js"></script>
12
+ <script src="../../../dist/aframe-babia-components.js"></script>
13
+ <link rel="stylesheet" href="../../assets/gitlab-corner.css">
14
+ </head>
15
+
16
+ <body>
17
+ <a-scene background="color: #A8F3FF" id="AframeScene">
18
+ <a-entity environment></a-entity>
19
+ <a-light type="point" intensity="1" position="-10 20 30"></a-light>
20
+
21
+ <a-entity id="cyl" babia-cyl='height: 13; radius: 2; color: #FFF; label: events; labelText: Cilindro'
22
+ position="0 0 0" rotation="0 0 0"></a-entity>
23
+
24
+ <a-entity movement-controls="fly: true" position="0 5 20">
25
+ <a-entity camera position="0 5 0" look-controls></a-entity>
26
+ <a-entity cursor="rayOrigin:mouse"></a-entity>
27
+ <a-entity laser-controls="hand: right"></a-entity>
28
+ </a-entity>
29
+ </a-scene>
30
+
31
+ <script>
32
+ setTimeout(updateData, 4000);
33
+
34
+ function updateData () {
35
+ document.querySelector('#cyl').setAttribute('babia-cyl', {
36
+ radius: 1,
37
+ height: 5
38
+ });
39
+ }
40
+ </script>
41
+
42
+ <!-- GITLAB CORNER-->
43
+ <div class="gitlab-corner-wrapper"><a href="https://gitlab.com/babiaxr/aframe-babia-components/-/blob/master/examples/charts/cyls/index.html" class="gitlab-corner"
44
+ aria-label="View source on GitLab"><svg id="logo_art" data-name="logo art" xmlns="http://www.w3.org/2000/svg"
45
+ viewBox="0 0 586 559">
46
+ <g id="g44">
47
+ <path id="path46" class="cls-1"
48
+ 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" />
49
+ </g>
50
+ <g id="g48">
51
+ <path id="path50" class="cls-2" d="M293,434.91h0l62.16-191.28H230.87L293,434.91Z" />
52
+ </g>
53
+ <g id="g56">
54
+ <path id="path58" class="cls-1" d="M293,434.91,230.82,243.63h-87L293,434.91Z" />
55
+ </g>
56
+ <g id="g64">
57
+ <path id="path66" class="cls-3"
58
+ d="M143.75,243.69h0l-18.91,58.12a12.88,12.88,0,0,0,4.66,14.39L293,435,143.75,243.69Z" />
59
+ </g>
60
+ <g id="g72">
61
+ <path id="path74" class="cls-2" d="M143.78,243.69h87.11L193.4,128.49a6.47,6.47,0,0,0-12.27,0l-37.35,115.2Z" />
62
+ </g>
63
+ <g id="g76">
64
+ <path id="path78" class="cls-1" d="M293,434.91l62.16-191.28H442.3L293,434.91Z" />
65
+ </g>
66
+ <g id="g80">
67
+ <path id="path82" class="cls-3"
68
+ d="M442.24,243.69h0l18.91,58.12a12.85,12.85,0,0,1-4.66,14.39L293,434.91l149.2-191.22Z" />
69
+ </g>
70
+ <g id="g84">
71
+ <path id="path86" class="cls-2" d="M442.28,243.69h-87.1l37.42-115.2a6.46,6.46,0,0,1,12.26,0l37.42,115.2Z" />
72
+ </g>
73
+ </svg></a></div>
74
+
75
+ </body>
76
+ </html>
@@ -22,18 +22,27 @@
22
22
  <a-asset-item id="optimerBoldFont" src="https://rawgit.com/mrdoob/three.js/dev/examples/fonts/optimer_bold.typeface.json"></a-asset-item>
23
23
  </a-assets>
24
24
 
25
- <a-entity scale = "0.5 0.5. 0.5" babia-cylsmap='x_axis: key; z_axis: key2; legend: true; animation: true; title: babia-cylsmap;
26
- titleColor: #FFFFFF; titleFont: #optimerBoldFont; titlePosition: -13 0.5 -5.5; heightMax: 20; radiusMax: 2;
25
+ <a-entity id="cylsmap" babia-cylsmap='x_axis: key; z_axis: key2; legend: true; animation: true; title: babia-cylsmap;
26
+ titleColor: #FFFFFF; titleFont: #optimerBoldFont; titlePosition: -6 0.5 15; heightMax: 20; radiusMax: 2;
27
27
  data: [{"key":"Andrea","key2":"2018","height":15,"radius":2},{"key":"Jesus","key2":"2018","height":3,"radius":5},{"key":"David","key2":"2021","height":5,"radius":1},{"key":"Jesus","key2":"2020","height":25,"radius":1},{"key":"Jesus","key2":"2021","height":10,"radius":4},{"key":"Andrea","key2":"2020","height":6,"radius":4},{"key":"David","key2":"2019","height":17,"radius":3}]'
28
- position="0 0 0" rotation="0 0 0"></a-entity>
28
+ position="0 0.5 0" rotation="0 0 0"></a-entity>
29
29
 
30
- <a-entity movement-controls="fly: true" position="-3 5 26">
31
- <a-entity camera position="7 5 0" look-controls></a-entity>
30
+ <a-entity movement-controls="fly: true" position="2 7 25" rotation="0 0 0">
31
+ <a-entity camera position="0 0 0" look-controls></a-entity>
32
32
  <a-entity cursor="rayOrigin:mouse"></a-entity>
33
33
  <a-entity laser-controls="hand: right"></a-entity>
34
34
  </a-entity>
35
35
  </a-scene>
36
36
 
37
+ <script>
38
+ setTimeout(updateData, 10000);
39
+ let data = '[{"key":"Andrea","key2":"2018","height":15,"radius":4},{"key":"Jesus","key2":"2018","height":3,"radius":5},{"key":"David","key2":"2021","height":5,"radius":1},{"key":"Jesus","key2":"2020","height":25,"radius":1},{"key":"Jesus","key2":"2021","height":10,"radius":4},{"key":"Andrea","key2":"2020","height":6,"radius":5},{"key":"David","key2":"2019","height":17,"radius":3}]';
40
+
41
+ function updateData () {
42
+ //document.querySelector('#cylsmap').setAttribute('babia-cylsmap', 'data', data);
43
+ }
44
+ </script>
45
+
37
46
  <!-- GITLAB CORNER-->
38
47
  <div class="gitlab-corner-wrapper"><a href="https://gitlab.com/babiaxr/aframe-babia-components/-/blob/master/examples/charts/cylsmap/index.html" class="gitlab-corner"
39
48
  aria-label="View source on GitLab"><svg id="logo_art" data-name="logo art" xmlns="http://www.w3.org/2000/svg"
@@ -0,0 +1,10 @@
1
+ x_axis,name2,size,height
2
+ First,Aaaa,10,2
3
+ Second,Bbbbb,5,15
4
+ Third,Cccc,9,17
5
+ Fourth,Dddd,12,2
6
+ Fifth,Eeee,16,21
7
+ Sixth,Ffff,2,13
8
+ Seventh,Gggg,1,19
9
+ Eight,Hhhh,8,8
10
+ Nineth,Iiii,3,5
@@ -0,0 +1,80 @@
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 Bars example with Querier" />
8
+ <script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
9
+ <script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v6.1.0/dist/aframe-extras.min.js"></script>
10
+ <script src="https://unpkg.com/aframe-environment-component@1.2.0/dist/aframe-environment-component.min.js"></script>
11
+ <script src="https://unpkg.com/aframe-text-geometry-component@0.5.1/dist/aframe-text-geometry-component.min.js"></script>
12
+ <script src="../../../dist/aframe-babia-components.js"></script>
13
+ <link rel="stylesheet" href="../../assets/gitlab-corner.css">
14
+ </head>
15
+
16
+ <body>
17
+ <a-scene background="color: #A8F3FF" id="AframeScene">
18
+ <a-entity environment="playArea: 2"></a-entity>
19
+ <a-light type="point" intensity="1" position="-10 20 30"></a-light>
20
+
21
+ <a-entity babia-querycsv="url: ./data.csv;"
22
+ babia-bars='legend: true; axis: true'
23
+ position="-13 0 0" rotation="0 0 0"></a-entity>
24
+
25
+ <a-entity babia-querycsv="data: x_axis,name2,size,height
26
+ First,Aaaa,10,2
27
+ Second,Bbbbb,5,15
28
+ Third,Cccc,9,17
29
+ Fourth,Dddd,12,2
30
+ Fifth,Eeee,16,21
31
+ Sixth,Ffff,2,13
32
+ Seventh,Gggg,1,19
33
+ Eight,Hhhh,8,8
34
+ Nineth,Iiii,3,5
35
+ ;"
36
+ babia-bars="legend: true; axis: true2"
37
+ position="2 0 0" rotation="0 0 0"></a-entity>
38
+
39
+ <a-entity movement-controls="fly: true" position="-3 5 10">
40
+ <a-entity camera position="0 0 0" look-controls></a-entity>
41
+ <a-entity cursor="rayOrigin:mouse"></a-entity>
42
+ <a-entity laser-controls="hand: right"></a-entity>
43
+ </a-entity>
44
+ </a-scene>
45
+
46
+ <!-- GITLAB CORNER-->
47
+ <div class="gitlab-corner-wrapper"><a href="https://gitlab.com/babiaxr/aframe-babia-components/-/blob/master/examples/charts_querier/bars_querier/index.html" class="gitlab-corner"
48
+ aria-label="View source on GitLab"><svg id="logo_art" data-name="logo art" xmlns="http://www.w3.org/2000/svg"
49
+ viewBox="0 0 586 559">
50
+ <g id="g44">
51
+ <path id="path46" class="cls-1"
52
+ 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" />
53
+ </g>
54
+ <g id="g48">
55
+ <path id="path50" class="cls-2" d="M293,434.91h0l62.16-191.28H230.87L293,434.91Z" />
56
+ </g>
57
+ <g id="g56">
58
+ <path id="path58" class="cls-1" d="M293,434.91,230.82,243.63h-87L293,434.91Z" />
59
+ </g>
60
+ <g id="g64">
61
+ <path id="path66" class="cls-3"
62
+ d="M143.75,243.69h0l-18.91,58.12a12.88,12.88,0,0,0,4.66,14.39L293,435,143.75,243.69Z" />
63
+ </g>
64
+ <g id="g72">
65
+ <path id="path74" class="cls-2" d="M143.78,243.69h87.11L193.4,128.49a6.47,6.47,0,0,0-12.27,0l-37.35,115.2Z" />
66
+ </g>
67
+ <g id="g76">
68
+ <path id="path78" class="cls-1" d="M293,434.91l62.16-191.28H442.3L293,434.91Z" />
69
+ </g>
70
+ <g id="g80">
71
+ <path id="path82" class="cls-3"
72
+ d="M442.24,243.69h0l18.91,58.12a12.85,12.85,0,0,1-4.66,14.39L293,434.91l149.2-191.22Z" />
73
+ </g>
74
+ <g id="g84">
75
+ <path id="path86" class="cls-2" d="M442.28,243.69h-87.1l37.42-115.2a6.46,6.46,0,0,1,12.26,0l37.42,115.2Z" />
76
+ </g>
77
+ </svg></a></div>
78
+
79
+ </body>
80
+ </html>