Browse Source

Renamed examples

gh-pages
jos 9 years ago
parent
commit
f91c1951a8
47 changed files with 173 additions and 135 deletions
  1. +119
    -110
      docs/network/index.html
  2. +4
    -0
      docs/network/interaction.html
  3. +1
    -2
      docs/network/physics.html
  4. +3
    -2
      docs/timeline/index.html
  5. +0
    -0
      examples/network/basicUsage.html
  6. BIN
      examples/network/data/dotLanguage/graphvizGallery/screenshots/fsm.png
  7. BIN
      examples/network/data/dotLanguage/graphvizGallery/screenshots/hello.png
  8. BIN
      examples/network/data/dotLanguage/graphvizGallery/screenshots/softmaint.png
  9. BIN
      examples/network/data/dotLanguage/graphvizGallery/screenshots/traffic_lights.png
  10. +0
    -0
      examples/network/data/dynamicData.html
  11. +0
    -0
      examples/network/data/importingFromGephi.html
  12. +0
    -0
      examples/network/data/scalingCustom.html
  13. +0
    -0
      examples/network/data/scalingNodesEdges.html
  14. +0
    -0
      examples/network/data/scalingNodesEdgesLabels.html
  15. +21
    -1
      examples/network/events/interactionEvents.html
  16. +0
    -0
      examples/network/exampleApplications/lesMiserables.html
  17. +0
    -0
      examples/network/exampleApplications/neighbourhoodHighlight.html
  18. +0
    -0
      examples/network/labels/labelAlignment.html
  19. +0
    -0
      examples/network/labels/labelBackground.html
  20. +0
    -0
      examples/network/labels/labelColorAndSize.html
  21. +0
    -0
      examples/network/labels/labelStroke.html
  22. +0
    -0
      examples/network/labels/multilineText.html
  23. +0
    -0
      examples/network/layout/hierarchicalLayout.html
  24. +0
    -0
      examples/network/layout/hierarchicalLayoutMethods.html
  25. +0
    -0
      examples/network/layout/hierarchicalLayoutUserdefined.html
  26. +0
    -0
      examples/network/nodeStyles/HTMLInNodes.html
  27. +0
    -0
      examples/network/nodeStyles/circularImages.html
  28. +7
    -2
      examples/network/other/manipulation.html
  29. +0
    -0
      images/exampleScreenshots/network/basicUsage.png
  30. +0
    -0
      images/exampleScreenshots/network/data/dynamicData.png
  31. +0
    -0
      images/exampleScreenshots/network/data/importingFromGephi.png
  32. +0
    -0
      images/exampleScreenshots/network/data/scalingCustom.png
  33. +0
    -0
      images/exampleScreenshots/network/data/scalingNodesEdges.png
  34. +0
    -0
      images/exampleScreenshots/network/data/scalingNodesEdgesLabels.png
  35. +0
    -0
      images/exampleScreenshots/network/exampleApplications/lesMiserables.png
  36. +0
    -0
      images/exampleScreenshots/network/exampleApplications/neighbourhoodHighlight.png
  37. +0
    -0
      images/exampleScreenshots/network/labels/labelAlignment.png
  38. +0
    -0
      images/exampleScreenshots/network/labels/labelBackground.png
  39. +0
    -0
      images/exampleScreenshots/network/labels/labelColorAndSize.png
  40. +0
    -0
      images/exampleScreenshots/network/labels/labelStroke.png
  41. +0
    -0
      images/exampleScreenshots/network/labels/multilineText.png
  42. +0
    -0
      images/exampleScreenshots/network/layout/hierarchicalLayout.png
  43. +0
    -0
      images/exampleScreenshots/network/layout/hierarchicalLayoutMethods.png
  44. +0
    -0
      images/exampleScreenshots/network/layout/hierarchicalLayoutUserdefined.png
  45. +0
    -0
      images/exampleScreenshots/network/nodeStyles/HTMLInNodes.png
  46. +0
    -0
      images/exampleScreenshots/network/nodeStyles/circularImages.png
  47. +18
    -18
      network_examples.html

+ 119
- 110
docs/network/index.html View File

