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
64if ( 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 */
548547const buttonCore = require ( './prototypes/buttons-proto.js' ) ;
549548AFRAME . 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 */
602599const inherit = AFRAME . utils . extendDeep ;
603600const 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 */
673668const inherit = AFRAME . utils . extendDeep ;
674669const 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 */
713706function 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 */
844835const inherit = AFRAME . utils . extendDeep ;
845836const 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 */
1002991AFRAME . 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
10471034module . 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
10731058module . exports = {
10741059 schema : {
@@ -1130,8 +1115,6 @@ module.exports = {
11301115} ;
11311116
11321117} , { } ] , 10 :[ function ( require , module , exports ) {
1133- "use strict" ;
1134-
11351118/* global AFRAME, THREE */
11361119const inherit = AFRAME . utils . extendDeep ;
11371120const buttonsCore = require ( './prototypes/buttons-proto.js' ) ;
@@ -1207,7 +1190,6 @@ AFRAME.registerComponent('stretchable', inherit(base, {
12071190 evt . preventDefault ( ) ;
12081191 } // gesture accepted
12091192 } ,
1210-
12111193 end : function ( evt ) {
12121194 const stretcherIndex = this . stretchers . indexOf ( evt . detail . hand ) ;
12131195 if ( evt . defaultPrevented || ! this . endButtonOk ( evt ) ) {
@@ -1277,8 +1259,6 @@ AFRAME.registerComponent('stretchable', inherit(base, {
12771259} ) ) ;
12781260
12791261} , { "./prototypes/buttons-proto.js" :8 } ] , 11 :[ function ( require , module , exports ) {
1280- "use strict" ;
1281-
12821262/* global AFRAME */
12831263AFRAME . registerSystem ( 'super-hands' , {
12841264 init : function ( ) {
0 commit comments