aframe-meshline-component icon indicating copy to clipboard operation
aframe-meshline-component copied to clipboard

Adding Event Listeners

Open Zysberg opened this issue 8 years ago • 1 comments

I can't incorperate event listeners for mouseenter, mouseleave, and click.

Here is what I have:

edge.addEventListener('mouseenter', function () { if (Delete == true) { edge.setAttribute('color', '#ff3f3f'); } }); edge.addEventListener('mouseleave', function () { edge.setAttribute('color', '#55575b'); }); edge.addEventListener('click',function(){ if (Delete == true) { var id = node.getAttribute('id'); $('#'+id).remove(); delete graph['edges'][id]; Delete = false; } });

Zysberg avatar Dec 31 '17 17:12 Zysberg

Raycast component from Three.meshline is missing. See https://github.com/spite/THREE.MeshLine?tab=readme-ov-file#use-meshline-and-meshlinematerial-to-create-a-threemesh . I think it has to be added to index.js

Maki-Db avatar Apr 01 '24 12:04 Maki-Db