better compatibilty with other aframe plugins + build
This commit is contained in:
parent
7abdcf1016
commit
ba90411e6c
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,23 @@
|
|||
/*
|
||||
* v0.5.1 generated at Mon Dec 16 01:48:34 PM CET 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 11:38:06 UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 10:29:41 UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 10:26:24 UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 09:47:45 UTC 2024
|
||||
* https://xrfragment.org
|
||||
|
@ -4331,6 +4351,7 @@ xrf.filter.sort = function(frag){
|
|||
|
||||
// opts = {copyScene:true} in case you want a copy of the scene (not filter the current scene inplace)
|
||||
xrf.filter.process = function(frag,scene,opts){
|
||||
if( !scene || scene.children.length == 0 ) return
|
||||
const cleanupKey = (k) => k.replace(/[-\*\/]/g,'')
|
||||
let firstFilter = frag.filters.length ? frag.filters[0].filter.get() : false
|
||||
const hasName = (m,name,filter) => m.name == name
|
||||
|
@ -5206,7 +5227,7 @@ window.AFRAME.registerComponent('xrf', {
|
|||
},
|
||||
init: async function () {
|
||||
|
||||
this.data = Object.values(this.attrValue)[0]
|
||||
this.data = this.attrValue ? Object.values(this.attrValue)[0] : ""
|
||||
|
||||
// override this.data when URL has passed (`://....com/?https://foo.com/index.glb` e.g.)
|
||||
if( typeof this.data == "string" ){
|
||||
|
@ -5707,6 +5728,7 @@ if( !AFRAME.components['touch-controls'] ){
|
|||
|
||||
AFRAME.registerComponent('touch-controls', {
|
||||
schema: {
|
||||
axis: { default: "z", "type":"string" },
|
||||
enabled: { default: true },
|
||||
reverseEnabled: { default: true }
|
||||
},
|
||||
|
@ -5761,7 +5783,7 @@ if( !AFRAME.components['touch-controls'] ){
|
|||
},
|
||||
|
||||
getVelocityDelta: function () {
|
||||
this.dVelocity.z = this.direction;
|
||||
this.dVelocity[ this.data.axis ] = this.direction;
|
||||
return this.dVelocity.clone();
|
||||
},
|
||||
|
||||
|
|
|
@ -1,3 +1,23 @@
|
|||
/*
|
||||
* v0.5.1 generated at Mon Dec 16 01:48:34 PM CET 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 11:38:06 UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 10:29:41 UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 10:26:24 UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 09:47:45 UTC 2024
|
||||
* https://xrfragment.org
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 09:47:45 UTC 2024
|
||||
* v0.5.1 generated at Mon Dec 16 01:48:34 PM CET 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 09:47:45 UTC 2024
|
||||
* v0.5.1 generated at Mon Dec 16 01:48:34 PM CET 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 09:47:45 UTC 2024
|
||||
* v0.5.1 generated at Mon Dec 16 01:48:34 PM CET 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 09:47:45 UTC 2024
|
||||
* v0.5.1 generated at Mon Dec 16 01:48:34 PM CET 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 09:47:45 UTC 2024
|
||||
* v0.5.1 generated at Mon Dec 16 01:48:34 PM CET 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 09:47:45 UTC 2024
|
||||
* v0.5.1 generated at Mon Dec 16 01:48:34 PM CET 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
|
|
@ -1,3 +1,23 @@
|
|||
/*
|
||||
* v0.5.1 generated at Mon Dec 16 01:48:34 PM CET 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 11:38:06 UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 10:29:41 UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 10:26:24 UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 09:47:45 UTC 2024
|
||||
* https://xrfragment.org
|
||||
|
@ -4331,6 +4351,7 @@ xrf.filter.sort = function(frag){
|
|||
|
||||
// opts = {copyScene:true} in case you want a copy of the scene (not filter the current scene inplace)
|
||||
xrf.filter.process = function(frag,scene,opts){
|
||||
if( !scene || scene.children.length == 0 ) return
|
||||
const cleanupKey = (k) => k.replace(/[-\*\/]/g,'')
|
||||
let firstFilter = frag.filters.length ? frag.filters[0].filter.get() : false
|
||||
const hasName = (m,name,filter) => m.name == name
|
||||
|
|
|
@ -1,3 +1,23 @@
|
|||
/*
|
||||
* v0.5.1 generated at Mon Dec 16 01:48:34 PM CET 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 11:38:06 UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 10:29:41 UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 10:26:24 UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
/*
|
||||
* v0.5.1 generated at Wed Dec 11 09:47:45 UTC 2024
|
||||
* https://xrfragment.org
|
||||
|
@ -4331,6 +4351,7 @@ xrf.filter.sort = function(frag){
|
|||
|
||||
// opts = {copyScene:true} in case you want a copy of the scene (not filter the current scene inplace)
|
||||
xrf.filter.process = function(frag,scene,opts){
|
||||
if( !scene || scene.children.length == 0 ) return
|
||||
const cleanupKey = (k) => k.replace(/[-\*\/]/g,'')
|
||||
let firstFilter = frag.filters.length ? frag.filters[0].filter.get() : false
|
||||
const hasName = (m,name,filter) => m.name == name
|
||||
|
|
|
@ -5,7 +5,7 @@ window.AFRAME.registerComponent('xrf', {
|
|||
},
|
||||
init: async function () {
|
||||
|
||||
this.data = Object.values(this.attrValue)[0]
|
||||
this.data = this.attrValue ? Object.values(this.attrValue)[0] : ""
|
||||
|
||||
// override this.data when URL has passed (`://....com/?https://foo.com/index.glb` e.g.)
|
||||
if( typeof this.data == "string" ){
|
||||
|
|
|
@ -6,6 +6,7 @@ if( !AFRAME.components['touch-controls'] ){
|
|||
|
||||
AFRAME.registerComponent('touch-controls', {
|
||||
schema: {
|
||||
axis: { default: "z", "type":"string" },
|
||||
enabled: { default: true },
|
||||
reverseEnabled: { default: true }
|
||||
},
|
||||
|
@ -60,7 +61,7 @@ if( !AFRAME.components['touch-controls'] ){
|
|||
},
|
||||
|
||||
getVelocityDelta: function () {
|
||||
this.dVelocity.z = this.direction;
|
||||
this.dVelocity[ this.data.axis ] = this.direction;
|
||||
return this.dVelocity.clone();
|
||||
},
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ xrf.filter.sort = function(frag){
|
|||
|
||||
// opts = {copyScene:true} in case you want a copy of the scene (not filter the current scene inplace)
|
||||
xrf.filter.process = function(frag,scene,opts){
|
||||
if( !scene || scene.children.length == 0 ) return
|
||||
const cleanupKey = (k) => k.replace(/[-\*\/]/g,'')
|
||||
let firstFilter = frag.filters.length ? frag.filters[0].filter.get() : false
|
||||
const hasName = (m,name,filter) => m.name == name
|
||||
|
|
Loading…
Reference in New Issue