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.

578 lines
28 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. td.type {
  38. width: 90px;
  39. }
  40. </style>
  41. <script type="text/javascript" src="../js/toggleTable.js"></script>
  42. </head>
  43. <!-- NAVBAR
  44. ================================================== -->
  45. <body>
  46. <div class="navbar-wrapper">
  47. <div class="container">
  48. <nav class="navbar navbar-inverse navbar-static-top" role="navigation">
  49. <div class="container">
  50. <div class="navbar-header">
  51. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
  52. aria-expanded="false" aria-controls="navbar">
  53. <span class="sr-only">Toggle navigation</span>
  54. <span class="icon-bar"></span>
  55. <span class="icon-bar"></span>
  56. <span class="icon-bar"></span>
  57. </button>
  58. <a class="navbar-brand hidden-sm" href="./index.html">vis.js</a>
  59. </div>
  60. <div id="navbar" class="navbar-collapse collapse">
  61. <ul class="nav navbar-nav">
  62. <li><a href="../index.html#modules">Modules</a></li>
  63. <li class="active"><a href="./docs/index.html" target="_blank">Documentation <img class="icon"
  64. src="../img/external-link-icons/external-link-icon-white.png"></a>
  65. </li>
  66. <li><a href="../blog.html">Blog</a></li>
  67. <li><a href="../index.html#download_install">Download</a></li>
  68. <li><a href="../showcase/index.html">Showcase</a></li>
  69. <li><a href="../index.html#contribute">Contribute</a></li>
  70. <li><a href="../featureRequests.html">Feature requests</a></li>
  71. <li><a href="../index.html#licenses">License</a></li>
  72. </ul>
  73. </div>
  74. </div>
  75. </nav>
  76. </div>
  77. </div>
  78. <a href="https://github.com/almende/vis" class="hidden-xs hidden-sm hidden-md"><img
  79. style="position: absolute; top: 0; right: 0; border: 0;"
  80. src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67"
  81. alt="Fork me on GitHub"
  82. data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
  83. <div class="container full">
  84. <h1>Network - edges</h1>
  85. <p>Handles the creation and deletion of edges and contains the global edge options and styles.</p>
  86. <h3>Options</h3>
  87. <p>This is a list of all the methods in the public API. They are collected here from all individual modules.</p>
  88. <table class="moduleTable" id="optionTable">
  89. <tr class="header">
  90. <td class="name">name</td>
  91. <td class="type">type</td>
  92. <td class="default">default</td>
  93. <td class="description">description</td>
  94. </tr>
  95. <tr class='toggle collapsible' onclick="toggleTable('optionTable','arrows', this);">
  96. <td><span parent="arrows" class="right-caret"></span> arrows</td>
  97. <td class="mid">Object or String</td>
  98. <td class="mid"><code>undefined</code></td>
  99. <td>To draw an arrow with default settings a string can be supplied. For example: <code>arrows:'to, from,
  100. middle'</code> or <code>'to;from'</code>, any combination with any seperating symbol is fine. If you
  101. want to control the size of the arrowheads, you can supply an object.
  102. </td>
  103. </tr>
  104. <tr parent="arrows" class="hidden">
  105. <td class="indent">arrows.to</td>
  106. <td class="mid">Object or Boolean</td>
  107. <td class="mid"><code>Object</code></td>
  108. <td>When true, an arrowhead on the 'to' side of the edge is drawn, pointing to the 'to' node with default
  109. settings. To customize the size of the arrow, supply an object.
  110. </td>
  111. </tr>
  112. <tr parent="arrows" class="hidden">
  113. <td class="indent2">arrows.to.enabled</td>
  114. <td class="mid">Boolean</td>
  115. <td class="mid"><code>false</code></td>
  116. <td>Toggle the arrow on or off. This option is optional, if undefined and the scaleFactor property is set,
  117. enabled will be set to true.
  118. </td>
  119. </tr>
  120. <tr parent="arrows" class="hidden">
  121. <td class="indent2">arrows.to.scaleFactor</td>
  122. <td class="mid">Number</td>
  123. <td class="mid"><code>1</code></td>
  124. <td>The scale factor allows you to change the size of the arrowhead.</td>
  125. </tr>
  126. <tr parent="arrows" class="hidden">
  127. <td class="indent">arrows.middle</td>
  128. <td class="mid">Object or Boolean</td>
  129. <td class="mid"><code>Object</code></td>
  130. <td>Exactly the same as the to object but with an arrowhead in the center of the edge.</td>
  131. </tr>
  132. <tr parent="arrows" class="hidden">
  133. <td class="indent">arrows.from</td>
  134. <td class="mid">Object or Boolean</td>
  135. <td class="mid"><code>Object</code></td>
  136. <td>Exactly the same as the to object but with an arrowhead at the from node of the edge.</td>
  137. </tr>
  138. <tr class='toggle collapsible' onclick="toggleTable('optionTable','color', this);">
  139. <td><span parent="color" class="right-caret"></span> color</td>
  140. <td class="mid">Object or String</td>
  141. <td class="mid"><code>Object</code></td>
  142. <td>The color object contains the color information of the edge in every situation. When the edge only needs
  143. a single color, a color value like <code>'rgb(120,32,14)'</code>, <code>'#ffffff'</code> or
  144. <code>'red'</code> can be supplied instead of an object.
  145. </td>
  146. </tr>
  147. <tr parent="color" class="hidden">
  148. <td class="indent">color.color</td>
  149. <td class="mid">String</td>
  150. <td class="mid"><code>'#848484'</code></td>
  151. <td>The color of the border of the node when it is not selected or hovered over <i>(assuming hover is
  152. enabled in the interaction module)</i>.
  153. </td>
  154. </tr>
  155. <tr parent="color" class="hidden">
  156. <td class="indent">color.highlight</td>
  157. <td class="mid">String</td>
  158. <td class="mid"><code>'#848484'</code></td>
  159. <td>The color the edge when it is selected.</td>
  160. </tr>
  161. <tr parent="color" class="hidden">
  162. <td class="indent">color.hover</td>
  163. <td class="mid">String</td>
  164. <td class="mid"><code>'#848484'</code></td>
  165. <td>The color the edge when the mouse hovers over it <i>(assuming hover is enabled in the interaction
  166. module)</i>.
  167. </td>
  168. </tr>
  169. <tr parent="color" class="hidden">
  170. <td class="indent">color.inherit</td>
  171. <td class="mid">String or Boolean</td>
  172. <td class="mid"><code>'from'</code></td>
  173. <td><i>When color, highlight or hover are defined, inherit is set to false!</i>
  174. <br><br>Supported options are: <code>true, false, 'from','to','both'</code>.
  175. <br><br>The default value is 'from' which does the same as true: the edge will inherit the color from
  176. the border of the node on the 'from' side.
  177. <br><br>When set to 'to', the border color from the 'to' node will be used.
  178. <br><br>When set to 'both', the color will fade from the from color to the to color. <b>'both' is
  179. computationally intensive</b> because the gradient is recomputed every redraw. This is required
  180. because the angles change when the nodes move.
  181. </td>
  182. </tr>
  183. <tr parent="color" class="hidden">
  184. <td class="indent">color.opacity</td>
  185. <td class="mid">Number</td>
  186. <td class="mid"><code>1.0</code></td>
  187. <td>It can be useful to set the opacity of an edge without manually changing all the colors. The opacity
  188. option will convert all colors (also when using inherit) to adhere to the supplied opacity. The allowed
  189. range of the opacity option is between <code>0 and 1</code>. This is only done once so the performance
  190. impact is not too big.
  191. </td>
  192. </tr>
  193. <tr class='toggle collapsible' onclick="toggleTable('optionTable','dashes', this);">
  194. <td><span parent="dashes" class="right-caret"></span> dashes</td>
  195. <td class="mid">Object or Boolean</td>
  196. <td class="mid"><code>Object</code></td>
  197. <td>When true, the edge will be drawn as a dashed line. You can customize the dashes by supplying an object.
  198. <i>When using dashed lines in IE versions older than 11, the line will be drawn straight, not smooth</i>.
  199. </td>
  200. </tr>
  201. <tr parent="dashes" class="hidden">
  202. <td class="indent">dashes.enabled</td>
  203. <td class="mid">Boolean</td>
  204. <td class="mid"><code>false</code></td>
  205. <td>Toggle the dash drawing style on or off. This option is optional, if undefined and the scaleFactor
  206. property is set, enabled will be set to true.
  207. </td>
  208. </tr>
  209. <tr parent="dashes" class="hidden">
  210. <td class="indent">dashes.pattern</td>
  211. <td class="mid">Array</td>
  212. <td class="mid"><code>[5,5]</code></td>
  213. <td>Array of numbers repeating gap length, dash length, gap length, dash length, ... etc. The array is
  214. repeated until the distance is filled.
  215. </td>
  216. </tr>
  217. <tr class='toggle collapsible' onclick="toggleTable('optionTable','font', this);">
  218. <td><span parent="font" class="right-caret"></span> font</td>
  219. <td class="mid">Object or String</td>
  220. <td class="mid"><code>false</code></td>
  221. <td>This object defines the details of the label. A shorthand is also supported in the form <code>'size face
  222. color'</code> for example: <code>'14px arial red'</code>.
  223. </td>
  224. </tr>
  225. <tr parent="font" class="hidden">
  226. <td class="indent">font.color</td>
  227. <td class="mid">String</td>
  228. <td class="mid"><code>'#343434'</code></td>
  229. <td>Color of the label text.</td>
  230. </tr>
  231. <tr parent="font" class="hidden">
  232. <td class="indent">font.size</td>
  233. <td class="mid">Number</td>
  234. <td class="mid"><code>14</code></td>
  235. <td>Size of the label text.</td>
  236. </tr>
  237. <tr parent="font" class="hidden">
  238. <td class="indent">font.face</td>
  239. <td class="mid">String</td>
  240. <td class="mid"><code>'arial'</code></td>
  241. <td>Font face (or font family) of the label text.</td>
  242. </tr>
  243. <tr parent="font" class="hidden">
  244. <td class="indent">font.background</td>
  245. <td class="mid">String</td>
  246. <td class="mid"><code>undefined</code></td>
  247. <td>When not <code>undefined</code> but a <b>color string</b>, a background rectangle will be drawn behind
  248. the label in the supplied color.
  249. </td>
  250. </tr>
  251. <tr parent="font" class="hidden">
  252. <td class="indent">font.stroke</td>
  253. <td class="mid">Number</td>
  254. <td class="mid"><code>0</code></td>
  255. <td>As an alternative to the background rectangle, a stroke can be drawn around the text. When a value
  256. higher than 0 is supplied, the stroke will be drawn.
  257. </td>
  258. </tr>
  259. <tr parent="font" class="hidden">
  260. <td class="indent">font.strokeColor</td>
  261. <td class="mid">String</td>
  262. <td class="mid"><code>'#ffffff'</code></td>
  263. <td>This is the color of the stroke <i>assuming the value for stroke is higher than 0</i>.</td>
  264. </tr>
  265. <tr parent="font" class="hidden">
  266. <td class="indent">font.align</td>
  267. <td class="mid">String</td>
  268. <td class="mid"><code>'horizontal'</code></td>
  269. <td>Possible options: <code>'horizontal','top','middle','bottom'</code>. The alignment determines how the
  270. label is aligned over the edge. The default value <code>horizontal</code> aligns the label horizontally,
  271. regardless of the orientation of the edge. When an option other than <code>horizontal</code> is chosen,
  272. the label will align itself according to the edge.
  273. </td>
  274. </tr>
  275. <tr>
  276. <td>hidden</td>
  277. <td class="mid">Boolean</td>
  278. <td class="mid"><code>false</code></td>
  279. <td>When true, the edge is not drawn. It is part still part of the physics simulation however!</td>
  280. </tr>
  281. <tr>
  282. <td>hoverWidth</td>
  283. <td class="mid">Number or Function</td>
  284. <td class="mid"><code>0.5</code></td>
  285. <td>Assuming the hover behaviour is enabled in the <a href="./interaction.html">interaction module</a>, the
  286. hoverWidth determines the width of the edge when the user hovers over it with the mouse. If a number is
  287. supplied, this number will be <b>added</b> to the width.
  288. Because the width can be altered by the value and the scaling functions, a constant multiplier or added
  289. value may not give the best results. To solve this, you can supply a function. Example:
  290. <pre class="code">
  291. var options: {
  292. edges: {
  293. hoverWidth: function (width) {return width+1;}
  294. }
  295. }
  296. </pre>
  297. It receives the <code>Number width</code> of the edge. In this simple example we add 1 to the width. You
  298. can taylor the logic in the function as long as it returns a <code>Number</code>.
  299. </td>
  300. </tr>
  301. <tr>
  302. <td>label</td>
  303. <td class="mid">String</td>
  304. <td class="mid"><code>undefined</code></td>
  305. <td>The label of the edge. HTML does not work in here because the network uses HTML5 Canvas.</td>
  306. </tr>
  307. <tr>
  308. <td>length</td>
  309. <td class="mid">Number</td>
  310. <td class="mid"><code>undefined</code></td>
  311. <td>The physics simulation gives edges a spring length. This value can override the length of the spring in
  312. rest.
  313. </td>
  314. </tr>
  315. <tr>
  316. <td>physics</td>
  317. <td class="mid">Boolean</td>
  318. <td class="mid"><code>true</code></td>
  319. <td>When true, the edge is part of the physics simulation. When false, it will not act as a spring.</td>
  320. </tr>
  321. <tr class='toggle collapsible' onclick="toggleTable('optionTable','scaling', this);">
  322. <td><span parent="scaling" class="right-caret"></span> scaling</td>
  323. <td class="mid">Object</td>
  324. <td class="mid"><code>Object</code></td>
  325. <td>If the <code>value</code> option is specified, the width of the edges will be scaled according to the
  326. properties in this object. Keep in mind that when using scaling, the <code>width</code> option is
  327. neglected.
  328. </td>
  329. </tr>
  330. <tr parent="scaling" class="hidden">
  331. <td class="indent">scaling.min</td>
  332. <td class="mid">Number</td>
  333. <td class="mid"><code>1</code></td>
  334. <td>If edges have a value, their widths are determined by the value, the scaling function and the min max
  335. values. The min value is the minimum allowed value.
  336. </td>
  337. </tr>
  338. <tr parent="scaling" class="hidden">
  339. <td class="indent">scaling.max</td>
  340. <td class="mid">Number</td>
  341. <td class="mid"><code>15</code></td>
  342. <td>This is the maximum allowed width when the edges are scaled using the value option.</td>
  343. </tr>
  344. <tr parent="scaling" class="hidden">
  345. <td class="indent">scaling.label</td>
  346. <td class="mid">Object or Boolean</td>
  347. <td class="mid"><code>Object</code></td>
  348. <td>When false, the label is not allowed to scale with the edge. If true it will scale using default
  349. settigns. For further customization, you can supply an object.
  350. </td>
  351. </tr>
  352. <tr parent="scaling" class="hidden">
  353. <td class="indent2">scaling.label.enabled</td>
  354. <td class="mid">Boolean</td>
  355. <td class="mid"><code>false</code></td>
  356. <td>Toggle the scaling of the label on or off. If this option is not defined, it is set to true if any of
  357. the properties in this object are defined.
  358. </td>
  359. </tr>
  360. <tr parent="scaling" class="hidden">
  361. <td class="indent2">scaling.label.min</td>
  362. <td class="mid">Number</td>
  363. <td class="mid"><code>14</code></td>
  364. <td>The minimum font-size used for labels when scaling.</td>
  365. </tr>
  366. <tr parent="scaling" class="hidden">
  367. <td class="indent2">scaling.label.max</td>
  368. <td class="mid">Number</td>
  369. <td class="mid"><code>30</code></td>
  370. <td>The maximum font-size used for labels when scaling.</td>
  371. </tr>
  372. <tr parent="scaling" class="hidden">
  373. <td class="indent2">scaling.label.maxVisible</td>
  374. <td class="mid">Number</td>
  375. <td class="mid"><code>30</code></td>
  376. <td>When zooming in, the font is drawn larger as well. You can limit the perceived font size using this
  377. option. If set to 30, the font will never look larger than size 30 zoomed at 100%.
  378. </td>
  379. </tr>
  380. <tr parent="scaling" class="hidden">
  381. <td class="indent2">scaling.label.drawThreshold</td>
  382. <td class="mid">Number</td>
  383. <td class="mid"><code>3</code></td>
  384. <td>When zooming out, the font will be drawn smaller. This defines a lower limit for when the font is drawn.
  385. When using font scaling, you can use this together with the maxVisible to first show labels of important
  386. edges when zoomed out and only show the rest when zooming in.
  387. </td>
  388. </tr>
  389. <tr parent="scaling" class="hidden">
  390. <td class="indent">scaling.customScalingFunction</td>
  391. <td class="mid">Function</td>
  392. <td class="mid">in description</td>
  393. <td>If edges have <code>value</code> fields, this function determines how the size of the nodes are scaled
  394. based on their values. The default function is:
  395. <pre>
  396. function (min,max,total,value) {
  397. if (max === min) {
  398. return 0.5;
  399. }
  400. else {
  401. var scale = 1 / (max - min);
  402. return Math.max(0,(value - min)*scale);
  403. }
  404. }
  405. </pre>
  406. The function receives the minimum value of the set, the maximum value, the total sum of all values and
  407. finally the value of the node or edge it works on. <b>It has to return a value between 0 and 1.</b> The
  408. nodes and edges then calculate their size as follows:
  409. <pre>
  410. var scale = customScalingFunction(min,max,total,value);
  411. var diff = maxWidth - minWidth;
  412. myWidth = minWidth + diff * scale;
  413. </pre>
  414. </td>
  415. </tr>
  416. <tr>
  417. <td>selectionWidth</td>
  418. <td class="mid">Number or Function</td>
  419. <td class="mid"><code>1</code></td>
  420. <td>The selectionWidth determines the width of the edge when the edge is selected. If a number is supplied,
  421. this number will be <b>added</b> to the width.
  422. Because the width can be altered by the value and the scaling functions, a constant multiplier or added
  423. value may not give the best results. To solve this, you can supply a function. Example:
  424. <pre class="code">
  425. var options: {
  426. edges: {
  427. selectionWidth: function (width) {return width*2;}
  428. }
  429. }
  430. </pre>
  431. It receives the <code>Number width</code> of the edge. In this simple example multiply the width by 2.
  432. You can taylor the logic in the function as long as it returns a <code>Number</code>.
  433. </td>
  434. </tr>
  435. <tr>
  436. <td>selfReferenceSize</td>
  437. <td class="mid">Number</td>
  438. <td class="mid"><code>false</code></td>
  439. <td>When the to and from nodes are the same, a circle is drawn. This is the radius of that circle.</td>
  440. </tr>
  441. <tr class='toggle collapsible' onclick="toggleTable('optionTable','shadow', this);">
  442. <td><span parent="shadow" class="right-caret"></span> shadow</td>
  443. <td class="mid">Object or Boolean</td>
  444. <td class="mid"><code>Object</code></td>
  445. <td>When true, the edge casts a shadow using the default settings. This can be further refined by supplying
  446. an object.
  447. </td>
  448. </tr>
  449. <tr parent="shadow" class="hidden">
  450. <td class="indent">shadow.enabled</td>
  451. <td class="mid">Boolean</td>
  452. <td class="mid"><code>false</code></td>
  453. <td>Toggle the casting of shadows. If this option is not defined, it is set to true if any of the properties
  454. in this object are defined.
  455. </td>
  456. </tr>
  457. <tr parent="shadow" class="hidden">
  458. <td class="indent">shadow.size</td>
  459. <td class="mid">Number</td>
  460. <td class="mid"><code>10</code></td>
  461. <td>The blur size of the shadow.</td>
  462. </tr>
  463. <tr parent="shadow" class="hidden">
  464. <td class="indent">shadow.x</td>
  465. <td class="mid">Number</td>
  466. <td class="mid"><code>5</code></td>
  467. <td>The x offset.</td>
  468. </tr>
  469. <tr parent="shadow" class="hidden">
  470. <td class="indent">shadow.y</td>
  471. <td class="mid">Number</td>
  472. <td class="mid"><code>5</code></td>
  473. <td>The y offset.</td>
  474. </tr>
  475. <tr class='toggle collapsible' onclick="toggleTable('optionTable','smooth', this);">
  476. <td><span parent="smooth" class="right-caret"></span> smooth</td>
  477. <td class="mid">Object or Boolean</td>
  478. <td class="mid"><code>Object</code></td>
  479. <td>When true, the edge is drawn as a quadratic bezier curve. The drawing of these curves takes longer than
  480. that of straight curves but it looks better.
  481. There is a difference between dynamic smooth curves and static smooth curves. The dynamic smooth curves
  482. have an invisible support node that takes part in the physics simulation. If you have a lot of edges,
  483. you may want to consider turning off dynamic smooth curves for performance.
  484. </td>
  485. </tr>
  486. <tr parent="smooth" class="hidden">
  487. <td class="indent">smooth.enabled</td>
  488. <td class="mid">Boolean</td>
  489. <td class="mid"><code>true</code></td>
  490. <td>Toggle smooth curves on and off. This is an optional option. If any of the other properties in this
  491. object are set, this option will be set to true.
  492. </td>
  493. </tr>
  494. <tr parent="smooth" class="hidden">
  495. <td class="indent">smooth.dynamic</td>
  496. <td class="mid">Boolean</td>
  497. <td class="mid"><code>false</code></td>
  498. <td>When true, the edges will have an invisible support node guiding the shape. This node is part of the
  499. physics simulation. When false, there are a number of different approximations for smooth curves. Those
  500. can be selected in the type property.
  501. </td>
  502. </tr>
  503. <tr parent="smooth" class="hidden">
  504. <td class="indent">smooth.type</td>
  505. <td class="mid">String</td>
  506. <td class="mid"><code>'continuous'</code></td>
  507. <td>Possible options: <code>'continuous', 'discrete', 'diagonalCross', 'straightCross', 'horizontal',
  508. 'vertical', 'curvedCW', 'curvedCCW'</code>. Take a look at our example 26 to see what these look like
  509. and pick the one that you like best! <i>These do not do anything for dynamic smooth curves</i>.
  510. </td>
  511. </tr>
  512. <tr parent="smooth" class="hidden">
  513. <td class="indent">smooth.roundness</td>
  514. <td class="mid">Number</td>
  515. <td class="mid"><code>0.5</code></td>
  516. <td>Accepted range: <code>0 .. 1.0</code>. This parameter tweaks the roundness of the static smooth curves.
  517. </td>
  518. </tr>
  519. <tr>
  520. <td>title</td>
  521. <td class="mid">String</td>
  522. <td class="mid"><code>undefined</code></td>
  523. <td>The title is shown in a pop-up when the mouse moves over the edge.</td>
  524. </tr>
  525. <tr>
  526. <td>value</td>
  527. <td class="mid">Number</td>
  528. <td class="mid"><code>undefined</code></td>
  529. <td>When a value is set, the edges' width will be scaled using the options in the scaling object defined
  530. above.
  531. </td>
  532. </tr>
  533. <tr>
  534. <td>width</td>
  535. <td class="mid">Number</td>
  536. <td class="mid"><code>1</code></td>
  537. <td>The width of the edge. If value is set, this is not used.</td>
  538. </tr>
  539. </table>
  540. <h3>Methods</h3>
  541. <p>The nodes module has no methods.</p>
  542. <h3>Events</h3>
  543. <p>The nodes module emits no events. Click and select events are emitted from the interaction and selection
  544. modules.</p>
  545. <br/>
  546. <br/>
  547. <br/>
  548. <br/>
  549. <br/>
  550. <br/>
  551. <br/>
  552. </div>
  553. <!-- Bootstrap core JavaScript
  554. ================================================== -->
  555. <!-- Placed at the end of the document so the pages load faster -->
  556. <script src="../js/jquery.min.js"></script>
  557. <script src="../js/bootstrap.min.js"></script>
  558. <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  559. <script src="../js/ie10-viewport-bug-workaround.js"></script>