diff --git a/docs/network/index.html b/docs/network/index.html index 01af8ad0..2ade8795 100644 --- a/docs/network/index.html +++ b/docs/network/index.html @@ -1313,7 +1313,7 @@ var options = { Fired when the user clicks the mouse or taps on a touchscreen device. Passes an object with properties structured as: -
{
+
{
   nodes: [Array of selected nodeIds],
   edges: [Array of selected edgeIds],
   event: [Object] original click event,
@@ -1323,6 +1323,24 @@ var options = {
   }
 }
 
+ +This is the structure common to all events. Specifically for the click event, the following property is added: + +
{
+...
+  items: [Array of click items],
+}
+ +Where the click items can be: +
+  {nodeId:NodeId}            // node with given id clicked on
+  {nodeId:NodeId labelId:0}  // label of node with given id clicked on
+  {edgeId:EdgeId}            // edge with given id clicked on
+  {edge:EdgeId, labelId:0}   // label of edge with given id clicked on
+
+ +The order of the items array is descending in z-order. +Thus, to get the topmost item, get the value at index 0. doubleClick diff --git a/examples/network/labels/labelAlignment.html b/examples/network/labels/labelAlignment.html index dd837ca7..78b47717 100644 --- a/examples/network/labels/labelAlignment.html +++ b/examples/network/labels/labelAlignment.html @@ -9,7 +9,7 @@