VivaGraphJS icon indicating copy to clipboard operation
VivaGraphJS copied to clipboard

Go to the link by clicking on the node.

Open vd28 opened this issue 5 years ago • 1 comments
trafficstars

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

vd28 avatar Jan 18 '20 15:01 vd28

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,

joaquin-alc avatar Jan 24 '20 12:01 joaquin-alc