agentIDs and raycasting like mad!

This commit is contained in:
STEINNI
2025-10-22 19:45:32 +00:00
parent 006bed2ad5
commit 8276a77172
6 changed files with 97 additions and 30 deletions
+2 -1
View File
@@ -39,7 +39,7 @@ app.helpers.activeAttributes = {
* setupRefs is re-entrant: it can be called again after refreshing part of the view
* @param {eicui-components []} components : the view's components (usually result of ui.eicfy(this.el) )
*/
setupRefs(components){
setupRefs(components = []){
if(!this.components) this.components = {}
for(let component of components.filter(component => component.el.hasAttribute('data-ref'))) {
this.components[component.el.dataset.ref] = component
@@ -61,6 +61,7 @@ app.helpers.activeAttributes = {
}
},
/**
* output (singular) : this.output('mydiv', '<p>Some markup</p>') places markup in a data-output node
* @param {*} name
+6
View File
@@ -110,4 +110,10 @@ app.helpers.helpers3D = {
return pivot
},
getNamedParent(obj) {
while (obj && !obj.name) {
obj = obj.parent
}
return obj
},
}