vis.js is a dynamic, browser-based visualization library
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.

202 lines
8.5 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <meta name="description" content="">
  9. <meta name="author" content="">
  10. <link rel="icon" HREF="favicon.ico">
  11. <title>vis.js - A dynamic, browser based visualization library.</title>
  12. <!-- Bootstrap core CSS -->
  13. <link href="../css/bootstrap.css" rel="stylesheet">
  14. <link href="../css/newdocs.css" rel="stylesheet">
  15. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  16. <!--[if lt IE 9]>
  17. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  18. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  19. <![endif]-->
  20. <script src="../js/smooth-scroll.min.js"></script>
  21. <script src="../js/googleAnalytics.js"></script>
  22. <script language="JavaScript">
  23. smoothScroll.init();
  24. </script>
  25. <style>
  26. </style>
  27. </head>
  28. <!-- NAVBAR
  29. ================================================== -->
  30. <body>
  31. <div class="navbar-wrapper">
  32. <div class="container">
  33. <nav class="navbar navbar-inverse navbar-static-top" role="navigation">
  34. <div class="container">
  35. <div class="navbar-header">
  36. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
  37. aria-expanded="false" aria-controls="navbar">
  38. <span class="sr-only">Toggle navigation</span>
  39. <span class="icon-bar"></span>
  40. <span class="icon-bar"></span>
  41. <span class="icon-bar"></span>
  42. </button>
  43. <a class="navbar-brand hidden-sm" href="./index.html">vis.js</a>
  44. </div>
  45. <div id="navbar" class="navbar-collapse collapse">
  46. <ul class="nav navbar-nav">
  47. <li><a href="http://www.visjs.org/index.html#modules">Modules</a></li>
  48. <li class="active"><a href="./docs/index.html" target="_blank">Documentation <img class="icon"
  49. src="../img/external-link-icons/external-link-icon-white.png"></a>
  50. </li>
  51. <li><a href="http://www.visjs.org/blog.html">Blog</a></li>
  52. <li><a href="http://www.visjs.org/index.html#download_install">Download</a></li>
  53. <li><a href="http://www.visjs.org/showcase/index.html">Showcase</a></li>
  54. <li><a href="http://www.visjs.org/index.html#contribute">Contribute</a></li>
  55. <li><a href="http://www.visjs.org/featureRequests.html">Feature requests</a></li>
  56. <li><a href="http://www.visjs.org/index.html#licenses">License</a></li>
  57. </ul>
  58. </div>
  59. </div>
  60. </nav>
  61. </div>
  62. </div>
  63. <a href="https://github.com/almende/vis" class="hidden-xs hidden-sm hidden-md"><img
  64. style="position: absolute; top: 0; right: 0; border: 0;"
  65. src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67"
  66. alt="Fork me on GitHub"
  67. data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
  68. <div class="container full">
  69. <h1>Network</h1>
  70. <p>As of 4.0, the network consists of individual modules which handle specific parts of the network. These modules
  71. have their own docs, options, methods and events which you can access
  72. by clicking on the modules in the list below.</p>
  73. <h3>Modules</h3>
  74. <table class="moduleTable">
  75. <tr>
  76. <td width="120px" class="gren"><a href="./canvas.html">canvas</a></td>
  77. <td>Handles the HTML part of the network.</td>
  78. </tr>
  79. <tr>
  80. <td><a href="./clustering.html">clustering</a></td>
  81. <td>Provides the clustering api, giving users full control over the formed clusters.</td>
  82. </tr>
  83. <tr>
  84. <td><a href="./configure.html">configure</a></td>
  85. <td>Generates an interactive option editor with filtering.</td>
  86. </tr>
  87. <tr>
  88. <td><a href="./edges.html">edges</a></td>
  89. <td>Handles the creation and deletion of edges and contains the global edge options and styles.</td>
  90. </tr>
  91. <tr>
  92. <td><a href="./groups.html">groups</a></td>
  93. <td>Contains the groups and some options on how to handle nodes with non-existing groups.</td>
  94. </tr>
  95. <tr>
  96. <td><a href="./interaction.html">interaction</a></td>
  97. <td>Used for all user interaction with the network. Handles mouse and touch events as well as the navigation
  98. buttons and the popups.
  99. </td>
  100. </tr>
  101. <tr>
  102. <td><a href="./layout.html">layout</a></td>
  103. <td>Governs the initial and hierarchical positioning.</td>
  104. </tr>
  105. <tr>
  106. <td><a href="./manipulation.html">manipulation</a></td>
  107. <td>Supplies an API and optional GUI to alter the data in the network.</td>
  108. </tr>
  109. <tr>
  110. <td><a href="./nodes.html">nodes</a></td>
  111. <td>Handles the creation and deletion of nodes and contains the global node options and styles.</td>
  112. </tr>
  113. <tr>
  114. <td><a href="./physics.html">physics</a></td>
  115. <td>Does all the simulation moving the nodes and edges to their final positions, also governs
  116. stabilization.
  117. </td>
  118. </tr>
  119. <tr>
  120. <td><a href="./rendering.html">rendering</a></td>
  121. <td>Handles the rendering aspect of vis. It governs the render loop, it draws the nodes and edges and
  122. provides events to allow users to hook into the drawing.
  123. </td>
  124. </tr>
  125. <tr>
  126. <td><a href="./selection.html">selection</a></td>
  127. <td>Handles the selection of nodes and edges.</td>
  128. </tr>
  129. <tr>
  130. <td><a href="./view.html">view</a></td>
  131. <td>Acts as the camera that looks on the canvas. Does the animation, zooming and focusing.</td>
  132. </tr>
  133. </table>
  134. <h3>All Methods</h3>
  135. <p>This is a list of all the methods in the public API. They are collected here from all individual modules.</p>
  136. <table class="moduleTable">
  137. <tr class="header">
  138. <td class="methodName">name</td>
  139. <td>returns</td>
  140. <td>description</td>
  141. </tr>
  142. <tr>
  143. <td>destroy()</td>
  144. <td class="mid">none</td>
  145. <td>Remove the network from the DOM and remove all Hammer bindings and references.</td>
  146. </tr>
  147. <tr>
  148. <td>setData({<br><code><i>nodes: vis DataSet/Array</i></code>,<br><code><i>edges: vis
  149. DataSet/Arary</i></code><br>})
  150. </td>
  151. <td class="mid">none</td>
  152. <td>Override all the data in the network. If stabilization is enabled in the <a href="physics.html">physics
  153. module</a>, the network will stabilize again. This method is also performed when first initializing the
  154. network.
  155. </td>
  156. </tr>
  157. <tr>
  158. <td>setOptions(<code>Object options</code>)</td>
  159. <td class="mid">none</td>
  160. <td>Set the options. All available options can be found in the modules above. Each module requires it's own
  161. container with the module name to contain its options.
  162. </td>
  163. </tr>
  164. </table>
  165. <h3>All Events</h3>
  166. <p>This is a list of all the events in the public API. They are collected here from all individual modules.</p>
  167. <br>
  168. <br>
  169. <br>
  170. <br>
  171. <br>
  172. <br>
  173. <br>
  174. <br>
  175. <br>
  176. <br>
  177. </div>
  178. <!-- Bootstrap core JavaScript
  179. ================================================== -->
  180. <!-- Placed at the end of the document so the pages load faster -->
  181. <script src="../js/jquery.min.js"></script>
  182. <script src="../js/bootstrap.min.js"></script>
  183. <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  184. <script src="../js/ie10-viewport-bug-workaround.js"></script>