Skip to content

Commit f0ad636

Browse files
committed
Bump A-Frame to v0.8.0 release
Fix position/scale references in machinima tests Skip progressive-controls related machinima tests (controller connections no longer being spoofed succesffuly by aframe-motion-capture-components). Update example A-Frame links
1 parent 77a3494 commit f0ad636

File tree

16 files changed

+14736
-42
lines changed

16 files changed

+14736
-42
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Install and use by directly including the [browser files](dist):
8383
```html
8484
<head>
8585
<title>Most Basic Super-Hands Example</title>
86-
<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
86+
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
8787
<script src="//cdn.rawgit.com/donmccurdy/aframe-extras/v3.12.4/dist/aframe-extras.min.js"></script>
8888
<script src="https://unpkg.com/[email protected]/dist/super-hands.min.js"></script>
8989
</head>

dist/super-hands.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(require,module,exports){
1+
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
22
'use strict';
33

44
/* global AFRAME */
@@ -186,9 +186,9 @@ AFRAME.registerComponent('super-hands', {
186186
},
187187
onStretchEndButton: function (evt) {
188188
const stretched = this.state.get(this.STRETCH_EVENT);
189-
const endEvt = { hand: this.el, buttonEvent: evt
190-
// check if end event accepted
191-
};if (stretched && !this.emitCancelable(stretched, this.UNSTRETCH_EVENT, endEvt)) {
189+
const endEvt = { hand: this.el, buttonEvent: evt };
190+
// check if end event accepted
191+
if (stretched && !this.emitCancelable(stretched, this.UNSTRETCH_EVENT, endEvt)) {
192192
this.promoteHoveredEl(stretched);
193193
this.state.delete(this.STRETCH_EVENT);
194194
this.hover();
@@ -522,6 +522,7 @@ AFRAME.registerComponent('locomotor-auto-config', {
522522
if (this.data.camera) {
523523
if (!document.querySelector('a-camera, [camera]')) {
524524
let cam = document.createElement('a-camera');
525+
cam.setAttribute('position', '0 1.6 0');
525526
this.el.appendChild(cam);
526527
}
527528
}
@@ -1121,9 +1122,9 @@ AFRAME.registerComponent('grabbable', inherit(base, {
11211122
this.deltaPositionIsValid = false;
11221123
this.grabDistance = undefined;
11231124
this.grabDirection = { x: 0, y: 0, z: -1 };
1124-
this.grabOffset = { x: 0, y: 0, z: 0
1125-
// persistent object speeds up repeat setAttribute calls
1126-
};this.destPosition = { x: 0, y: 0, z: 0 };
1125+
this.grabOffset = { x: 0, y: 0, z: 0 };
1126+
// persistent object speeds up repeat setAttribute calls
1127+
this.destPosition = { x: 0, y: 0, z: 0 };
11271128
this.deltaPosition = new THREE.Vector3();
11281129
this.targetPosition = new THREE.Vector3();
11291130
this.physicsInit();

dist/super-hands.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/build.js

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(require,module,exports){
1+
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
22
'use strict';
33

44
require('../index.js');
@@ -213,9 +213,9 @@ AFRAME.registerComponent('super-hands', {
213213
},
214214
onStretchEndButton: function (evt) {
215215
const stretched = this.state.get(this.STRETCH_EVENT);
216-
const endEvt = { hand: this.el, buttonEvent: evt
217-
// check if end event accepted
218-
};if (stretched && !this.emitCancelable(stretched, this.UNSTRETCH_EVENT, endEvt)) {
216+
const endEvt = { hand: this.el, buttonEvent: evt };
217+
// check if end event accepted
218+
if (stretched && !this.emitCancelable(stretched, this.UNSTRETCH_EVENT, endEvt)) {
219219
this.promoteHoveredEl(stretched);
220220
this.state.delete(this.STRETCH_EVENT);
221221
this.hover();
@@ -429,24 +429,26 @@ AFRAME.registerComponent('super-hands', {
429429
this.el.addEventListener(this.data.colliderEndEvent, this.unWatch);
430430
this.el.addEventListener(this.data.colliderEndEvent, this.unHover);
431431

432+
// binding order to keep grabEnd from triggering dragover
433+
// again before dragDropEnd can delete its carried state
432434
this.data.grabStartButtons.forEach(b => {
433435
this.el.addEventListener(b, this.onGrabStartButton);
434436
});
435-
this.data.grabEndButtons.forEach(b => {
436-
this.el.addEventListener(b, this.onGrabEndButton);
437-
});
438437
this.data.stretchStartButtons.forEach(b => {
439438
this.el.addEventListener(b, this.onStretchStartButton);
440439
});
441-
this.data.stretchEndButtons.forEach(b => {
442-
this.el.addEventListener(b, this.onStretchEndButton);
443-
});
444440
this.data.dragDropStartButtons.forEach(b => {
445441
this.el.addEventListener(b, this.onDragDropStartButton);
446442
});
447443
this.data.dragDropEndButtons.forEach(b => {
448444
this.el.addEventListener(b, this.onDragDropEndButton);
449445
});
446+
this.data.stretchEndButtons.forEach(b => {
447+
this.el.addEventListener(b, this.onStretchEndButton);
448+
});
449+
this.data.grabEndButtons.forEach(b => {
450+
this.el.addEventListener(b, this.onGrabEndButton);
451+
});
450452
},
451453
unRegisterListeners: function (data) {
452454
data = data || this.data;
@@ -547,6 +549,7 @@ AFRAME.registerComponent('locomotor-auto-config', {
547549
if (this.data.camera) {
548550
if (!document.querySelector('a-camera, [camera]')) {
549551
let cam = document.createElement('a-camera');
552+
cam.setAttribute('position', '0 1.6 0');
550553
this.el.appendChild(cam);
551554
}
552555
}
@@ -2570,9 +2573,9 @@ AFRAME.registerComponent('grabbable', inherit(base, {
25702573
this.deltaPositionIsValid = false;
25712574
this.grabDistance = undefined;
25722575
this.grabDirection = { x: 0, y: 0, z: -1 };
2573-
this.grabOffset = { x: 0, y: 0, z: 0
2574-
// persistent object speeds up repeat setAttribute calls
2575-
};this.destPosition = { x: 0, y: 0, z: 0 };
2576+
this.grabOffset = { x: 0, y: 0, z: 0 };
2577+
// persistent object speeds up repeat setAttribute calls
2578+
this.destPosition = { x: 0, y: 0, z: 0 };
25762579
this.deltaPosition = new THREE.Vector3();
25772580
this.targetPosition = new THREE.Vector3();
25782581
this.physicsInit();

examples/events/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<html>
22
<head>
33
<title>A-Frame Super Hands Component - GlobalEventHandler Integration</title>
4-
<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
4+
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
55
<script src="//cdn.rawgit.com/donmccurdy/aframe-extras/v3.12.4/dist/aframe-extras.min.js"></script>
66
<script src="https://rawgit.com/feiss/aframe-environment-component/master/dist/aframe-environment-component.min.js"></script>
77
<!-- Replace "../build.js" with the super-hands distribution to run locally:
@@ -34,7 +34,7 @@
3434
<img id="portals-preview" src="../assets/portals.jpg"></img>
3535
</a-assets>
3636
<a-entity progressive-controls="objects: a-box, a-torus-knot, a-link">
37-
<a-camera>
37+
<a-camera position="0 1.6 0">
3838
<a-entity class="gazecaster">
3939
<a-sphere radius="0.02" visible="false" shadow>
4040
</a-sphere>

examples/locomotion/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<html>
22
<head>
33
<title>A-Frame Super Hands Component - Hand Locomotion</title>
4-
<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
4+
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
55
<script src="//cdn.rawgit.com/donmccurdy/aframe-extras/v3.12.4/dist/aframe-extras.min.js"></script>
66
<script src="a-painter-loader-component.min.js"></script>
77
<!-- Replace "../build.js" with the super-hands distribution to run locally:

examples/mouse/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<html>
22
<head>
33
<title>A-Frame Super Hands Component - Pointer Controls</title>
4-
<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
4+
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
55
<script src="https://unpkg.com/aframe-event-set-component@^4.0.0/dist/aframe-event-set-component.min.js"></script>
66
<script src="https://rawgit.com/feiss/aframe-environment-component/master/dist/aframe-environment-component.min.js"></script>
77
<!-- Replace "../build.js" with the super-hands distribution to run locally:

examples/physics/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<html>
22
<head>
33
<title>A-Frame Super Hands Component - Vive With Physics</title>
4-
<script src="https://aframe.io/releases/0.7.1/aframe.js"></script>
4+
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
55
<script src="//cdn.rawgit.com/donmccurdy/aframe-physics-system/v2.1.0/dist/aframe-physics-system.min.js"></script>
66
<script src="https://unpkg.com/aframe-event-set-component@^4.0.0/dist/aframe-event-set-component.min.js"></script>
77
<script src="https://unpkg.com/aframe-physics-extras/dist/aframe-physics-extras.min.js"></script>

examples/portals.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<html>
22
<head>
33
<title>A-Frame Super Hands Component - Examples Home</title>
4-
<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
4+
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
55
<script src="//cdn.rawgit.com/donmccurdy/aframe-extras/v3.12.4/dist/aframe-extras.min.js"></script>
66
<script src="https://cdn.rawgit.com/feiss/aframe-environment-component/a33afd32/dist/aframe-environment-component.min.js"></script>
77
<script src="https://unpkg.com/aframe-event-set-component@^4.0.0/dist/aframe-event-set-component.min.js"></script>

examples/sticky/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<html>
22
<head>
33
<title>A-Frame Super Hands Component - Sticky Grab</title>
4-
<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
4+
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
55
<script src="//cdn.rawgit.com/donmccurdy/aframe-extras/v3.12.4/dist/aframe-extras.min.js"></script>
66
<script src="//cdn.rawgit.com/donmccurdy/aframe-physics-system/v2.0.0/dist/aframe-physics-system.min.js"></script>
77
<script src="https://unpkg.com/aframe-event-set-component@^4.0.0/dist/aframe-event-set-component.min.js"></script>

0 commit comments

Comments
 (0)