Skip to content

Commit ef8134e

Browse files
committed
build dist
1 parent 08f016c commit ef8134e

File tree

2 files changed

+18
-35
lines changed

2 files changed

+18
-35
lines changed

dist/super-hands.js

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2-
"use strict";
3-
42
/* global AFRAME */
53

64
if (typeof AFRAME === 'undefined') {
@@ -287,6 +285,9 @@ AFRAME.registerComponent('super-hands', {
287285
const hoverEls = this.hoverEls;
288286
const hitElIndex = this.hoverEls.indexOf(hitEl);
289287
let hoverNeedsUpdate = false;
288+
if (dist && intersection.instanceId !== undefined) hitEl.object3D.userData = {
289+
instanceId: intersection.instanceId
290+
};
290291
if (hitElIndex === -1) {
291292
hoverNeedsUpdate = true;
292293
// insert in order of distance when available
@@ -542,8 +543,6 @@ AFRAME.registerComponent('super-hands', {
542543
});
543544

544545
},{"./reaction_components/clickable.js":2,"./reaction_components/drag-droppable.js":3,"./reaction_components/draggable.js":4,"./reaction_components/droppable.js":5,"./reaction_components/grabbable.js":6,"./reaction_components/hoverable.js":7,"./reaction_components/stretchable.js":10,"./systems/super-hands-system.js":11}],2:[function(require,module,exports){
545-
"use strict";
546-
547546
/* global AFRAME */
548547
const buttonCore = require('./prototypes/buttons-proto.js');
549548
AFRAME.registerComponent('clickable', AFRAME.utils.extendDeep({}, buttonCore, {
@@ -596,8 +595,6 @@ AFRAME.registerComponent('clickable', AFRAME.utils.extendDeep({}, buttonCore, {
596595
}));
597596

598597
},{"./prototypes/buttons-proto.js":8}],3:[function(require,module,exports){
599-
"use strict";
600-
601598
/* global AFRAME */
602599
const inherit = AFRAME.utils.extendDeep;
603600
const buttonCore = require('./prototypes/buttons-proto.js');
@@ -667,8 +664,6 @@ AFRAME.registerComponent('drag-droppable', inherit({}, buttonCore, {
667664
}));
668665

669666
},{"./prototypes/buttons-proto.js":8}],4:[function(require,module,exports){
670-
"use strict";
671-
672667
/* global AFRAME */
673668
const inherit = AFRAME.utils.extendDeep;
674669
const buttonCore = require('./prototypes/buttons-proto.js');
@@ -707,8 +702,6 @@ AFRAME.registerComponent('draggable', inherit({}, buttonCore, {
707702
}));
708703

709704
},{"./prototypes/buttons-proto.js":8}],5:[function(require,module,exports){
710-
"use strict";
711-
712705
/* global AFRAME */
713706
function elementMatches(el, selector) {
714707
if (el.matches) {
@@ -838,8 +831,6 @@ AFRAME.registerComponent('droppable', {
838831
});
839832

840833
},{}],6:[function(require,module,exports){
841-
"use strict";
842-
843834
/* global AFRAME, THREE */
844835
const inherit = AFRAME.utils.extendDeep;
845836
const physicsCore = require('./prototypes/physics-grab-proto.js');
@@ -996,8 +987,6 @@ AFRAME.registerComponent('grabbable', inherit(base, {
996987
}));
997988

998989
},{"./prototypes/buttons-proto.js":8,"./prototypes/physics-grab-proto.js":9}],7:[function(require,module,exports){
999-
"use strict";
1000-
1001990
/* global AFRAME */
1002991
AFRAME.registerComponent('hoverable', {
1003992
init: function () {
@@ -1041,8 +1030,6 @@ AFRAME.registerComponent('hoverable', {
10411030
});
10421031

10431032
},{}],8:[function(require,module,exports){
1044-
"use strict";
1045-
10461033
// common code used in customizing reaction components by button
10471034
module.exports = function () {
10481035
function buttonIsValid(evt, buttonList) {
@@ -1067,8 +1054,6 @@ module.exports = function () {
10671054
}();
10681055

10691056
},{}],9:[function(require,module,exports){
1070-
"use strict";
1071-
10721057
// base code used by grabbable for physics interactions
10731058
module.exports = {
10741059
schema: {
@@ -1127,8 +1112,6 @@ module.exports = {
11271112
};
11281113

11291114
},{}],10:[function(require,module,exports){
1130-
"use strict";
1131-
11321115
/* global AFRAME, THREE */
11331116
const inherit = AFRAME.utils.extendDeep;
11341117
const buttonsCore = require('./prototypes/buttons-proto.js');
@@ -1204,7 +1187,6 @@ AFRAME.registerComponent('stretchable', inherit(base, {
12041187
evt.preventDefault();
12051188
} // gesture accepted
12061189
},
1207-
12081190
end: function (evt) {
12091191
const stretcherIndex = this.stretchers.indexOf(evt.detail.hand);
12101192
if (evt.defaultPrevented || !this.endButtonOk(evt)) {
@@ -1266,8 +1248,6 @@ AFRAME.registerComponent('stretchable', inherit(base, {
12661248
}));
12671249

12681250
},{"./prototypes/buttons-proto.js":8}],11:[function(require,module,exports){
1269-
"use strict";
1270-
12711251
/* global AFRAME */
12721252
AFRAME.registerSystem('super-hands', {
12731253
init: function () {

0 commit comments

Comments
 (0)