Graph database Analysis of the Steam Network
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1.1 KiB

sigma.plugins.dragNodes

Plugin developed by José M. Camacho, events by Sébastien Heymann for Linkurious.


This plugin provides a method to drag & drop nodes. At the moment, this plugin is not compatible with the WebGL renderer. Check the sigma.plugins.dragNodes function doc or the example code to know more.

To use, include all .js files under this folder. Then initialize it as follows:

var dragListener = new sigma.plugins.dragNodes(sigInst, renderer);

Kill the plugin as follows:

sigma.plugins.killDragNodes(sigInst);

Events

This plugin provides the following events fired by the instance of the plugin:

  • startdrag: fired at the beginning of the drag
  • drag: fired while the node is dragged
  • drop: fired at the end of the drag if the node has been dragged
  • dragend: fired at the end of the drag

Exemple of event binding:

dragListener.bind('startdrag', function(event) {
  console.log(event);
});