Skip to content

Commit

Permalink
Updated to A-Frame 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
adrixp committed Mar 3, 2020
1 parent 333ba15 commit 9a8cefc
Show file tree
Hide file tree
Showing 27 changed files with 35 additions and 36 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Install and use by directly including the [browser files](dist):
```html
<head>
<title>My A-Frame Scene</title>
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"></script>
</head>

Expand Down Expand Up @@ -93,7 +93,7 @@ require('aframe-charts-component');
```html
<head>
<title>My A-Frame Scene</title>
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
</head>
Expand All @@ -116,7 +116,7 @@ require('aframe-charts-component');
```html
<head>
<title>My A-Frame Scene</title>
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"></script>
</head>

Expand Down
2 changes: 1 addition & 1 deletion dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/axis/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h1>Axis properties Chart Code</h1>

<pre><code class="html">&lt;head&gt;
&lt;title&gt;My A-Frame Scene&lt;/title&gt;
&lt;script src="https://aframe.io/releases/1.0.3/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://aframe.io/releases/1.0.4/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
Expand Down
2 changes: 1 addition & 1 deletion examples/axis/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>A-Frame A-Charts Component - Axis</title>
<meta name="description" content="Axis properties example for A-Charts component."/>
<script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="../../dist/aframe-charts-component.min.js"></script>
<style>
.home{
Expand Down
2 changes: 1 addition & 1 deletion examples/barChart/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>Bar Chart Code</h1>

<pre><code class="html">&lt;head&gt;
&lt;title&gt;My A-Frame Scene&lt;/title&gt;
&lt;script src="https://aframe.io/releases/1.0.3/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://aframe.io/releases/1.0.4/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
Expand Down
2 changes: 1 addition & 1 deletion examples/barChart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>A-Frame A-Charts Component - Bar</title>
<meta name="description" content="Bar example for A-Charts component."/>
<script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="../../dist/aframe-charts-component.min.js"></script>
<style>
.home{
Expand Down
2 changes: 1 addition & 1 deletion examples/bubbleChart/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>Bubble Chart Code</h1>

<pre><code class="html">&lt;head&gt;
&lt;title&gt;My A-Frame Scene&lt;/title&gt;
&lt;script src="https://aframe.io/releases/1.0.3/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://aframe.io/releases/1.0.4/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
Expand Down
2 changes: 1 addition & 1 deletion examples/bubbleChart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>A-Frame A-Charts Component - Bubble</title>
<meta name="description" content="Bubble example for A-Charts component."/>
<script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="../../dist/aframe-charts-component.min.js"></script>
<style>
.home{
Expand Down
2 changes: 1 addition & 1 deletion examples/cylinderChart/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>Cylinder Chart Code</h1>

<pre><code class="html">&lt;head&gt;
&lt;title&gt;My A-Frame Scene&lt;/title&gt;
&lt;script src="https://aframe.io/releases/1.0.3/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://aframe.io/releases/1.0.4/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
Expand Down
2 changes: 1 addition & 1 deletion examples/cylinderChart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>A-Frame A-Charts Component - Cylinder</title>
<meta name="description" content="Cylinder example for A-Charts component."/>
<script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="../../dist/aframe-charts-component.min.js"></script>
<style>
.home{
Expand Down
2 changes: 1 addition & 1 deletion examples/dataLoadChart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>A-Frame A-Charts Component - Bar</title>
<meta name="description" content="Bar example for A-Charts component."/>
<script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="../../dist/aframe-charts-component.min.js"></script>
<style>
.home{
Expand Down
2 changes: 1 addition & 1 deletion examples/legend/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>Legend Chart Code</h1>

<pre><code class="html">&lt;head&gt;
&lt;title&gt;My A-Frame Scene&lt;/title&gt;
&lt;script src="https://aframe.io/releases/1.0.3/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://aframe.io/releases/1.0.4/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
Expand Down
2 changes: 1 addition & 1 deletion examples/legend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>A-Frame A-Charts Component - Bubble</title>
<meta name="description" content="Bubble example for A-Charts component."/>
<script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="../../dist/aframe-charts-component.min.js"></script>
<style>
.home{
Expand Down
2 changes: 1 addition & 1 deletion examples/museum/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>Dynamic Museum Code</h1>

<pre><code class="html">&lt;head&gt;
&lt;title&gt;My A-Frame Scene&lt;/title&gt;
&lt;script src="https://aframe.io/releases/1.0.3/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://aframe.io/releases/1.0.4/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
Expand Down
11 changes: 5 additions & 6 deletions examples/museum/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,16 @@
<a-entity id="pieDoughnutId" charts="type: pie; dataPoints: ../data/dataPositive.json; pie_radius: 5; pie_doughnut: true" position="35 0 -10"></a-entity>

<a-light type="point" intensity="0.7" position="1 30 30"></a-light>
<a-entity charts='type: totem; entity_id_list: barId,bubbleId,pieId,cylinderId,pieDoughnutId;
dataPoints_list: {"dataPositive.json": "../data/dataPositive.json", "data.json": "../data/data.json","dataSmall.json": "../data/dataSmall.json"}' position="1 15 10"></a-entity>
<a-entity charts="type: totem; entity_id_list: barId,bubbleId,pieId,cylinderId,pieDoughnutId; dataPoints_list: {'dataPositive.json': '../data/dataPositive.json', 'data.json': '../data/data.json','dataSmall.json': '../data/dataSmall.json'}" position="1 15 10"></a-entity>


<a-entity movement-controls="fly: true" position="0 30 30" rotation="-24 15 0"> <!-- Camera fly movement. -->
<a-entity position="0 30 30" rotation="-24 15 0">
<a-camera position="4.2 -1 1.5" rotation="0 -1 0">
</a-camera>
</a-entity>
<!-- Control for Oculus Rift and VR Devices. -->
<a-entity id="leftHand" hand-controls="hand: left; handModelStyle: lowPoly; color: #ffcccc"></a-entity>
<a-entity id="rightHand" hand-controls="hand: right; handModelStyle: lowPoly; color: #ffcccc"></a-entity>
<a-entity laser-controls="hand: right" daydream-controls="" gearvr-controls="" magicleap-controls="" oculus-go-controls="" oculus-touch-controls="" vive-controls="" vive-focus-controls="" windows-motion-controls="" generic-tracked-controller-controls=""></a-entity>
<a-entity oculus-go-controls="" x-button-listener=""></a-entity>
<a-entity laser-controls="hand: left" daydream-controls="" gearvr-controls="" magicleap-controls="" oculus-go-controls="" oculus-touch-controls="" vive-controls="" vive-focus-controls="" windows-motion-controls="" generic-tracked-controller-controls=""></a-entity>

</a-scene>

Expand Down
2 changes: 1 addition & 1 deletion examples/pieChart/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>Pie Chart Code</h1>

<pre><code class="html">&lt;head&gt;
&lt;title&gt;My A-Frame Scene&lt;/title&gt;
&lt;script src="https://aframe.io/releases/1.0.3/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://aframe.io/releases/1.0.4/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
Expand Down
2 changes: 1 addition & 1 deletion examples/pieChart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>A-Frame A-Charts Component - Pie</title>
<meta name="description" content="Pie example for A-Charts component."/>
<script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="../../dist/aframe-charts-component.min.js"></script>
<style>
.home{
Expand Down
2 changes: 1 addition & 1 deletion examples/pieDoughnutChart/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>Doughnut Chart Code</h1>

<pre><code class="html">&lt;head&gt;
&lt;title&gt;My A-Frame Scene&lt;/title&gt;
&lt;script src="https://aframe.io/releases/1.0.3/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://aframe.io/releases/1.0.4/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
Expand Down
2 changes: 1 addition & 1 deletion examples/pieDoughnutChart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>A-Frame A-Charts Component - Doughnut</title>
<meta name="description" content="Doughnut example for A-Charts component."/>
<script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="../../dist/aframe-charts-component.min.js"></script>
<style>
.home{
Expand Down
2 changes: 1 addition & 1 deletion examples/popup/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>Pop up Chart Code</h1>

<pre><code class="html">&lt;head&gt;
&lt;title&gt;My A-Frame Scene&lt;/title&gt;
&lt;script src="https://aframe.io/releases/1.0.3/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://aframe.io/releases/1.0.4/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
Expand Down
2 changes: 1 addition & 1 deletion examples/popup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>A-Frame A-Charts Component - Bubble</title>
<meta name="description" content="Bubble example for A-Charts component."/>
<script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="../../dist/aframe-charts-component.min.js"></script>
<style>
.home{
Expand Down
2 changes: 1 addition & 1 deletion examples/tonsOfData/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>A-Frame A-Charts Component - Tons of data</title>
<meta name="description" content="Tons of data example for A-Charts component."/>
<script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="../../dist/aframe-charts-component.min.js"></script>
<style>
.home{
Expand Down
2 changes: 1 addition & 1 deletion examples/totem/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>Totem Code</h1>

<pre><code class="html">&lt;head&gt;
&lt;title&gt;My A-Frame Scene&lt;/title&gt;
&lt;script src="https://aframe.io/releases/1.0.3/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://aframe.io/releases/1.0.4/aframe.min.js"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/aframe-charts-component/dist/aframe-charts-component.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
Expand Down
4 changes: 2 additions & 2 deletions examples/totem/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>A-Frame A-Charts Component - Totem</title>
<meta name="description" content="Totem example for A-Charts component."/>
<script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="../../dist/aframe-charts-component.min.js"></script>
<style>
.home{
Expand All @@ -26,7 +26,7 @@
<a-entity id="barId" charts="type: bar; dataPoints: ../data/dataPositive.json" position="-20 22 14" rotation="0 30 -10"></a-entity>

<a-light type="point" intensity="0.7" position="1 30 30"></a-light>
<a-entity charts='type: totem; entity_id_list: barId; dataPoints_list: {"dataPositive.json": "../data/dataPositive.json", "data.json": "../data/data.json", "dataSmall.json": "../data/dataSmall.json"}' position="1 15 10"></a-entity>
<a-entity charts="type: totem; entity_id_list: barId; dataPoints_list: {'dataPositive.json': '../data/dataPositive.json', 'data.json': '../data/data.json', 'dataSmall.json': '../data/dataSmall.json'}" position="1 15 10"></a-entity>


<a-entity movement-controls="fly: true" position="0 30 30" rotation="-24 15 0">
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ function generateTotem(properties, element) {
if(properties.dataPoints_list === '')
return;

let dataPoints_list = properties.dataPoints_list.constructor === ({}).constructor ? properties.dataPoints_list : JSON.parse(properties.dataPoints_list);
let dataPoints_list = properties.dataPoints_list.constructor === ({}).constructor ? properties.dataPoints_list : JSON.parse(properties.dataPoints_list.replace(/'/g, '"'));
let position = getPosition(element);
let width = getTotemWidth(dataPoints_list);
element.appendChild(generateTotemTitle(width, position));
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aframe-charts-component",
"version": "2.1.8",
"version": "2.1.10",
"description": "Make 3D Charts with this component based on A-Frame.",
"main": "index.js",
"unpkg": "dist/aframe-charts-component.min.js",
Expand Down Expand Up @@ -41,7 +41,7 @@
},
"homepage": "https://github.com/adrixp/aframe-charts-component#readme",
"devDependencies": {
"aframe": "^1.0.3",
"aframe": "^1.0.4",
"browserify": "^16.2.3",
"budo": "^11.6.2",
"chai": "^3.4.1",
Expand Down

0 comments on commit 9a8cefc

Please sign in to comment.