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

Go to the link by clicking on the node. #253

Open
vd28 opened this issue Jan 18, 2020 · 1 comment
Open

Go to the link by clicking on the node. #253

vd28 opened this issue Jan 18, 2020 · 1 comment

Comments

@vd28
Copy link

vd28 commented Jan 18, 2020

Hi.Could you tell me how to create mouse click event on node.And how to create a constantly visible label.Thanks in advance.

@joaquin-alc
Copy link

Hi, you must use "Viva.Graph.webglInputEvents" function. Like this:

var vivaGraphMain = Viva.Graph.graph();
var graphics = Viva.Graph.View.webglGraphics();

const events = Viva.Graph.webglInputEvents( graphics, vivaGraphMain );
events.click( YOUR FUNCTION );

Good look,

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

No branches or pull requests

3 participants
@vd28 @joaquin-alc and others