<td>Fired when the user zooms in or out. The properties tell you which direction the zoom is in. The scale is a number greater than 0, which is the same that you get with network.getScale().</td>
<td>Fired when the user zooms in or out. The properties tell you which direction the zoom is in. The scale is a number greater than 0, which is the same that you get with network.getScale().</td>
</tr>
</tr>
<trclass="">
<tr>
<td>showPopup</td>
<td>showPopup</td>
<td><code>id of item corresponding to popup</code></td>
<td><code>id of item corresponding to popup</code></td>
<td>Fired when the popup (tooltip) is shown.</td>
<td>Fired when the popup (tooltip) is shown.</td>
</tr>
</tr>
<trclass="">
<tr>
<td>hidePopup</td>
<td>hidePopup</td>
<td>none</td>
<td>none</td>
<td>Fired when the popup (tooltip) is hidden.</td>
<td>Fired when the popup (tooltip) is hidden.</td>
@ -1305,14 +1315,14 @@ var options = {
<trclass="subHeader ">
<trclass="subHeader ">
<tdcolspan="3">Events triggered the physics simulation. Can be used to trigger GUI updates.</td>
<tdcolspan="3">Events triggered the physics simulation. Can be used to trigger GUI updates.</td>
</tr>
</tr>
<trclass="">
<tr>
<td>startStabilizing</td>
<td>startStabilizing</td>
<td>none</td>
<td>none</td>
<td>Fired when stabilization starts. This is also the case when you drag a node and the physics
<td>Fired when stabilization starts. This is also the case when you drag a node and the physics
simulation
simulation
restarts to stabilize again. Stabilization does not neccesarily imply 'without showing'.
restarts to stabilize again. Stabilization does not neccesarily imply 'without showing'.
</td>
</td>
<trclass="">
<tr>
<td>stabilizationProgress</td>
<td>stabilizationProgress</td>
<td>
<td>
<preclass="code">
<preclass="code">
@ -1326,14 +1336,14 @@ var options = {
occurs in the 'hidden' stabilization.
occurs in the 'hidden' stabilization.
</td>
</td>
</tr>
</tr>
<trclass="">
<tr>
<td>stabilizationIterationsDone</td>
<td>stabilizationIterationsDone</td>
<td>none</td>
<td>none</td>
<td>Fired when the 'hidden' stabilization finishes. This does not necessarily mean the network is
<td>Fired when the 'hidden' stabilization finishes. This does not necessarily mean the network is
stabilized; it could also mean that the amount of iterations defined in the options has been
stabilized; it could also mean that the amount of iterations defined in the options has been
reached.
reached.
</td>
</td>
<trclass="">
<tr>
<td>stabilized</td>
<td>stabilized</td>
<td>
<td>
<preclass="code">
<preclass="code">
@ -1350,7 +1360,7 @@ var options = {
<trclass="subHeader">
<trclass="subHeader">
<tdcolspan="3">Event triggered by the canvas.</td>
<tdcolspan="3">Event triggered by the canvas.</td>
</tr>
</tr>
<trclass="">
<tr>
<td>resize</td>
<td>resize</td>
<td>
<td>
<preclass="code">
<preclass="code">
@ -1376,21 +1386,21 @@ var options = {
canvas.
canvas.
</td>
</td>
</tr>
</tr>
<trclass="">
<tr>
<td>initRedraw</td>
<td>initRedraw</td>
<td>none</td>
<td>none</td>
<td>Fired before the redrawing begins. The simulation step has completed at this point. Can be used to
<td>Fired before the redrawing begins. The simulation step has completed at this point. Can be used to
move
move
custom elements before starting drawing the new frame.
custom elements before starting drawing the new frame.
</td>
</td>
<trclass="">
<tr>
<td>beforeDrawing</td>
<td>beforeDrawing</td>
<td><code>canvas context</code></td>
<td><code>canvas context</code></td>
<td>Fired after the canvas has been cleared, scaled and translated to the viewing position but before
<td>Fired after the canvas has been cleared, scaled and translated to the viewing position but before
all
all
edges and nodes are drawn. Can be used to draw behind the network.
edges and nodes are drawn. Can be used to draw behind the network.
</td>
</td>
<trclass="">
<tr>
<td>afterDrawing</td>
<td>afterDrawing</td>
<td><code>canvas context</code></td>
<td><code>canvas context</code></td>
<td>Fired after drawing on the canvas has been completed. Can be used to draw on top of the network.
<td>Fired after drawing on the canvas has been completed. Can be used to draw on top of the network.
@ -1399,7 +1409,7 @@ var options = {
<trclass="subHeader">
<trclass="subHeader">
<tdcolspan="3">Event triggered by the view module.</td>
<tdcolspan="3">Event triggered by the view module.</td>
<tr><td>hideEdgesOnDrag</td><td>Boolean</td><td><code>false</code></td><td>When true, the edges are not drawn when dragging the view. This can greatly speed up responsiveness on dragging, improving user experience.</td></tr>
<tr><td>hideEdgesOnDrag</td><td>Boolean</td><td><code>false</code></td><td>When true, the edges are not drawn when dragging the view. This can greatly speed up responsiveness on dragging, improving user experience.</td></tr>
<tr><td>hideNodesOnDrag</td><td>Boolean</td><td><code>false</code></td><td>When true, the nodes are not drawn when dragging the view. This can greatly speed up responsiveness on dragging, improving user experience.</td></tr>
<tr><td>hideNodesOnDrag</td><td>Boolean</td><td><code>false</code></td><td>When true, the nodes are not drawn when dragging the view. This can greatly speed up responsiveness on dragging, improving user experience.</td></tr>
<tr><td>hover</td><td>Boolean</td><td><code>false</code></td><td>When true, the nodes use their hover colors when the mouse moves over them.</td></tr>
<tr><td>hover</td><td>Boolean</td><td><code>false</code></td><td>When true, the nodes use their hover colors when the mouse moves over them.</td></tr>
<tr><td>hoverSelectedEdges</td><td>Boolean</td><td><code>true</code></td><td>When true, on hovering over a node, it's connecting edges are highlighted.</td></tr>
<trclass='toggle collapsible'onclick="toggleTable('optionTable','keyboard', this);"><td><spanparent="keyboard"class="right-caret"></span> keyboard</td><td>Object or Boolean</td><td><code>Object</code></td><td>When true, the keyboard shortcuts are enabled with the default settings. For further customization, you can supply an object.</td></tr>
<trclass='toggle collapsible'onclick="toggleTable('optionTable','keyboard', this);"><td><spanparent="keyboard"class="right-caret"></span> keyboard</td><td>Object or Boolean</td><td><code>Object</code></td><td>When true, the keyboard shortcuts are enabled with the default settings. For further customization, you can supply an object.</td></tr>
<trparent="keyboard"class="hidden"><tdclass="indent">keyboard.enabled</td><td>Boolean</td><td><code>false</code></td><td>Toggle the usage of the keyboard shortcuts. If this option is not defined, it is set to true if any of the properties in this object are defined.</td></tr>
<trparent="keyboard"class="hidden"><tdclass="indent">keyboard.enabled</td><td>Boolean</td><td><code>false</code></td><td>Toggle the usage of the keyboard shortcuts. If this option is not defined, it is set to true if any of the properties in this object are defined.</td></tr>
<trparent="keyboard"class="hidden"><tdclass="indent">keyboard.speed.x</td><td>Number</td><td><code>1</code></td><td>The speed at which the view moves in the x direction on pressing a key or pressing a navigation button.</td></tr>
<trparent="keyboard"class="hidden"><tdclass="indent">keyboard.speed.x</td><td>Number</td><td><code>1</code></td><td>The speed at which the view moves in the x direction on pressing a key or pressing a navigation button.</td></tr>