diff --git a/README.md b/README.md index 680d00b..c439b8c 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ This is a fully functional example of what A-Frame code looks like. - + - * + * * * * @@ -96,7 +96,7 @@ * */ AFRAME.registerComponent('altspace', { - version: '1.1.1', + version: '1.3.0', schema: { usePixelScale: { type: 'boolean', default: 'false'}, verticalAlign: { type: 'string', default: 'middle'}, @@ -679,10 +679,15 @@ * octave down, and 2 is one octave up. * @prop {number} minDistance=1 - Inside this distance in meters, * the sound volume is at full volume. - * @prop {number} maxDistance=12 - Beyond this distance in meters, the sound - * will rapidly fall off to silence. - + * @prop {number} maxDistance=12 - If rolloff is 'logarithmic', the sound will stop attenuating at this distance. + * If rolloff is 'linear' or 'cosine', the sound will be silent at this distance. + * @prop {string} rolloff='logarithmic' - Set this to 'linear' or 'cosine' if you want to cut sounds off at a + * maxDistance. */ + /** + * Fired when a sound has loaded and is ready to be played + * @event native.n-sound#n-sound-loaded + */ AFRAME.registerComponent('n-sound', { init: function () { var src = this.data.src; @@ -755,6 +760,7 @@ pitch: { type: 'float', default: 1 }, minDistance: { type: 'float', default: 1 }, maxDistance: { type: 'float', default: 12 }, + rolloff: { type: 'string', default: 'logarithmic' }, } }); @@ -782,64 +788,64 @@ * @enum architecture * @memberof resources * - * @prop ceiling-2w-2l - * @prop ceiling-4w-4l - * @prop ceiling-4w-4l - * @prop ceiling-skylight-4w-4l - * @prop ceiling-skylight-corner-2w-2l - * @prop ceiling-skylight-edge-2w - * @prop ceiling-skylight-edge-4w - * @prop ceiling-skylight-filler-4w-4l-2 - * @prop ceiling-skylight-filler-4w-4l - * @prop ceiling-slice-concave-2r - * @prop ceiling-slice-concave-4r - * @prop ceiling-slice-convex-2r - * @prop ceiling-slice-convex-4r - * @prop door-4w-4h - * @prop floor-2w-2l - * @prop floor-2w-4l - * @prop floor-4w-2l - * @prop floor-4w-4l - * @prop floor-slice-concave-2r - * @prop floor-slice-concave-4r - * @prop floor-slice-convex-2r - * @prop floor-slice-convex-4r - * @prop railing-2l - * @prop railing-4l - * @prop railing-curve-concave-2r - * @prop wall-2w-4h - * @prop wall-4w-4h - * @prop wall-base-2w - * @prop wall-base-4w - * @prop wall-base-curve-concave-2r - * @prop wall-base-curve-concave-4r - * @prop wall-base-curve-convex-2r - * @prop wall-base-curve-convex-4r - * @prop wall-bulkhead-2w - * @prop wall-bulkhead-4w - * @prop wall-bulkhead-curve-concave-2r - * @prop wall-bulkhead-curve-concave-4r - * @prop wall-bulkhead-curve-convex-2r - * @prop wall-bulkhead-curve-convex-4r - * @prop wall-curve-concave-2r-4h - * @prop wall-curve-concave-4r-4h - * @prop wall-curve-convex-2r-4h - * @prop wall-curve-convex-4r-4h - * @prop wall-curve-window-concave-4r-4h - * @prop wall-curve-window-concave-filler-4r-4h - * @prop wall-curve-window-gap-concave-4r-4h - * @prop wall-curve-window-gap-end-l-concave-4r-4h - * @prop wall-curve-window-gap-end-r-concave-4r-4h - * @prop wall-filler-corner-inner-4h - * @prop wall-filler-corner-outer-4h - * @prop wall-window-4w-4h - * @prop wall-window-filler-2 - * @prop wall-window-gap-2w-4h - * @prop wall-window-gap-4w-4h - * @prop wall-window-gap-end-l-2w-4h - * @prop wall-window-gap-end-l-4w-4h - * @prop wall-window-gap-end-r-2w-4h - * @prop wall-window-gap-end-r-4w-4h + * @prop architecture/ceiling-2w-2l + * @prop architecture/ceiling-4w-4l + * @prop architecture/ceiling-4w-4l + * @prop architecture/ceiling-skylight-4w-4l + * @prop architecture/ceiling-skylight-corner-2w-2l + * @prop architecture/ceiling-skylight-edge-2w + * @prop architecture/ceiling-skylight-edge-4w + * @prop architecture/ceiling-skylight-filler-4w-4l-2 + * @prop architecture/ceiling-skylight-filler-4w-4l + * @prop architecture/ceiling-slice-concave-2r + * @prop architecture/ceiling-slice-concave-4r + * @prop architecture/ceiling-slice-convex-2r + * @prop architecture/ceiling-slice-convex-4r + * @prop architecture/door-4w-4h + * @prop architecture/floor-2w-2l + * @prop architecture/floor-2w-4l + * @prop architecture/floor-4w-2l + * @prop architecture/floor-4w-4l + * @prop architecture/floor-slice-concave-2r + * @prop architecture/floor-slice-concave-4r + * @prop architecture/floor-slice-convex-2r + * @prop architecture/floor-slice-convex-4r + * @prop architecture/railing-2l + * @prop architecture/railing-4l + * @prop architecture/railing-curve-concave-2r + * @prop architecture/wall-2w-4h + * @prop architecture/wall-4w-4h + * @prop architecture/wall-base-2w + * @prop architecture/wall-base-4w + * @prop architecture/wall-base-curve-concave-2r + * @prop architecture/wall-base-curve-concave-4r + * @prop architecture/wall-base-curve-convex-2r + * @prop architecture/wall-base-curve-convex-4r + * @prop architecture/wall-bulkhead-2w + * @prop architecture/wall-bulkhead-4w + * @prop architecture/wall-bulkhead-curve-concave-2r + * @prop architecture/wall-bulkhead-curve-concave-4r + * @prop architecture/wall-bulkhead-curve-convex-2r + * @prop architecture/wall-bulkhead-curve-convex-4r + * @prop architecture/wall-curve-concave-2r-4h + * @prop architecture/wall-curve-concave-4r-4h + * @prop architecture/wall-curve-convex-2r-4h + * @prop architecture/wall-curve-convex-4r-4h + * @prop architecture/wall-curve-window-concave-4r-4h + * @prop architecture/wall-curve-window-concave-filler-4r-4h + * @prop architecture/wall-curve-window-gap-concave-4r-4h + * @prop architecture/wall-curve-window-gap-end-l-concave-4r-4h + * @prop architecture/wall-curve-window-gap-end-r-concave-4r-4h + * @prop architecture/wall-filler-corner-inner-4h + * @prop architecture/wall-filler-corner-outer-4h + * @prop architecture/wall-window-4w-4h + * @prop architecture/wall-window-filler-2 + * @prop architecture/wall-window-gap-2w-4h + * @prop architecture/wall-window-gap-4w-4h + * @prop architecture/wall-window-gap-end-l-2w-4h + * @prop architecture/wall-window-gap-end-l-4w-4h + * @prop architecture/wall-window-gap-end-r-2w-4h + * @prop architecture/wall-window-gap-end-r-4w-4h */ /** @@ -848,15 +854,15 @@ * @enum effects * @memberof resources * - * @prop explosion - A particle system with a central flash, then debris flying outward. + * @prop effects/explosion - A particle system with a central flash, then debris flying outward. * This is a non-looping effect. - * @prop fire - An animated fire particle, suitable for a torch. - * @prop fire-trail - Fire that trails the entity through space as it moves. Only is visible while an object is in motion - * @prop fireworks - A compound particle system that shoots up from the entity, + * @prop effects/fire - An animated fire particle, suitable for a torch. + * @prop effects/fire-trail - Fire that trails the entity through space as it moves. Only is visible while an object is in motion + * @prop effects/fireworks - A compound particle system that shoots up from the entity, * explodes into colored sparks, then transitions to gold streamers. - * @prop smoke - Billowing smoke particle system. - * @prop sparkler - Emits sparks in all directions - * @prop steam - Small white steam rising upwards + * @prop effects/smoke - Billowing smoke particle system. + * @prop effects/sparkler - Emits sparks in all directions + * @prop effects/steam - Small white steam rising upwards */ /** @@ -865,14 +871,14 @@ * @enum interactables * @memberof resources * - * @prop basketball - * @prop bowlingball - * @prop bowling-pin - * @prop box - * @prop coin - * @prop gem - * @prop ring - * @prop soccerball + * @prop interactables/basketball + * @prop interactables/bowlingball + * @prop interactables/bowling-pin + * @prop interactables/box + * @prop interactables/coin + * @prop interactables/gem + * @prop interactables/ring + * @prop interactables/soccerball */ /** @@ -881,13 +887,13 @@ * @enum objects * @memberof resources * - * @prop basketball-hoop - * @prop coin - * @prop cup - * @prop gem - * @prop hoop - * @prop ring - * @prop target-archery + * @prop objects/basketball-hoop + * @prop objects/coin + * @prop objects/cup + * @prop objects/gem + * @prop objects/hoop + * @prop objects/ring + * @prop objects/target-archery */ /** @@ -896,22 +902,22 @@ * @enum pipes * @memberof resources * - * @prop pipe-full-cap-1d - * @prop pipe-full-cross-1d - * @prop pipe-full-elbow-1d - * @prop pipe-full-fork-1d - * @prop pipe-full-straight-1d-1l - * @prop pipe-full-straight-1d-2l - * @prop pipe-full-straight-1d-4l - * @prop pipe-full-tee-1d - * @prop pipe-half-cap-1d - * @prop pipe-half-cross-1d - * @prop pipe-half-elbow-1d - * @prop pipe-half-fork-1d - * @prop pipe-half-straight-1d-1l - * @prop pipe-half-straight-1d-2l - * @prop pipe-half-straight-1d-4l - * @prop pipe-half-tee-1d + * @prop pipes/pipe-full-cap-1d + * @prop pipes/pipe-full-cross-1d + * @prop pipes/pipe-full-elbow-1d + * @prop pipes/pipe-full-fork-1d + * @prop pipes/pipe-full-straight-1d-1l + * @prop pipes/pipe-full-straight-1d-2l + * @prop pipes/pipe-full-straight-1d-4l + * @prop pipes/pipe-full-tee-1d + * @prop pipes/pipe-half-cap-1d + * @prop pipes/pipe-half-cross-1d + * @prop pipes/pipe-half-elbow-1d + * @prop pipes/pipe-half-fork-1d + * @prop pipes/pipe-half-straight-1d-1l + * @prop pipes/pipe-half-straight-1d-2l + * @prop pipes/pipe-half-straight-1d-4l + * @prop pipes/pipe-half-tee-1d */ /** @@ -920,15 +926,15 @@ * @enum sounds-ui * @memberof resources * - * @prop select - * @prop toggle - * @prop notify - * @prop error - * @prop complete - * @prop succeed - * @prop over - * @prop join - * @prop click + * @prop ui/select + * @prop ui/toggle + * @prop ui/notify + * @prop ui/error + * @prop ui/complete + * @prop ui/succeed + * @prop ui/over + * @prop ui/join + * @prop ui/click */ /** @@ -937,12 +943,12 @@ * @enum sounds-foley * @memberof resources * - * @prop metal-scrape - * @prop metal-clack - * @prop metal-rattle - * @prop coin-jingle - * @prop paper-shuffle - * @prop explode + * @prop foley/metal-scrape + * @prop foley/metal-clack + * @prop foley/metal-rattle + * @prop foley/coin-jingle + * @prop foley/paper-shuffle + * @prop foley/explode */ /** @@ -951,12 +957,12 @@ * @enum sounds-effects * @memberof resources * - * @prop fanfare-succeed - The "success!" sound from Holograms Against Humanity. - * @prop fanfare-start - The "Game has started!" sound from HaH. - * @prop fanfare-fail - * @prop timer-10s - a 10 second timer that triggers a bell at exactly 10 seconds. + * @prop effects/fanfare-succeed - The "success!" sound from Holograms Against Humanity. + * @prop effects/fanfare-start - The "Game has started!" sound from HaH. + * @prop effects/fanfare-fail + * @prop effects/timer-10s - a 10 second timer that triggers a bell at exactly 10 seconds. * The bell lasts for 2 seconds. This allows for timer length changes. - * @prop gain-coin + * @prop effects/gain-coin */ diff --git a/dist/aframe-altspace-component.min.js b/dist/aframe-altspace-component.min.js index c6a857f..ceb5950 100644 --- a/dist/aframe-altspace-component.min.js +++ b/dist/aframe-altspace-component.min.js @@ -1 +1 @@ -!function(e){function t(i){if(n[i])return n[i].exports;var a=n[i]={exports:{},id:i,loaded:!1};return e[i].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){if("undefined"==typeof AFRAME)throw new Error("Component attempted to register before AFRAME was available.");n(3),n(1),n(2),n(4),n(5),n(10),n(8),n(9),n(6),n(7),n(11)},function(e,t){!function(){function e(e,t){e.userData.altspace={collider:{enabled:t}},e.traverse(function(e){e instanceof THREE.Mesh&&(e.userData.altspace={collider:{enabled:t}})})}AFRAME.registerComponent("altspace-cursor-collider",{schema:{enabled:{"default":!0}},init:function(){e(this.el.object3D,this.data.enabled),this.el.addEventListener("model-loaded",function(){e(this.el.object3D,this.data.enabled)}.bind(this))},update:function(){e(this.el.object3D,this.data.enabled)}})}()},function(e,t){AFRAME.registerComponent("altspace-tracked-controls",{init:function(){this.gamepadIndex=null,this.trackedControlsSystem=document.querySelector("a-scene").systems["tracked-controls"],this.systemGamepads=0,altspace.getGamepads()},tick:function(){if(this.trackedControlsSystem&&this.systemGamepads!==this.trackedControlsSystem.controllers.length&&window.altspace&&altspace.getGamepads&&altspace.getGamepads().length){var e=this.el.components;e["paint-controls"]&&(this.gamepadIndex="left"===e["paint-controls"].data.hand?2:1),null===this.gamepadIndex&&e["hand-controls"]&&(this.gamepadIndex="left"===e["hand-controls"].data?2:1),null===this.gamepadIndex&&e["vive-controls"]&&(this.gamepadIndex="left"===e["vive-controls"].data.hand?2:1),null===this.gamepadIndex&&e["tracked-controls"]&&(this.gamepadIndex=e["tracked-controls"].data.controller),this.el.setAttribute("tracked-controls","id",altspace.getGamepads()[this.gamepadIndex].id),this.el.setAttribute("tracked-controls","controller",0),this.systemGamepads=this.trackedControlsSystem.controllers.length}}})},function(e,t){AFRAME.registerComponent("altspace",{version:"1.1.1",schema:{usePixelScale:{type:"boolean","default":"false"},verticalAlign:{type:"string","default":"middle"},enclosuresOnly:{type:"boolean","default":"true"},fullspace:{type:"boolean","default":"false"}},init:function(){return this.el.object3D instanceof THREE.Scene?void(window.altspace&&window.altspace.inClient?(this.el.setAttribute("vr-mode-ui",{enabled:!1}),this.initRenderer(),this.initCursorEvents(),this.initCollisionEvents()):console.warn("aframe-altspace-component only works inside of AltspaceVR")):void console.warn("aframe-altspace-component can only be attached to a-scene")},tick:function(e,t){this.el.object3D.updateAllBehaviors&&this.el.object3D.updateAllBehaviors()},remove:function(){},pause:function(){},play:function(){},initRenderer:function(){var e=this.el.object3D;altspace.getEnclosure().then(function(n){switch(this.data.fullspace&&(n.requestFullspace(),n.addEventListener("fullspacechange",function(){e.scale.setScalar(n.pixelsPerMeter)})),this.data.usePixelScale&&!this.data.fullspace||e.scale.setScalar(n.pixelsPerMeter),this.data.verticalAlign){case"bottom":e.position.y-=n.innerHeight/2;break;case"top":e.position.y+=n.innerHeight/2;break;case"middle":break;default:console.warn("Unexpected value for verticalAlign: ",this.data.verticalAlign)}this.data.enclosuresOnly&&1===n.innerDepth&&(this.el.renderer.render(new THREE.Scene),this.el.renderer=this.el.effect=t)}.bind(this));var t=this.el.renderer,n=this.el.renderer=this.el.effect=altspace.getThreeJSRenderer({aframeComponentVersion:this.version}),i=function(){};n.setSize=i,n.setPixelRatio=i,n.setClearColor=i,n.clear=i,n.enableScissorTest=i,n.setScissor=i,n.setViewport=i,n.getPixelRatio=i,n.getMaxAnisotropy=i,n.setFaceCulling=i,n.context={canvas:{}},n.shadowMap={}},initCursorEvents:function(){var e=this.el.object3D,t=document.querySelector("a-cursor")||document.querySelector("a-entity[cursor]");t&&(t.setAttribute("material","transparent",!0),t.setAttribute("material","opacity",0));var n=function(e,n){var i=n.target.el;t&&t.emit(e,{target:i,ray:n.ray,point:n.point}),i&&i.emit(e,{target:i,ray:n.ray,point:n.point})},i=null;e.addEventListener("cursordown",function(e){i=e.target,n("mousedown",e)}),e.addEventListener("cursorup",function(e){n("mouseup",e),e.target.uuid===i.uuid&&n("click",e),i=null}),e.addEventListener("cursorenter",function(e){e.target.el&&(e.target.el.addState("hovered"),t&&t.addState("hovering"),n("mouseenter",e))}),e.addEventListener("cursorleave",function(e){e.target.el&&(e.target.el.removeState("hovered"),t&&t.removeState("hovering"),n("mouseleave",e))})},initCollisionEvents:function(){var e=this.el.object3D,t=function(e,t){var n=t.target.el;n&&(t.target=n,t.other&&t.other.el&&(t.other=t.other.el),n.emit(e,t))};e.addEventListener("collisionenter",function(e){t("collisionenter",e)}),e.addEventListener("collisionexit",function(e){t("collisionexit",e)}),e.addEventListener("triggerenter",function(e){t("triggerenter",e)}),e.addEventListener("triggerexit",function(e){t("triggerexit",e)})}})},function(e,t){!function(){function e(){var e=this.el.getOrCreateObject3D("mesh",o);e.userData.altspace=e.userData.altspace||{},e.userData.altspace.collider=e.userData.altspace.collider||{},e.userData.altspace.collider.enabled=!1,altspace.addNativeComponent(e,this.name),this.update(this.data)}function t(){var e=this.el.getObject3D("mesh");altspace.removeNativeComponent(e,this.name)}function n(e){altspace.updateNativeComponent(this.el.object3DMap.mesh,this.name,this.data)}function i(e,t){altspace.callNativeComponent(this.el.object3DMap.mesh,this.name,e,t)}var a=new THREE.BoxGeometry(.001,.001,.001),s=new THREE.MeshBasicMaterial({color:0});s.visible=!1;var o=function(){THREE.Mesh.call(this,a,s)};o.prototype=Object.create(THREE.Mesh.prototype),o.prototype.constructor=THREE.PlaceholderMesh,AFRAME.registerComponent("n-object",{schema:{res:{type:"string"}},init:e,update:n,remove:t}),AFRAME.registerComponent("n-spawner",{schema:{res:{type:"string"}},init:e,update:n,remove:t}),AFRAME.registerComponent("n-text",{init:e,update:n,remove:t,schema:{text:{"default":"",type:"string"},fontSize:{"default":"10",type:"int"},width:{"default":"10",type:"number"},height:{"default":"1",type:"number"},horizontalAlign:{"default":"middle"},verticalAlign:{"default":"middle"}}}),AFRAME.registerComponent("n-sphere-collider",{init:e,remove:t,update:n,schema:{isTrigger:{"default":!1,type:"boolean"},center:{type:"vec3"},radius:{"default":"0",type:"number"},type:{"default":"object"}}}),AFRAME.registerComponent("n-box-collider",{init:e,remove:t,update:n,schema:{isTrigger:{"default":!1,type:"boolean"},center:{type:"vec3"},size:{type:"vec3"},type:{"default":"object"}}}),AFRAME.registerComponent("n-capsule-collider",{init:e,remove:t,update:n,schema:{isTrigger:{"default":!1,type:"boolean"},center:{type:"vec3"},radius:{"default":"0",type:"number"},height:{"default":"0",type:"number"},direction:{"default":"y"},type:{"default":"object"}}}),AFRAME.registerComponent("n-mesh-collider",{init:e,remove:t,update:n,schema:{isTrigger:{"default":!1,type:"boolean"},convex:{"default":!0,type:"boolean"},type:{"default":"object"}}}),AFRAME.registerComponent("n-billboard",{init:e,remove:t}),AFRAME.registerComponent("n-container",{init:function(){e.call(this);var t=this.el,n=this;t.addEventListener("stateadded",function(e){"container-full"===e.detail.state&&t.emit("container-full"),"container-empty"===e.detail.state&&t.emit("container-empty")}),t.addEventListener("container-count-changed",function(e){n.count=e.detail.count})},remove:t,update:n,schema:{capacity:{"default":4,type:"number"}}}),AFRAME.registerComponent("n-sound",{init:function(){var t=this.data.src;if(t&&!t.startsWith("http"))if(t.startsWith("/"))this.data.src=location.origin+t;else{var n=location.pathname;n.endsWith("/")||(n=location.pathname.split("/").slice(0,-1).join("/")+"/"),this.data.src=location.origin+n+t}e.call(this)},pauseSound:function(){i.call(this,"pause"),this.el.emit("sound-paused")},playSound:function(){i.call(this,"play"),this.el.emit("sound-played")},seek:function(e){i.call(this,"seek",{time:e})},remove:function(){t.call(this),this.playHandler&&this.el.removeEventListener(oldData.on,this.playHandler)},update:function(e){n.call(this,e),this.playHandler&&this.el.removeEventListener(e.on,this.playHandler),this.data.on&&(this.playHandler=this.playSound.bind(this),this.el.addEventListener(this.data.on,this.playHandler))},schema:{on:{type:"string"},res:{type:"string"},src:{type:"string"},loop:{type:"boolean"},volume:{type:"number","default":1},autoplay:{type:"boolean"},oneshot:{type:"boolean"},spatialBlend:{type:"float","default":1},pitch:{type:"float","default":1},minDistance:{type:"float","default":1},maxDistance:{type:"float","default":12}}})}()},function(e,t){},function(e,t){AFRAME.registerComponent("sync-color",{dependencies:["sync"],schema:{},init:function(){function e(){var e=n.dataRef.child("material/color"),i=!1,a=!0;t.el.addEventListener("componentchanged",function(t){var a=t.detail.name,s=t.detail.oldData,o=t.detail.newData;"material"===a&&(i||s.color!==o.color&&n.isMine&&setTimeout(function(){e.set(o.color)},0))}),e.on("value",function(e){if(!n.isMine||a){var s=e.val();i=!0,t.el.setAttribute("material","color",s),i=!1,a=!1}})}var t=this,n=t.el.components.sync;n.isConnected?e():t.el.addEventListener("connected",e)}})},function(e,t){AFRAME.registerComponent("sync-n-sound",{dependencies:["sync"],schema:{},init:function(){function e(){function e(e){if(n.isMine){var e={type:e.type,sender:a.clientId,el:t.el.id,time:Date.now()};t.soundEventRef.set(e)}}t.soundStateRef=n.dataRef.child("sound/state"),t.soundEventRef=n.dataRef.child("sound/event"),t.el.addEventListener("sound-played",e),t.el.addEventListener("sound-paused",e),t.soundEventRef.on("value",function(e){if(!n.isMine){var i=e.val();if(i&&i.el===t.el.id){var a=t.el.components["n-sound"];"sound-played"===i.type?a.playSound():a.pauseSound()}}}),t.el.addEventListener("componentchanged",function(e){if(n.isMine){var i=e.detail.name;"n-sound"===i&&t.soundStateRef.set(e.detail.newData)}}),t.soundStateRef.on("value",function(e){if(!n.isMine){var i=e.val();i&&t.el.setAttribute("n-sound",i)}})}var t=this,n=t.el.components.sync,i=document.querySelector("a-scene"),a=i.systems["sync-system"];n.isConnected?e():t.el.addEventListener("connected",e)},remove:function(){this.soundStateRef.off("value"),this.soundEventRef.off("value")}})},function(e,t){AFRAME.registerSystem("sync-system",{schema:{author:{type:"string","default":null},app:{type:"string","default":null},instance:{type:"string","default":null},refUrl:{type:"string","default":null}},init:function(){var e=this;return this.data&&this.data.app?(e.isConnected=!1,console.log(this.data),void altspace.utilities.sync.connect({authorId:this.data.author,appId:this.data.app,instanceId:this.data.instance,baseRefUrl:this.data.refUrl}).then(function(t){this.connection=t,this.sceneRef=this.connection.instance.child("scene"),this.clientsRef=this.connection.instance.child("clients"),this.clientId=this.sceneEl.object3D.uuid;var n;this.clientsRef.on("value",function(e){var t=e.val(),i=Object.keys(t)[0];n=t[i]}),this.clientsRef.on("child_added",function(t){var n=t.val();setTimeout(function(){e.sceneEl.emit("clientjoined",{id:n},!1)},0)}),this.clientsRef.on("child_removed",function(t){var n=t.val();setTimeout(function(){e.sceneEl.emit("clientleft",{id:n},!1)},0)}),this.clientsRef.push(this.clientId).onDisconnect().remove(),this.connection.instance.child("initialized").once("value",function(t){var n=!t.val();t.ref().set(!0),e.sceneEl.emit("connected",{shouldInitialize:n},!1),e.isConnected=!0}.bind(this)),Object.defineProperty(this,"isMasterClient",{get:function(){return n===this.clientId}.bind(this)})}.bind(this))):void console.warn("The sync-system must be present on the scene and configured with required data.")}})},function(e,t){AFRAME.registerComponent("sync-transform",{dependencies:["sync"],schema:{},init:function(){function e(){function e(e,i){if(!n.isMine){var a=e.val();a&&t.el.setAttribute(i,a)}}function i(e){if(n.isMine){var t=e.detail.name,i=e.detail.newData;if("position"===t)c(i);else if("rotation"===t)d(i);else{if("scale"!==t)return;u(i)}}}function a(e,t,n){var i,a,s,o,r=0;n||(n={});var l=function(){r=n.leading===!1?0:Date.now(),i=null,o=e.apply(a,s),i||(a=s=null)},c=function(){var c=Date.now();r||n.leading!==!1||(r=c);var d=t-(c-r);return a=this,s=arguments,d<=0||d>t?(i&&(clearTimeout(i),i=null),r=c,o=e.apply(a,s),i||(a=s=null)):i||n.trailing===!1||(i=setTimeout(l,d)),o};return c.cancel=function(){clearTimeout(i),r=0,i=a=s=null},c}var s=n.dataRef.child("position"),o=n.dataRef.child("rotation"),r=n.dataRef.child("scale");t.updateRate=100;var l=[];t.el.addEventListener("ownershiplost",function(){for(var e=t.el.children,n=0;nt?(i&&(clearTimeout(i),i=null),r=c,o=e.apply(a,s),i||(a=s=null)):i||n.trailing===!1||(i=setTimeout(l,d)),o};return c.cancel=function(){clearTimeout(i),r=0,i=a=s=null},c}var s=n.dataRef.child("position"),o=n.dataRef.child("rotation"),r=n.dataRef.child("scale");t.updateRate=100;var l=[];t.el.addEventListener("ownershiplost",function(){for(var e=t.el.children,n=0;n
diff --git a/doc/altspace.altspace-tracked-controls.html b/doc/altspace.altspace-tracked-controls.html index fecd3b0..bb39706 100644 --- a/doc/altspace.altspace-tracked-controls.html +++ b/doc/altspace.altspace-tracked-controls.html @@ -23,7 +23,7 @@
diff --git a/doc/altspace.altspace.html b/doc/altspace.altspace.html index 84a61cf..cd1ecc1 100644 --- a/doc/altspace.altspace.html +++ b/doc/altspace.altspace.html @@ -1,293 +1,302 @@ - - - - - altspace - Documentation - - - - - - - - - - - - - - - - - -
- -

altspace

- - - - - - - -
- -
- -

- altspace. - - altspace -

- - -
- -
-
- - + + + + + altspace - Documentation + + + + + + + + + + + + + + + + + +
+ +

altspace

+ + + + + + + +
+ +
+ +

+ altspace. + + altspace +

+ + +
+ +
+
+ +

The altspace component makes A-Frame apps compatible with AltspaceVR.

-

Note: If you use the embedded A-Frame component on your scene, you must include it before the altspace component, or your app will silently fail.

- - - - - -
Properties:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +

Note: If you use the embedded A-Frame component on your scene, you must include it before the altspace component, or your app will silently fail.

+ + + + + +
Properties:
+ + + +
NameTypeDefaultDescription
usePixelScale - - -boolean - - - - - - `false` - -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - +This is the default behavior for three.js apps, but not for A-Frame apps.

+ + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - +or top of the Altspace enclosure.

+ + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDefaultDescription
usePixelScale + + +boolean + + + + + + `false` + +

Allows you to use A-Frame units as CSS pixels. -This is the default behavior for three.js apps, but not for A-Frame apps.

verticalAlign - - -string - - - - - - `middle` - -
verticalAlign + + +string + + + + + + `middle` + +

Puts the origin at the bottom, middle (default), -or top of the Altspace enclosure.

enclosuresOnly - - -boolean - - - - - - `true` - -
enclosuresOnly + + +boolean + + + + + + `true` + +

Prevents the scene from being created if -enclosure is flat.

fullspace - - -boolean - - - - - - `false` - -

Puts the app into fullspace mode.

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -

Example

- -
<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.3.0/aframe.min.js"></script>
  <script src="https://cdn.rawgit.com/AltspaceVR/aframe-altspace-component/vAFRAME_ALTSPACE_VERSION/dist/aframe-altspace-component.min.js"></script>
</head>
<body>
  <a-scene altspace>
    <a-entity geometry="primitive: box" material="color: #C03546"></a-entity>
  </a-scene>
</body>
- - - -
- - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.3 using the Minami theme. -
- - - - +enclosure is flat.

+ + + + + + + fullspace + + + + + +boolean + + + + + + + + + + + `false` + + + + +

Puts the app into fullspace mode.

+ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +

Example

+ +
<head>
+  <title>My A-Frame Scene</title>
+  <script src="https://aframe.io/releases/0.3.0/aframe.min.js"></script>
+  <script src="https://cdn.rawgit.com/AltspaceVR/aframe-altspace-component/vAFRAME_ALTSPACE_VERSION/dist/aframe-altspace-component.min.js"></script>
+</head>
+<body>
+  <a-scene altspace>
+    <a-entity geometry="primitive: box" material="color: #C03546"></a-entity>
+  </a-scene>
+</body>
+ + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.3 using the Minami theme. +
+ + + + \ No newline at end of file diff --git a/doc/altspace.html b/doc/altspace.html index 10b5d72..0f8df9b 100644 --- a/doc/altspace.html +++ b/doc/altspace.html @@ -23,7 +23,7 @@
diff --git a/doc/index.html b/doc/index.html index f18cf00..9d2796b 100644 --- a/doc/index.html +++ b/doc/index.html @@ -23,7 +23,7 @@
@@ -63,7 +63,7 @@

Quick Start

This is a fully functional example of what A-Frame code l

<!DOCTYPE html>
 <html><head>
 <script src="https://aframe.io/releases/0.3.0/aframe.min.js"></script>
-<script src="https://cdn.rawgit.com/AltspaceVR/aframe-altspace-component/v1.2.0/dist/aframe-altspace-component.min.js"></script>
+<script src="https://cdn.rawgit.com/AltspaceVR/aframe-altspace-component/v1.3.0/dist/aframe-altspace-component.min.js"></script>
 <script>
 
 // an example custom component, that will change the color when clicked
diff --git a/doc/native.html b/doc/native.html
index 89ecfce..2b6dec6 100644
--- a/doc/native.html
+++ b/doc/native.html
@@ -23,7 +23,7 @@
 
 
 
 
 
diff --git a/doc/native.n-billboard.html b/doc/native.n-billboard.html index b17d616..6da10ab 100644 --- a/doc/native.n-billboard.html +++ b/doc/native.n-billboard.html @@ -23,7 +23,7 @@
diff --git a/doc/native.n-box-collider.html b/doc/native.n-box-collider.html index 31a7ab4..bf3653f 100644 --- a/doc/native.n-box-collider.html +++ b/doc/native.n-box-collider.html @@ -23,7 +23,7 @@
diff --git a/doc/native.n-capsule-collider.html b/doc/native.n-capsule-collider.html index 8db0b42..71bea13 100644 --- a/doc/native.n-capsule-collider.html +++ b/doc/native.n-capsule-collider.html @@ -23,7 +23,7 @@
diff --git a/doc/native.n-collider.html b/doc/native.n-collider.html index 46be40b..b00ba64 100644 --- a/doc/native.n-collider.html +++ b/doc/native.n-collider.html @@ -23,7 +23,7 @@
diff --git a/doc/native.n-container.html b/doc/native.n-container.html index f87dd74..dd5b103 100644 --- a/doc/native.n-container.html +++ b/doc/native.n-container.html @@ -23,7 +23,7 @@
diff --git a/doc/native.n-mesh-collider.html b/doc/native.n-mesh-collider.html index 949f64b..a4dbd0f 100644 --- a/doc/native.n-mesh-collider.html +++ b/doc/native.n-mesh-collider.html @@ -23,7 +23,7 @@
diff --git a/doc/native.n-object.html b/doc/native.n-object.html index cb11877..966b13f 100644 --- a/doc/native.n-object.html +++ b/doc/native.n-object.html @@ -23,7 +23,7 @@
diff --git a/doc/native.n-sound.html b/doc/native.n-sound.html index 8c62f47..16c103f 100644 --- a/doc/native.n-sound.html +++ b/doc/native.n-sound.html @@ -23,7 +23,7 @@
@@ -403,8 +403,38 @@
Properties:
-

Beyond this distance in meters, the sound -will rapidly fall off to silence.

+

If rolloff is 'logarithmic', the sound will stop attenuating at this distance. +If rolloff is 'linear' or 'cosine', the sound will be silent at this distance.

+ + + + + + + rolloff + + + + + +string + + + + + + + + + + + 'logarithmic' + + + + +

Set this to 'linear' or 'cosine' if you want to cut sounds off at a +maxDistance.

@@ -754,6 +784,87 @@
Parameters:
+ +

Events

+ + + + + + +

n-sound-loaded

+ + + + + +
+

Fired when a sound has loaded and is ready to be played

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + diff --git a/doc/native.n-spawner.html b/doc/native.n-spawner.html index 0ead14d..86c3afb 100644 --- a/doc/native.n-spawner.html +++ b/doc/native.n-spawner.html @@ -23,7 +23,7 @@
diff --git a/doc/native.n-sphere-collider.html b/doc/native.n-sphere-collider.html index b9678bd..0c94ef1 100644 --- a/doc/native.n-sphere-collider.html +++ b/doc/native.n-sphere-collider.html @@ -23,7 +23,7 @@
diff --git a/doc/native.n-text.html b/doc/native.n-text.html index cdc587b..e5b43ef 100644 --- a/doc/native.n-text.html +++ b/doc/native.n-text.html @@ -23,7 +23,7 @@
diff --git a/doc/resources.html b/doc/resources.html index 9f9e906..df323c8 100644 --- a/doc/resources.html +++ b/doc/resources.html @@ -23,7 +23,7 @@
@@ -161,7 +161,7 @@
Properties:
- ceiling-2w-2l + architecture/ceiling-2w-2l @@ -179,7 +179,7 @@
Properties:
- ceiling-4w-4l + architecture/ceiling-4w-4l @@ -197,7 +197,7 @@
Properties:
- ceiling-4w-4l + architecture/ceiling-4w-4l @@ -215,7 +215,7 @@
Properties:
- ceiling-skylight-4w-4l + architecture/ceiling-skylight-4w-4l @@ -233,7 +233,7 @@
Properties:
- ceiling-skylight-corner-2w-2l + architecture/ceiling-skylight-corner-2w-2l @@ -251,7 +251,7 @@
Properties:
- ceiling-skylight-edge-2w + architecture/ceiling-skylight-edge-2w @@ -269,7 +269,7 @@
Properties:
- ceiling-skylight-edge-4w + architecture/ceiling-skylight-edge-4w @@ -287,7 +287,7 @@
Properties:
- ceiling-skylight-filler-4w-4l-2 + architecture/ceiling-skylight-filler-4w-4l-2 @@ -305,7 +305,7 @@
Properties:
- ceiling-skylight-filler-4w-4l + architecture/ceiling-skylight-filler-4w-4l @@ -323,7 +323,7 @@
Properties:
- ceiling-slice-concave-2r + architecture/ceiling-slice-concave-2r @@ -341,7 +341,7 @@
Properties:
- ceiling-slice-concave-4r + architecture/ceiling-slice-concave-4r @@ -359,7 +359,7 @@
Properties:
- ceiling-slice-convex-2r + architecture/ceiling-slice-convex-2r @@ -377,7 +377,7 @@
Properties:
- ceiling-slice-convex-4r + architecture/ceiling-slice-convex-4r @@ -395,7 +395,7 @@
Properties:
- door-4w-4h + architecture/door-4w-4h @@ -413,7 +413,7 @@
Properties:
- floor-2w-2l + architecture/floor-2w-2l @@ -431,7 +431,7 @@
Properties:
- floor-2w-4l + architecture/floor-2w-4l @@ -449,7 +449,7 @@
Properties:
- floor-4w-2l + architecture/floor-4w-2l @@ -467,7 +467,7 @@
Properties:
- floor-4w-4l + architecture/floor-4w-4l @@ -485,7 +485,7 @@
Properties:
- floor-slice-concave-2r + architecture/floor-slice-concave-2r @@ -503,7 +503,7 @@
Properties:
- floor-slice-concave-4r + architecture/floor-slice-concave-4r @@ -521,7 +521,7 @@
Properties:
- floor-slice-convex-2r + architecture/floor-slice-convex-2r @@ -539,7 +539,7 @@
Properties:
- floor-slice-convex-4r + architecture/floor-slice-convex-4r @@ -557,7 +557,7 @@
Properties:
- railing-2l + architecture/railing-2l @@ -575,7 +575,7 @@
Properties:
- railing-4l + architecture/railing-4l @@ -593,7 +593,7 @@
Properties:
- railing-curve-concave-2r + architecture/railing-curve-concave-2r @@ -611,7 +611,7 @@
Properties:
- wall-2w-4h + architecture/wall-2w-4h @@ -629,7 +629,7 @@
Properties:
- wall-4w-4h + architecture/wall-4w-4h @@ -647,7 +647,7 @@
Properties:
- wall-base-2w + architecture/wall-base-2w @@ -665,7 +665,7 @@
Properties:
- wall-base-4w + architecture/wall-base-4w @@ -683,7 +683,7 @@
Properties:
- wall-base-curve-concave-2r + architecture/wall-base-curve-concave-2r @@ -701,7 +701,7 @@
Properties:
- wall-base-curve-concave-4r + architecture/wall-base-curve-concave-4r @@ -719,7 +719,7 @@
Properties:
- wall-base-curve-convex-2r + architecture/wall-base-curve-convex-2r @@ -737,7 +737,7 @@
Properties:
- wall-base-curve-convex-4r + architecture/wall-base-curve-convex-4r @@ -755,7 +755,7 @@
Properties:
- wall-bulkhead-2w + architecture/wall-bulkhead-2w @@ -773,7 +773,7 @@
Properties:
- wall-bulkhead-4w + architecture/wall-bulkhead-4w @@ -791,7 +791,7 @@
Properties:
- wall-bulkhead-curve-concave-2r + architecture/wall-bulkhead-curve-concave-2r @@ -809,7 +809,7 @@
Properties:
- wall-bulkhead-curve-concave-4r + architecture/wall-bulkhead-curve-concave-4r @@ -827,7 +827,7 @@
Properties:
- wall-bulkhead-curve-convex-2r + architecture/wall-bulkhead-curve-convex-2r @@ -845,7 +845,7 @@
Properties:
- wall-bulkhead-curve-convex-4r + architecture/wall-bulkhead-curve-convex-4r @@ -863,7 +863,7 @@
Properties:
- wall-curve-concave-2r-4h + architecture/wall-curve-concave-2r-4h @@ -881,7 +881,7 @@
Properties:
- wall-curve-concave-4r-4h + architecture/wall-curve-concave-4r-4h @@ -899,7 +899,7 @@
Properties:
- wall-curve-convex-2r-4h + architecture/wall-curve-convex-2r-4h @@ -917,7 +917,7 @@
Properties:
- wall-curve-convex-4r-4h + architecture/wall-curve-convex-4r-4h @@ -935,7 +935,7 @@
Properties:
- wall-curve-window-concave-4r-4h + architecture/wall-curve-window-concave-4r-4h @@ -953,7 +953,7 @@
Properties:
- wall-curve-window-concave-filler-4r-4h + architecture/wall-curve-window-concave-filler-4r-4h @@ -971,7 +971,7 @@
Properties:
- wall-curve-window-gap-concave-4r-4h + architecture/wall-curve-window-gap-concave-4r-4h @@ -989,7 +989,7 @@
Properties:
- wall-curve-window-gap-end-l-concave-4r-4h + architecture/wall-curve-window-gap-end-l-concave-4r-4h @@ -1007,7 +1007,7 @@
Properties:
- wall-curve-window-gap-end-r-concave-4r-4h + architecture/wall-curve-window-gap-end-r-concave-4r-4h @@ -1025,7 +1025,7 @@
Properties:
- wall-filler-corner-inner-4h + architecture/wall-filler-corner-inner-4h @@ -1043,7 +1043,7 @@
Properties:
- wall-filler-corner-outer-4h + architecture/wall-filler-corner-outer-4h @@ -1061,7 +1061,7 @@
Properties:
- wall-window-4w-4h + architecture/wall-window-4w-4h @@ -1079,7 +1079,7 @@
Properties:
- wall-window-filler-2 + architecture/wall-window-filler-2 @@ -1097,7 +1097,7 @@
Properties:
- wall-window-gap-2w-4h + architecture/wall-window-gap-2w-4h @@ -1115,7 +1115,7 @@
Properties:
- wall-window-gap-4w-4h + architecture/wall-window-gap-4w-4h @@ -1133,7 +1133,7 @@
Properties:
- wall-window-gap-end-l-2w-4h + architecture/wall-window-gap-end-l-2w-4h @@ -1151,7 +1151,7 @@
Properties:
- wall-window-gap-end-l-4w-4h + architecture/wall-window-gap-end-l-4w-4h @@ -1169,7 +1169,7 @@
Properties:
- wall-window-gap-end-r-2w-4h + architecture/wall-window-gap-end-r-2w-4h @@ -1187,7 +1187,7 @@
Properties:
- wall-window-gap-end-r-4w-4h + architecture/wall-window-gap-end-r-4w-4h @@ -1291,7 +1291,7 @@
Properties:
- explosion + effects/explosion @@ -1310,7 +1310,7 @@
Properties:
- fire + effects/fire @@ -1328,7 +1328,7 @@
Properties:
- fire-trail + effects/fire-trail @@ -1346,7 +1346,7 @@
Properties:
- fireworks + effects/fireworks @@ -1365,7 +1365,7 @@
Properties:
- smoke + effects/smoke @@ -1383,7 +1383,7 @@
Properties:
- sparkler + effects/sparkler @@ -1401,7 +1401,7 @@
Properties:
- steam + effects/steam @@ -1505,7 +1505,7 @@
Properties:
- basketball + interactables/basketball @@ -1523,7 +1523,7 @@
Properties:
- bowlingball + interactables/bowlingball @@ -1541,7 +1541,7 @@
Properties:
- bowling-pin + interactables/bowling-pin @@ -1559,7 +1559,7 @@
Properties:
- box + interactables/box @@ -1577,7 +1577,7 @@
Properties:
- coin + interactables/coin @@ -1595,7 +1595,7 @@
Properties:
- gem + interactables/gem @@ -1613,7 +1613,7 @@
Properties:
- ring + interactables/ring @@ -1631,7 +1631,7 @@
Properties:
- soccerball + interactables/soccerball @@ -1735,7 +1735,7 @@
Properties:
- basketball-hoop + objects/basketball-hoop @@ -1753,7 +1753,7 @@
Properties:
- coin + objects/coin @@ -1771,7 +1771,7 @@
Properties:
- cup + objects/cup @@ -1789,7 +1789,7 @@
Properties:
- gem + objects/gem @@ -1807,7 +1807,7 @@
Properties:
- hoop + objects/hoop @@ -1825,7 +1825,7 @@
Properties:
- ring + objects/ring @@ -1843,7 +1843,7 @@
Properties:
- target-archery + objects/target-archery @@ -1947,7 +1947,7 @@
Properties:
- pipe-full-cap-1d + pipes/pipe-full-cap-1d @@ -1965,7 +1965,7 @@
Properties:
- pipe-full-cross-1d + pipes/pipe-full-cross-1d @@ -1983,7 +1983,7 @@
Properties:
- pipe-full-elbow-1d + pipes/pipe-full-elbow-1d @@ -2001,7 +2001,7 @@
Properties:
- pipe-full-fork-1d + pipes/pipe-full-fork-1d @@ -2019,7 +2019,7 @@
Properties:
- pipe-full-straight-1d-1l + pipes/pipe-full-straight-1d-1l @@ -2037,7 +2037,7 @@
Properties:
- pipe-full-straight-1d-2l + pipes/pipe-full-straight-1d-2l @@ -2055,7 +2055,7 @@
Properties:
- pipe-full-straight-1d-4l + pipes/pipe-full-straight-1d-4l @@ -2073,7 +2073,7 @@
Properties:
- pipe-full-tee-1d + pipes/pipe-full-tee-1d @@ -2091,7 +2091,7 @@
Properties:
- pipe-half-cap-1d + pipes/pipe-half-cap-1d @@ -2109,7 +2109,7 @@
Properties:
- pipe-half-cross-1d + pipes/pipe-half-cross-1d @@ -2127,7 +2127,7 @@
Properties:
- pipe-half-elbow-1d + pipes/pipe-half-elbow-1d @@ -2145,7 +2145,7 @@
Properties:
- pipe-half-fork-1d + pipes/pipe-half-fork-1d @@ -2163,7 +2163,7 @@
Properties:
- pipe-half-straight-1d-1l + pipes/pipe-half-straight-1d-1l @@ -2181,7 +2181,7 @@
Properties:
- pipe-half-straight-1d-2l + pipes/pipe-half-straight-1d-2l @@ -2199,7 +2199,7 @@
Properties:
- pipe-half-straight-1d-4l + pipes/pipe-half-straight-1d-4l @@ -2217,7 +2217,7 @@
Properties:
- pipe-half-tee-1d + pipes/pipe-half-tee-1d @@ -2321,7 +2321,7 @@
Properties:
- fanfare-succeed + effects/fanfare-succeed @@ -2339,7 +2339,7 @@
Properties:
- fanfare-start + effects/fanfare-start @@ -2357,7 +2357,7 @@
Properties:
- fanfare-fail + effects/fanfare-fail @@ -2375,7 +2375,7 @@
Properties:
- timer-10s + effects/timer-10s @@ -2394,7 +2394,7 @@
Properties:
- gain-coin + effects/gain-coin @@ -2498,7 +2498,7 @@
Properties:
- metal-scrape + foley/metal-scrape @@ -2516,7 +2516,7 @@
Properties:
- metal-clack + foley/metal-clack @@ -2534,7 +2534,7 @@
Properties:
- metal-rattle + foley/metal-rattle @@ -2552,7 +2552,7 @@
Properties:
- coin-jingle + foley/coin-jingle @@ -2570,7 +2570,7 @@
Properties:
- paper-shuffle + foley/paper-shuffle @@ -2588,7 +2588,7 @@
Properties:
- explode + foley/explode @@ -2692,7 +2692,7 @@
Properties:
- select + ui/select @@ -2710,7 +2710,7 @@
Properties:
- toggle + ui/toggle @@ -2728,7 +2728,7 @@
Properties:
- notify + ui/notify @@ -2746,7 +2746,7 @@
Properties:
- error + ui/error @@ -2764,7 +2764,7 @@
Properties:
- complete + ui/complete @@ -2782,7 +2782,7 @@
Properties:
- succeed + ui/succeed @@ -2800,7 +2800,7 @@
Properties:
- over + ui/over @@ -2818,7 +2818,7 @@
Properties:
- join + ui/join @@ -2836,7 +2836,7 @@
Properties:
- click + ui/click diff --git a/doc/sync.html b/doc/sync.html index ed234b9..17ccd13 100644 --- a/doc/sync.html +++ b/doc/sync.html @@ -1,161 +1,163 @@ - - - - - sync - Documentation - - - - - - - - - - - - - - - - - -
- -

sync

- - - - - - - -
- -
- -

- sync -

- - -
- -
-
- - + + + + + sync - Documentation + + + + + + + + + + + + + + + + + +
+ +

sync

+ + + + + + + +
+ +
+ +

+ sync +

+ + +
+ +
+
+ +

Enables the synchronization of properties of entities. All property sync components require both a sync.sync-system on a-scene, and a sync.sync -on the entity to be synced.

- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -

Example

- -
<a-scene sync-system='app: example sync; author: altspacevr'>
  <a-entity sync='ownOn: cursordown' sync-color></a-entity>
</a-scene>
- - - -
- - - - - - - - -

Mixins

- -
-
sync
-
- -
sync-color
-
- -
sync-n-sound
-
- -
sync-system
-
- -
sync-transform
-
-
- - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.3 using the Minami theme. -
- - - - +on the entity to be synced.

+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +

Example

+ +
<a-scene sync-system='app: example sync; author: altspacevr'>
+  <a-entity sync='ownOn: cursordown' sync-color></a-entity>
+</a-scene>
+ + + +
+ + + + + + + + +

Mixins

+ +
+
sync
+
+ +
sync-color
+
+ +
sync-n-sound
+
+ +
sync-system
+
+ +
sync-transform
+
+
+ + + + + + + + + + + + + + + + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.3 using the Minami theme. +
+ + + + \ No newline at end of file diff --git a/doc/sync.sync-color.html b/doc/sync.sync-color.html index 2f51fc9..21b38a7 100644 --- a/doc/sync.sync-color.html +++ b/doc/sync.sync-color.html @@ -23,7 +23,7 @@
diff --git a/doc/sync.sync-n-sound.html b/doc/sync.sync-n-sound.html index 003f0b1..df369b8 100644 --- a/doc/sync.sync-n-sound.html +++ b/doc/sync.sync-n-sound.html @@ -23,7 +23,7 @@
diff --git a/doc/sync.sync-system.html b/doc/sync.sync-system.html index f412b37..a25acbe 100644 --- a/doc/sync.sync-system.html +++ b/doc/sync.sync-system.html @@ -23,7 +23,7 @@
diff --git a/doc/sync.sync-transform.html b/doc/sync.sync-transform.html index c52c01d..e6d5979 100644 --- a/doc/sync.sync-transform.html +++ b/doc/sync.sync-transform.html @@ -23,7 +23,7 @@
diff --git a/doc/sync.sync.html b/doc/sync.sync.html index 0a1ec48..673c718 100644 --- a/doc/sync.sync.html +++ b/doc/sync.sync.html @@ -23,7 +23,7 @@
diff --git a/doc/wire.html b/doc/wire.html index e30e59f..89c4d51 100644 --- a/doc/wire.html +++ b/doc/wire.html @@ -23,7 +23,7 @@
diff --git a/package.json b/package.json index 9381d6a..7083713 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aframe-altspace-component", - "version": "1.1.1", + "version": "1.3.0", "description": "aframe-altspace-component makes A-frame apps compatible with AltspaceVR.", "main": "src/index.js", "scripts": {