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.

162 lines
6.4 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <script>(function (i, s, o, g, r, a, m) {
  5. i['GoogleAnalyticsObject'] = r;
  6. i[r] = i[r] || function () {
  7. (i[r].q = i[r].q || []).push(arguments)
  8. }, i[r].l = 1 * new Date();
  9. a = s.createElement(o), m = s.getElementsByTagName(o)[0];
  10. a.async = 1;
  11. a.src = g;
  12. m.parentNode.insertBefore(a, m)
  13. })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
  14. ga('create', 'UA-61231638-1', 'auto');
  15. ga('send', 'pageview');</script>
  16. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  17. <meta charset="utf-8">
  18. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  19. <meta name="viewport" content="width=device-width, initial-scale=1">
  20. <meta name="description" content="">
  21. <meta name="author" content="">
  22. <link rel="icon" HREF="favicon.ico">
  23. <title>vis.js - A dynamic, browser based visualization library.</title>
  24. <!-- Bootstrap core CSS -->
  25. <link href="../css/bootstrap.css" rel="stylesheet">
  26. <link href="../css/newdocs.css" rel="stylesheet">
  27. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  28. <!--[if lt IE 9]>
  29. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  30. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  31. <![endif]-->
  32. <script src="../js/smooth-scroll.min.js"></script>
  33. <script language="JavaScript">
  34. smoothScroll.init();
  35. </script>
  36. <style>
  37. </style>
  38. </head>
  39. <!-- NAVBAR
  40. ================================================== -->
  41. <body>
  42. <div class="navbar-wrapper">
  43. <div class="container">
  44. <nav class="navbar navbar-inverse navbar-static-top" role="navigation">
  45. <div class="container">
  46. <div class="navbar-header">
  47. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
  48. aria-expanded="false" aria-controls="navbar">
  49. <span class="sr-only">Toggle navigation</span>
  50. <span class="icon-bar"></span>
  51. <span class="icon-bar"></span>
  52. <span class="icon-bar"></span>
  53. </button>
  54. <a class="navbar-brand hidden-sm" href="./index.html">vis.js</a>
  55. </div>
  56. <div id="navbar" class="navbar-collapse collapse">
  57. <ul class="nav navbar-nav">
  58. <li><a href="../index.html#modules">Modules</a></li>
  59. <li class="active"><a href="./docs/index.html" target="_blank">Documentation <img class="icon"
  60. src="../img/external-link-icons/external-link-icon-white.png"></a>
  61. </li>
  62. <li><a href="../blog.html">Blog</a></li>
  63. <li><a href="../index.html#download_install">Download</a></li>
  64. <li><a href="../showcase/index.html">Showcase</a></li>
  65. <li><a href="../index.html#contribute">Contribute</a></li>
  66. <li><a href="../featureRequests.html">Feature requests</a></li>
  67. <li><a href="../index.html#licenses">License</a></li>
  68. </ul>
  69. </div>
  70. </div>
  71. </nav>
  72. </div>
  73. </div>
  74. <a href="https://github.com/almende/vis" class="hidden-xs hidden-sm hidden-md"><img
  75. style="position: absolute; top: 0; right: 0; border: 0;"
  76. src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67"
  77. alt="Fork me on GitHub"
  78. data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
  79. <div class="container full">
  80. <h1>Network - groups</h1>
  81. <p>Handles the HTML part of the canvas.</p>
  82. <h3>Options</h3>
  83. <p>This is a list of all the methods in the public API. They are collected here from all individual modules.</p>
  84. <table class="moduleTable">
  85. <tr class="header">
  86. <td class="name">name</td>
  87. <td class="type">type</td>
  88. <td class="default">default</td>
  89. <td class="description">description</td>
  90. </tr>
  91. <tr>
  92. <td>useDefaultGroups</td>
  93. <td class="mid">Boolean</td>
  94. <td class="mid"><code>true</code></td>
  95. <td>If your nodes have groups defined that are not in the Groups module, the module loops over the groups it
  96. does have, allocating one for each unknown group. When all are used, it goes back to the first group. By
  97. setting this to false, the default groups will not be used in this cycle.
  98. </td>
  99. </tr>
  100. <tr>
  101. <td>group*</td>
  102. <td class="mid">Object</td>
  103. <td class="mid"><code></code></td>
  104. <td>
  105. You can add multiple groups containing styling information that applies to a certain subset of groups.
  106. All options described in the <a href="./nodes.html">nodes module</a> that make sense can be used here
  107. (you're not going to set the same id or x,y position for a group of nodes).
  108. Example:
  109. <pre class="code">
  110. var nodes = [
  111. {id:1, group:'myGroup', label:"I'm in a custom group called 'myGroup'!"}
  112. ]
  113. var options = {
  114. groups: {
  115. myGroup: {color:{background:'red'}, borderWidth:3}
  116. }
  117. }
  118. </pre>
  119. *) the option is not called group, as shown by the example but can by any custom id, except for
  120. 'useDefaultGroups'.
  121. </td>
  122. </tr>
  123. </table>
  124. <h3>Methods</h3>
  125. <p>The groups module has no methods.</p>
  126. <h3>Events</h3>
  127. <p>The groups module has no events.</p>
  128. <br/>
  129. <br/>
  130. <br/>
  131. <br/>
  132. <br/>
  133. <br/>
  134. <br/>
  135. </div>
  136. <!-- Bootstrap core JavaScript
  137. ================================================== -->
  138. <!-- Placed at the end of the document so the pages load faster -->
  139. <script src="../js/jquery.min.js"></script>
  140. <script src="../js/bootstrap.min.js"></script>
  141. <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  142. <script src="../js/ie10-viewport-bug-workaround.js"></script>