@ -187,7 +187,7 @@
</body>
</html>
</pre>
<p><a href="http://visjs.org/examples/network/basic_usage.html" target="_blank">The result of the code above will be the basic example which is shown here.</a></p>
<p><a href="http://visjs.org/examples/network/basicUsage.html" target="_blank">The result of the code above will be the basic example which is shown here.</a></p>
<br>
</div>
@ -247,10 +247,7 @@
targetNode="eventsDiv"><a>Events</a></li>
<li role="presentation"
onclick="toggleTab(this);"
targetNode="dotParserDiv"><a>DOT language</a></li>
<li role="presentation"
onclick="toggleTab(this);"
targetNode="gephiDiv"><a>Importing from Gephi</a></li>
targetNode="importDiv"><a>Import</a></li>
</ul>
<br>
@ -622,6 +619,15 @@ var locales = {
<td class="midMethods">Returns: Boolean</td>
<td>Returns true if the node whose ID has been supplied is a cluster.</td>
</tr>
<tr class="collapsible toggle" onclick="toggleTable('methodTable','getNodesInCluster', this);">
<td colspan="2"><span parent="getNodesInCluster" class="right-caret"></span> getNodesInCluster(
<code>String clusterNodeId</code>)
</tr>
<tr class="hidden" parent="getNodesInCluster">
<td class="midMethods">Returns: Array</td>
<td>Returns an array of all nodeIds of the nodes that would be released if you open the cluster.
</td>
</tr>
<tr class="collapsible toggle" onclick="toggleTable('methodTable','openCluster', this);">
<td colspan="2"><span parent="openCluster" class="right-caret"></span> openCluster(
<code>String nodeId</code>)
@ -681,12 +687,12 @@ var locales = {
<code>enabled</code> to false.
</td>
</tr>
<tr class="collapsible toggle" onclick="toggleTable('methodTable','editNodeMode', this);">
<td colspan="2"><span parent="editNodeMode" class="right-caret"></span> editNodeMode()</td>
<tr class="collapsible toggle" onclick="toggleTable('methodTable','editNode', this);">
<td colspan="2"><span parent="editNode" class="right-caret"></span> editNode()</td>
</tr>
<tr class="hidden" parent="editNodeMode">
<tr class="hidden" parent="editNode">
<td class="midMethods">Returns: none</td>
<td>Go into editNode mode. The explaination from <code>addNodeMode</code> applies here as well.</td>
<td>Edit the selected node. The explaination from <code>addNodeMode</code> applies here as well.</td>
</tr>
<tr class="collapsible toggle" onclick="toggleTable('methodTable','addEdgeMode', this);">
<td colspan="2"><span parent="addEdgeMode" class="right-caret"></span> addEdgeMode()</td>
@ -885,7 +891,7 @@ var locales = {
</td>
</tr>
<tr class="hidden" parent="getEdgeAt">
<td class="midMethods">Returns: String</code></td>
<td class="midMethods">Returns: String</td>
<td>Returns a edgeId or undefined. The DOM positions are expected to be in pixels from the top left
corner
of the canvas..
@ -1026,7 +1032,7 @@ var locales = {
<code>linear, easeInQuad, easeOutQuad, easeInOutQuad, easeInCubic, easeOutCubic, easeInOutCubic,
easeInQuart, easeOutQuart, easeInOutQuart, easeInQuint, easeOutQuint, easeInOutQuint</code>.
<i>You will have to define at least a scale or a position. Otherwise, there is nothing to move
<i>You will have to define at least a scale, position or offset. Otherwise, there is nothing to move
to.</i>
</td>
</tr>
@ -1147,7 +1153,7 @@ var options = {
</table>
</div>
<div id="eventsDiv" class=" hidden">
<div id="eventsDiv" class="hidden">
<h3>All Events</h3>
<p>This is a list of all the events in the public API. They are collected here from all individual modules.</p>
@ -1162,11 +1168,14 @@ var options = {
<tr class="subHeader">
<td colspan="3">Events triggered by human interaction, selection, dragging etc.</td>
</tr>
<tr class="">
<tr>
<td>click</td>
<td>
<pre class="code">
{
Object
</td>
<td>Fired when the user clicks the mouse or taps on a touchscreen device. Passes an object with properties structured as:
<pre class="prettyprint lang-js">{
nodes: [Array of selected nodeIds],
edges: [Array of selected edgeIds],
event: [Object] original click event,
@ -1177,9 +1186,8 @@ var options = {
}
</pre>
</td>
<td>Fired when the user clicks the mouse or taps on a touchscreen device.</td>
</tr>
<tr class="">
<tr>
<td>doubleClick</td>
<td>same as <code>click</code>.</td>
<td>Fired when the user double clicks the mouse or double taps on a touchscreen device. Since a double
@ -1191,15 +1199,15 @@ var options = {
processing them.
</td>
</tr>
<tr class="">
<tr>
<td>oncontext</td>
<td>same as <code>click</code>.</td>
<td>Fired when the user click on the canvas with the right mouse button. The right mouse button does not
select by default. You can use <a href="./selection.html">getNodeAt</a> to select the node if you
select by default. You can use the method <code>getNodeAt</code> to select the node if you
want.
</td>
</tr>
<tr class="">
<tr>
<td>hold</td>
<td>same as <code>click</code>.</td>
<td>Fired when the user clicks and holds the mouse or taps and holds on a touchscreen device. A click
@ -1207,13 +1215,13 @@ var options = {
is also fired in this case.
</td>
</tr>
<tr class="">
<tr>
<td>release</td>
<td>same as <code>click</code>.</td>
<td>Fired after drawing on the canvas has been completed. Can be used to draw on top of the network.
</td>
</tr>
<tr class="">
<tr>
<td>select</td>
<td>same as <code>click</code>.</td>
<td>Fired when the selection has changed by user action. This means a node or edge has been selected,
@ -1221,20 +1229,22 @@ var options = {
to the selection or deselected. <b>All select events are only triggered on click and hold</b>.
</td>
</tr>
<tr class="">
<tr>
<td>selectNode</td>
<td>same as <code>click</code>.</td>
<td>Fired when a node has been selected by the user.</td>
</tr>
<tr class="">
<tr>
<td>selectEdge</td>
<td>same as <code>click</code>.</td>
<td>Fired when a edge has been selected by the user.</td>
</tr>
<tr class="">
<tr>
<td>deselectNode</td>
<td><pre class="code">
{
<td>Object
</td>
<td>Fired when a node (or nodes) has (or have) been deselected by the user. The previous selection is the list of nodes and edges that were selected before the last user event. Passes an object with properties structured as:
<pre class="prettyprint lang-js">{
nodes: [Array of selected nodeIds],
edges: [Array of selected edgeIds],
event: [Object] original click event,
@ -1250,12 +1260,8 @@ var options = {
}
</pre>
</td>
<td>Fired when a node (or nodes) has (or have) been deselected by the user. The previous selection is
the
list of nodes and edges that were selected before the last user event.
</td>
</tr>
<tr class="">
<tr>
<td>deselectEdge</td>
<td>same as <code>deselectNode</code>.</td>
<td>Fired when a edge (or edges) has (or have) been deselected by the user. The previous selection is
@ -1263,32 +1269,42 @@ var options = {
list of nodes and edges that were selected before the last user event.
</td>
</tr>
<tr class="">
<tr>
<td>dragStart</td>
<td>same as <code>click</code>.</td>
<td>Fired when starting a drag.</td>
</tr>
<tr class="">
<tr>
<td>dragging</td>
<td>same as <code>click</code>.</td>
<td>Fired when dragging node(s) or the view.</td>
</tr>
<tr class="">
<tr>
<td>dragEnd</td>
<td>same as <code>click</code>.</td>
<td>Fired when the drag has finished.</td>
</tr>
<tr class="">
<tr>
<td>hoverNode</td>
<td><code>{node: nodeId}</code></td>
<td>Fired interaction:{hover:true} and the mouse hovers over a node.</td>
</tr>
<tr>
<td>blurNode</td>
<td><code>{node: nodeId}</code></td>
<td>Fired interaction:{hover:true} and the mouse moved away from a node it was hovering over before.</td>
</tr>
<tr>
<td>zoom</td>
<td><code>{direction:'+'/'-', scale: Number}</code></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 class="">
<tr>
<td>showPopup</td>
<td><code>id of item corresponding to popup</code></td>
<td>Fired when the popup (tooltip) is shown.</td>
</tr>
<tr class="">
<tr>
<td>hidePopup</td>
<td>none</td>
<td>Fired when the popup (tooltip) is hidden.</td>
@ -1296,55 +1312,47 @@ var options = {
<tr class="subHeader ">
<td colspan="3">Events triggered the physics simulation. Can be used to trigger GUI updates.</td>
</tr>
<tr class="">
<tr>
<td>startStabilizing</td>
<td>none</td>
<td>Fired when stabilization starts. This is also the case when you drag a node and the physics
simulation
restarts to stabilize again. Stabilization does not neccesarily imply 'without showing'.
</td>
<tr class="">
<tr>
<td>stabilizationProgress</td>
<td>
<pre class="code">
{
<td>Object</td>
<td>Fired when a multiple of the <code>updateInterval</code> number of iterations is reached. This only occurs in the 'hidden' stabilization. Passes an object with properties structured as:
<pre class="prettyprint lang-js">{
iterations: Number // iterations so far,
total: Number // total iterations in options
}
</pre>
</td>
<td>Fired when a multiple of the <code>updateInterval</code> number of iterations is reached. This only
occurs in the 'hidden' stabilization.
}</pre>
</td>
</tr>
<tr class="">
<tr>
<td>stabilizationIterationsDone</td>
<td>none</td>
<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
reached.
<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 reached.
</td>
<tr class="">
<tr>
<td>stabilized</td>
<td>
<pre class="code">
{
<td>Object</td>
<td>Fired when the network has stabilized or when the <code>stopSimulation()</code> has been called. The amount of iterations it took could be used to tweak the maximum amount of iterations needed to stabilize the network. Passes an object with properties structured as:
<pre class="prettyprint lang-js">{
iterations: Number // iterations it took
}
</pre>
</td>
<td>Fired when the network has stabilized or when the <code>stopSimulation()</code> has been called. The
amount of iterations it took could be used to tweak the maximum amount of iterations needed to
stabilize
the network.
}</pre>
</td>
<tr class="subHeader">
<td colspan="3">Event triggered by the canvas.</td>
</tr>
<tr class="">
<tr>
<td>resize</td>
<td>
<pre class="code">
<td>Object</td>
<td>Fired when the size of the canvas has been resized, either by a redraw call when the container div has changed in size, a setSize() call with new values or a setOptions() with new width and/or height values. Passes an object with properties structured as:
<pre class="prettyprint lang-js">
{
width: Number // the new width of the canvas
height: Number // the new height of the canvas
@ -1352,13 +1360,6 @@ var options = {
oldHeight: Number // the old height of the canvas
}
</pre>
<ul>
</ul>
</td>
<td>Fired when the size of the canvas has been resized, either by a redraw call when the container div
has
changed in size, a setSize() call with new values or a setOptions() with new width and/or height
values.
</td>
</tr>
@ -1367,21 +1368,21 @@ var options = {
canvas.
</td>
</tr>
<tr class="">
<tr>
<td>initRedraw</td>
<td>none</td>
<td>Fired before the redrawing begins. The simulation step has completed at this point. Can be used to
move
custom elements before starting drawing the new frame.
</td>
<tr class="">
<tr>
<td>beforeDrawing</td>
<td><code>canvas context</code></td>
<td>Fired after the canvas has been cleared, scaled and translated to the viewing position but before
all
edges and nodes are drawn. Can be used to draw behind the network.
</td>
<tr class="">
<tr>
<td>afterDrawing</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.
@ -1390,49 +1391,20 @@ var options = {
<tr class="subHeader">
<td colspan="3">Event triggered by the view module.</td>
</tr>
<tr class="">
<tr>
<td>animationFinished</td>
<td>none</td>
<td>Fired when an animation is finished.</td>
</table>
</div>
<div id="dotParserDiv" class=" hidden">
<p>
Network supports data in the
<a href="http://en.wikipedia.org/wiki/DOT_language" target="_blank">DOT language</a>.
To use data in the DOT language, you can use the vis.network.convertDot converter to transform the DOT
language
into a vis.Network compatible nodes, edges and options objects. You can extend the options object with other
options if you'd like.
</p>
<p>
Example usage:
</p>
<pre class="prettyprint lang-js">
// provide data in the DOT language
var DOTstring = 'dinetwork {1 -> 1 -> 2; 2 -> 3; 2 -- 4; 2 -> 1 }';
var parsedData = vis.network.convertDot(DOTstring);
var data = {
nodes: parsedData.nodes,
edges: parsedData.edges
}
<div id="importDiv" class=" hidden">
var options = parsedData.options;
<p>Network contains conversion utilities to import data from <a href="#importGephi">Gephi</a> and graphs in the <a href="#importDot">DOT language</a>.</p>
// you can extend the options like a normal JSON variable:
options.nodes = {
color: 'red'
}
<h3 id="importGephi">Import data from Gephi</h3>
// create a network
var network = new vis.Network(container, data, options);
</pre>
</div>
<div id="gephiDiv" class=" hidden">
<p>
Network can import data straight from an exported json file from gephi. You can get the JSON exporter here:
<a href="https://marketplace.gephi.org/plugin/json-exporter/" target="_blank">https://marketplace.gephi.org/plugin/json-exporter/</a>.
@ -1445,7 +1417,7 @@ var network = new vis.Network(container, data, options);
<pre class="prettyprint lang-js">
// load the JSON file containing the Gephi network.
var gephiJSON = loadJSON("./datasources/WorldCup2014.json"); // code in <a href="../examples/network/data/importing_from_gephi.html">importing_from_gephi</a>.
var gephiJSON = loadJSON("./datasources/WorldCup2014.json"); // code in <a href="http://visjs.org/examples/network/data/importingFromGephi.html">importing_from_gephi</a>.
// you can customize the result like with these options. These are explained below.
// These are the default options.
@ -1511,8 +1483,45 @@ var network = new vis.Network(container, data);
</tr>
</table>
<h3 id="importDot">Import data in DOT language</h3>
<p>
Network supports data in the
<a href="http://en.wikipedia.org/wiki/DOT_language" target="_blank">DOT language</a>.
To use data in the DOT language, you can use the vis.network.convertDot converter to transform the DOT
language
into a vis.Network compatible nodes, edges and options objects. You can extend the options object with other
options if you'd like.
</p>
<p>
Example usage:
</p>
<pre class="prettyprint lang-js">
// provide data in the DOT language
var DOTstring = 'dinetwork {1 -> 1 -> 2; 2 -> 3; 2 -- 4; 2 -> 1 }';
var parsedData = vis.network.convertDot(DOTstring);
var data = {
nodes: parsedData.nodes,
edges: parsedData.edges
}
var options = parsedData.options;
// you can extend the options like a normal JSON variable:
options.nodes = {
color: 'red'
}
// create a network
var network = new vis.Network(container, data, options);
</pre>
</div>
</div>
<!-- Bootstrap core JavaScript

+ 4
- 0
docs/network/interaction.html View File

@ -86,11 +86,13 @@ var options = {
hideEdgesOnDrag: false,
hideNodesOnDrag: false,
hover: false,
hoverSelectedEdges: true,
keyboard: {
enabled: false,
speed: {x: 10, y: 10, zoom: 0.02},
bindToWindow: true
},
multiselect: false,
navigationButtons: false,
selectable: true,
selectConnectedEdges: true,
@ -121,12 +123,14 @@ network.setOptions(options);
<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>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>
<tr class='toggle collapsible' onclick="toggleTable('optionTable','keyboard', this);"><td><span parent="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>
<tr parent="keyboard" class="hidden"><td class="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>
<tr parent="keyboard" class="hidden"><td class="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>
<tr parent="keyboard" class="hidden"><td class="indent">keyboard.speed.y</td> <td>Number</td> <td><code>1</code></td> <td>The speed at which the view moves in the y direction on pressing a key or pressing a navigation button.</td></tr>
<tr parent="keyboard" class="hidden"><td class="indent">keyboard.speed.zoom</td> <td>Number</td> <td><code>0.02</code></td> <td>The speed at which the view zooms in or out pressing a key or pressing a navigation button.</td></tr>
<tr parent="keyboard" class="hidden"><td class="indent">keyboard.bindToWindow</td> <td>Boolean</td> <td><code>true</code></td> <td>When binding the keyboard shortcuts to the window, they will work regardless of which DOM object has the focus. If you have multiple networks on your page, you could set this to false, making sure the keyboard shortcuts only work on the network that has the focus.</td></tr>
<tr><td>multiselect</td> <td>Boolean</td> <td><code>false</code></td> <td>When true, a longheld click (or touch) as well as a control-click will add to the selection.</td></tr>
<tr><td>navigationButtons</td> <td>Boolean</td> <td><code>false</code></td> <td>When true, navigation buttons are drawn on the network canvas. These are HTML buttons and can be completely customized using CSS.</td></tr>
<tr><td>selectable</td> <td>Boolean</td><td><code>true</code></td><td>When true, the nodes and edges can be selected by the user.</td></tr>
<tr><td>selectConnectedEdges</td> <td>Boolean</td><td><code>true</code></td><td>When true, on selecting a node, its connecting edges are highlighted.</td></tr>

+ 1
- 2
docs/network/physics.html View File

@ -91,8 +91,7 @@ var options = {
avoidOverlap: 0
},
forceAtlas2Based: {
theta: 0.5,
gravitationalConstant: -800,
gravitationalConstant: -50,
centralGravity: 0.01,
springConstant: 0.08,
springLength: 100,

+ 3
- 2
docs/timeline/index.html View File

@ -935,8 +935,9 @@ function (option, path) {
<td>
Add new vertical bar representing a custom time that can be dragged by the user.
Parameter <code>time</code> can be a Date, Number, or String, and is <code>new Date()</code> by default.
Parameter <code>id</code> can be Number or String and is <code>undefined</code> by default.<br>
Returns id of the created bar.
Parameter <code>id</code> can be Number or String and is <code>undefined</code> by default.
The <code>id</code>code> is added as CSS class name of the custom time bar, allowing to style multiple time bars differently.
The method returns id of the created bar.
</td>
</tr>

examples/network/basic_usage.html → examples/network/basicUsage.html View File


BIN
examples/network/data/dotLanguage/graphvizGallery/screenshots/fsm.png View File

Before After
Width: 894  |  Height: 593  |  Size: 69 KiB

BIN
examples/network/data/dotLanguage/graphvizGallery/screenshots/hello.png View File

Before After
Width: 921  |  Height: 264  |  Size: 18 KiB

BIN
examples/network/data/dotLanguage/graphvizGallery/screenshots/softmaint.png View File

Before After
Width: 1237  |  Height: 729  |  Size: 262 KiB

BIN
examples/network/data/dotLanguage/graphvizGallery/screenshots/traffic_lights.png View File

Before After
Width: 1108  |  Height: 591  |  Size: 58 KiB

examples/network/data/dynamic_data.html → examples/network/data/dynamicData.html View File


examples/network/data/importing_from_gephi.html → examples/network/data/importingFromGephi.html View File


examples/network/data/scaling_custom.html → examples/network/data/scalingCustom.html View File


examples/network/data/scaling_nodes_edges.html → examples/network/data/scalingNodesEdges.html View File


examples/network/data/scaling_nodes_edges_labels.html → examples/network/data/scalingNodesEdgesLabels.html View File


+ 21
- 1
examples/network/events/interactionEvents.html View File

@ -17,11 +17,12 @@
<body>
<p>
Create a simple network with some nodes and edges.
Create a simple network with some nodes and edges. Some of the events are logged in the console in improve readability.
</p>
<div id="mynetwork"></div>
<pre id="eventSpan"></pre>
<script type="text/javascript">
// create an array with nodes
var nodes = new vis.DataSet([
@ -79,6 +80,25 @@
network.on("showPopup", function (params) {
document.getElementById('eventSpan').innerHTML = '<h2>showPopup event: </h2>' + JSON.stringify(params, null, 4);
});
network.on("hidePopup", function () {
console.log('hidePopup Event');
});
network.on("select", function (params) {
console.log('select Event:', params);
});
network.on("selectNode", function (params) {
console.log('selectNode Event:', params);
});
network.on("selectEdge", function (params) {
console.log('selectEdge Event:', params);
});
network.on("deselectNode", function (params) {
console.log('deselectNode Event:', params);
});
network.on("deselectEdge", function (params) {
console.log('deselectEdge Event:', params);
});
</script>

examples/network/exampleApplications/les_miserables.html → examples/network/exampleApplications/lesMiserables.html View File


examples/network/exampleApplications/neighbourhood_highlight.html → examples/network/exampleApplications/neighbourhoodHighlight.html View File


examples/network/labels/label_alignment.html → examples/network/labels/labelAlignment.html View File


examples/network/labels/label_background.html → examples/network/labels/labelBackground.html View File


examples/network/labels/label_color_and_size.html → examples/network/labels/labelColorAndSize.html View File


examples/network/labels/label_stroke.html → examples/network/labels/labelStroke.html View File


examples/network/labels/multiline_text.html → examples/network/labels/multilineText.html View File


examples/network/layout/hierarchical_layout.html → examples/network/layout/hierarchicalLayout.html View File


examples/network/layout/hierarchical_layout_methods.html → examples/network/layout/hierarchicalLayoutMethods.html View File


examples/network/layout/hierarchical_layout_userdefined.html → examples/network/layout/hierarchicalLayoutUserdefined.html View File


examples/network/nodeStyles/HTML_in_Nodes.html → examples/network/nodeStyles/HTMLInNodes.html View File


examples/network/nodeStyles/circular_images.html → examples/network/nodeStyles/circularImages.html View File


+ 7
- 2
examples/network/other/manipulation.html View File

@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<title>Network | Localization</title>
<title>Network | Manipulation</title>
<style type="text/css">
body, select {
@ -98,7 +98,7 @@
document.getElementById('node-id').value = data.id;
document.getElementById('node-label').value = data.label;
document.getElementById('saveButton').onclick = saveData.bind(this, data, callback);
document.getElementById('cancelButton').onclick = clearPopUp.bind();
document.getElementById('cancelButton').onclick = cancelEdit.bind(this,callback);
document.getElementById('network-popUp').style.display = 'block';
},
addEdge: function (data, callback) {
@ -123,6 +123,11 @@
document.getElementById('network-popUp').style.display = 'none';
}
function cancelEdit(callback) {
clearPopUp();
callback(null);
}
function saveData(data,callback) {
data.id = document.getElementById('node-id').value;
data.label = document.getElementById('node-label').value;

images/exampleScreenshots/network/basic_usage.png → images/exampleScreenshots/network/basicUsage.png View File


images/exampleScreenshots/network/data/dynamic_data.png → images/exampleScreenshots/network/data/dynamicData.png View File


images/exampleScreenshots/network/data/importing_from_gephi.png → images/exampleScreenshots/network/data/importingFromGephi.png View File


images/exampleScreenshots/network/data/scaling_custom.png → images/exampleScreenshots/network/data/scalingCustom.png View File


images/exampleScreenshots/network/data/scaling_nodes_edges.png → images/exampleScreenshots/network/data/scalingNodesEdges.png View File


images/exampleScreenshots/network/data/scaling_nodes_edges_labels.png → images/exampleScreenshots/network/data/scalingNodesEdgesLabels.png View File


images/exampleScreenshots/network/exampleApplications/les_miserables.png → images/exampleScreenshots/network/exampleApplications/lesMiserables.png View File


images/exampleScreenshots/network/exampleApplications/neighbourhood_highlight.png → images/exampleScreenshots/network/exampleApplications/neighbourhoodHighlight.png View File


images/exampleScreenshots/network/labels/label_alignment.png → images/exampleScreenshots/network/labels/labelAlignment.png View File


images/exampleScreenshots/network/labels/label_background.png → images/exampleScreenshots/network/labels/labelBackground.png View File


images/exampleScreenshots/network/labels/label_color_and_size.png → images/exampleScreenshots/network/labels/labelColorAndSize.png View File


images/exampleScreenshots/network/labels/label_stroke.png → images/exampleScreenshots/network/labels/labelStroke.png View File


images/exampleScreenshots/network/labels/multiline_text.png → images/exampleScreenshots/network/labels/multilineText.png View File


images/exampleScreenshots/network/layout/hierarchical_layout.png → images/exampleScreenshots/network/layout/hierarchicalLayout.png View File


images/exampleScreenshots/network/layout/hierarchical_layout_methods.png → images/exampleScreenshots/network/layout/hierarchicalLayoutMethods.png View File


images/exampleScreenshots/network/layout/hierarchical_layout_userdefined.png → images/exampleScreenshots/network/layout/hierarchicalLayoutUserdefined.png View File


images/exampleScreenshots/network/nodeStyles/HTML_in_nodes.png → images/exampleScreenshots/network/nodeStyles/HTMLInNodes.png View File


images/exampleScreenshots/network/nodeStyles/circular_images.png → images/exampleScreenshots/network/nodeStyles/circularImages.png View File


+ 18
- 18
network_examples.html View File

@ -68,16 +68,16 @@
<a class="btn btn-primary" href="./docs/network" role="button">View docs »</a>
<h3>basic usage</h3>
<a class='exampleLink' href="examples/network/basic_usage.html">basic usage</a><br />
<a class='exampleLink' href="examples/network/basicUsage.html">basic usage</a><br />
<h3>node styles</h3>
<a class='exampleLink' href="examples/network/nodeStyles/colors.html">colors</a><br />
<a class='exampleLink' href="examples/network/nodeStyles/groups.html">groups</a><br />
<a class='exampleLink' href="examples/network/nodeStyles/customGroups.html">custom groups</a><br />
<a class='exampleLink' href="examples/network/nodeStyles/HTML_in_Nodes.html">HTML in nodes</a><br />
<a class='exampleLink' href="examples/network/nodeStyles/HTMLInNodes.html">HTML in nodes</a><br />
<a class='exampleLink' href="examples/network/nodeStyles/icons.html">icons (Fontawesome and Ionicons)</a><br />
<a class='exampleLink' href="examples/network/nodeStyles/images.html">images</a><br />
<a class='exampleLink' href="examples/network/nodeStyles/circular_images.html">circular images</a><br />
<a class='exampleLink' href="examples/network/nodeStyles/circularImages.html">circular images</a><br />
<a class='exampleLink' href="examples/network/nodeStyles/shadows.html">node shadows</a><br />
<a class='exampleLink' href="examples/network/nodeStyles/shapes.html">node shapes</a><br />
@ -89,16 +89,16 @@
<a class='exampleLink' href="examples/network/edgeStyles/smoothWorldCup.html">smooth curves in action</a><br />
<h3>labels</h3>
<a class='exampleLink' href="examples/network/labels/label_alignment.html">label alignment (for edges only)</a><br />
<a class='exampleLink' href="examples/network/labels/label_background.html">label background</a><br />
<a class='exampleLink' href="examples/network/labels/label_color_and_size.html">colors and sizes</a><br />
<a class='exampleLink' href="examples/network/labels/label_stroke.html">label stroke</a><br />
<a class='exampleLink' href="examples/network/labels/multiline_text.html">multiline text</a><br />
<a class='exampleLink' href="examples/network/labels/labelAlignment.html">label alignment (for edges only)</a><br />
<a class='exampleLink' href="examples/network/labels/labelBackground.html">label background</a><br />
<a class='exampleLink' href="examples/network/labels/labelColorAndSize.html">colors and sizes</a><br />
<a class='exampleLink' href="examples/network/labels/labelStroke.html">label stroke</a><br />
<a class='exampleLink' href="examples/network/labels/multilineText.html">multiline text</a><br />
<h3>layout</h3>
<a class='exampleLink' href="examples/network/layout/hierarchical_layout.html">hierarchical layout</a><br />
<a class='exampleLink' href="examples/network/layout/hierarchical_layout_methods.html">hierarchical layout - different methods</a><br />
<a class='exampleLink' href="examples/network/layout/hierarchical_layout_userdefined.html">hierarchical layout - user defined</a><br />
<a class='exampleLink' href="examples/network/layout/hierarchicalLayout.html">hierarchical layout</a><br />
<a class='exampleLink' href="examples/network/layout/hierarchicalLayoutMethods.html">hierarchical layout - different methods</a><br />
<a class='exampleLink' href="examples/network/layout/hierarchicalLayoutUserdefined.html">hierarchical layout - user defined</a><br />
<a class='exampleLink' href="examples/network/layout/randomSeed.html">set the random seed so every network will be the same</a><br />
<h3>events</h3>
@ -108,11 +108,11 @@
<h3>dynamic data</h3>
<a class='exampleLink' href="examples/network/data/datasets.html">dataset for dynamic data</a><br />
<a class='exampleLink' href="examples/network/data/dynamic_data.html">dynamic data, playground</a><br />
<a class='exampleLink' href="examples/network/data/importing_from_gephi.html">importing data from gephi</a><br />
<a class='exampleLink' href="examples/network/data/scaling_custom.html">scaling the nodes with the value.</a><br />
<a class='exampleLink' href="examples/network/data/scaling_nodes_edges.html">scaling the nodes and edges with the value.</a><br />
<a class='exampleLink' href="examples/network/data/scaling_nodes_edges_labels.html">scaling the nodes, edges and labels with the value.</a><br />
<a class='exampleLink' href="examples/network/data/dynamicData.html">dynamic data, playground</a><br />
<a class='exampleLink' href="examples/network/data/importingFromGephi.html">importing data from gephi</a><br />
<a class='exampleLink' href="examples/network/data/scalingCustom.html">scaling the nodes with the value.</a><br />
<a class='exampleLink' href="examples/network/data/scalingNodesEdges.html">scaling the nodes and edges with the value.</a><br />
<a class='exampleLink' href="examples/network/data/scalingNodesEdgesLabels.html">scaling the nodes, edges and labels with the value.</a><br />
<h3>dynamic configuration interface</h3>
<a class='exampleLink' href="examples/network/other/configuration.html">dynamic configuration</a><br />
@ -134,9 +134,9 @@
<a class='exampleLink' href="examples/network/other/navigation.html">navigation buttons and keyboard shortcuts</a><br />
<h3>example applications</h3>
<a class='exampleLink' href="examples/network/exampleApplications/les_miserables.html">les miserables cast</a><br />
<a class='exampleLink' href="examples/network/exampleApplications/lesMiserables.html">les miserables cast</a><br />
<a class='exampleLink' href="examples/network/exampleApplications/loadingBar.html">loading bar during stabilization</a><br />
<a class='exampleLink' href="examples/network/exampleApplications/neighbourhood_highlight.html">neighbourhood heighlight</a><br />
<a class='exampleLink' href="examples/network/exampleApplications/neighbourhoodHighlight.html">neighbourhood heighlight</a><br />
<a class='exampleLink' href="examples/network/exampleApplications/nodeLegend.html">using nodes as a legend</a><br />
<a class='exampleLink' href="examples/network/exampleApplications/worldCupPerformance.html">performance test with the worldcup data</a><br />
<a class='exampleLink' href="examples/network/other/performance.html">performance test with scale free network</a><br />

Loading…
Cancel
Save