Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Event Listeners #11

Open
Zysberg opened this issue Dec 31, 2017 · 1 comment · May be fixed by #21
Open

Adding Event Listeners #11

Zysberg opened this issue Dec 31, 2017 · 1 comment · May be fixed by #21

Comments

@Zysberg
Copy link

Zysberg commented Dec 31, 2017

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; } });

@Maki-Db
Copy link

Maki-Db commented Apr 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants