How to display overNode label in Sigma.Js programmatically?
我正在使用Sigma.Js库在Node.Js应用程序中显示图形可视化。
有一个
我想在单击节点时显示此标签矩形,有人知道该怎么做吗?
这是解决方案:
// Bind events:
1
2
3
4
5
6
7
8 captor.bind('click', onClick);
captor.bind('mousedown', onMove);
captor.bind('mouseup', onMove);
captor.bind('mousemove', onMove);
captor.bind('mouseout', onOut);
captor.bind('doubleclick', onDoubleClick);
captor.bind('rightclick', onRightClick);
self.bind('render', onMove);