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.

513 lines
17 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
  1. # vis.js history
  2. http://visjs.org
  3. ## not yet released, version 3.3.1
  4. ### Graph2d
  5. - Fixed moment.js url in localization example.
  6. ### Network
  7. - Fixed some positioning issues with the close button of the manipulation menu.
  8. ### Timeline
  9. - Fixed moment.js url in localization example.
  10. ## 2014-08-29, version 3.3.0
  11. ### Timeline
  12. - Added localization support.
  13. - Implemented option `clickToUse`.
  14. - Implemented function `focus(id)` to center a specific item (or multiple items)
  15. on screen.
  16. - Implemented an option `focus` for `setSelection(ids, options)`, to immediately
  17. focus selected nodes.
  18. - Implemented function `moveTo(time, options)`.
  19. - Implemented animated range change for functions `fit`, `focus`, `setSelection`,
  20. and `setWindow`.
  21. - Implemented functions `setCurrentTime(date)` and `getCurrentTime()`.
  22. - Implemented a new callback function `onMoving(item, callback)`.
  23. - Implemented support for option `align` for range items.
  24. - Fixed the `change` event sometimes being fired twice on IE10.
  25. - Fixed canceling moving an item to another group did not move the item
  26. back to the original group.
  27. - Fixed the `change` event sometimes being fired twice on IE10.
  28. - Fixed canceling moving an item to another group did not move the item
  29. back to the original group.
  30. ### Network
  31. - A fix in reading group properties for a node.
  32. - Fixed physics solving stopping when a support node was not moving.
  33. - Implemented localization support.
  34. - Implemented option `clickToUse`.
  35. - Improved the `stabilized` event, it's now firing after every stabilization
  36. with iteration count as parameter.
  37. - Fixed page scroll event not being blocked when moving around in Network
  38. using arrow keys.
  39. - Fixed an initial rendering before the graph has been stabilized.
  40. - Fixed bug where loading hierarchical data after initialization crashed network.
  41. - Added different layout method to the hierarchical system based on the direction of the edges.
  42. ### Graph2d
  43. - Implemented option `handleOverlap` to support overlap, sideBySide and stack.
  44. - Implemented two examples showing the `handleOverlap` functionality.
  45. - Implemented `customRange` for the Y axis and an example showing how it works.
  46. - Implemented localization support.
  47. - Implemented option `clickToUse`.
  48. - Implemented functions `setCurrentTime(date)` and `getCurrentTime()`.
  49. - Implemented function `moveTo(time, options)`.
  50. - Fixed bugs.
  51. - Added groups.visibility functionality and an example showing how it works.
  52. ## 2014-08-14, version 3.2.0
  53. ### General
  54. - Refactored Timeline and Graph2d to use the same core.
  55. ### Graph2d
  56. - Added `visible` property to the groups.
  57. - Added `getLegend()` method.
  58. - Added `isGroupVisible()` method.
  59. - Fixed empty group bug.
  60. - Added `fit()` and `getItemRange()` methods.
  61. ### Timeline
  62. - Fixed items in groups sometimes being displayed but not positioned correctly.
  63. - Fixed a group "null" being displayed in IE when not using groups.
  64. ### Network
  65. - Fixed mass = 0 for nodes.
  66. - Revamped the options system. You can globally set options (network.setOptions) to update settings of nodes and edges that have not been specifically defined by the individual nodes and edges.
  67. - Disabled inheritColor when color information is set on an edge.
  68. - Tweaked examples.
  69. - Removed the global length property for edges. The edgelength is part of the physics system. Therefore, you have to change the springLength of the physics system to change the edge length. Individual edge lengths can still be defined.
  70. - Removed global edge length definition form examples.
  71. - Removed onclick and onrelease for navigation and switched to Hammer.js (fixing touchscreen interaction with navigation).
  72. - Fixed error on adding an edge without having created the nodes it should be connected to (in the case of dynamic smooth curves).
  73. ## 2014-07-22, version 3.1.0
  74. ### General
  75. - Refactored the code to commonjs modules, which are browserifyable. This allows
  76. to create custom builds.
  77. ### Timeline
  78. - Implemented function `getVisibleItems()`, which returns the items visible
  79. in the current window.
  80. - Added options `margin.item.horizontal` and `margin.item.vertical`, which
  81. allows to specify different margins horizontally/vertically.
  82. - Removed check for number of arguments in callbacks `onAdd`, `onUpdate`,
  83. `onRemove`, and `onMove`.
  84. - Fixed items in groups sometimes being displayed but not positioned correctly.
  85. - Fixed range where the `end` of the first is equal to the `start` of the second
  86. sometimes being stacked instead of put besides each other when `item.margin=0`
  87. due to round-off errors.
  88. ### Network (formerly named Graph)
  89. - Expanded smoothCurves options for improved support for large clusters.
  90. - Added multiple types of smoothCurve drawing for greatly improved performance.
  91. - Option for inherited edge colors from connected nodes.
  92. - Option to disable the drawing of nodes or edges on drag.
  93. - Fixed support nodes not being cleaned up if edges are removed.
  94. - Improved edge selection detection for long smooth curves.
  95. - Fixed dot radius bug.
  96. - Updated max velocity of nodes to three times it's original value.
  97. - Made "stabilized" event fire every time the network stabilizes.
  98. - Fixed drift in dragging nodes while zooming.
  99. - Fixed recursively constructing of hierarchical layouts.
  100. - Added borderWidth option for nodes.
  101. - Implemented new Hierarchical view solver.
  102. - Fixed an issue with selecting nodes when the web page is scrolled down.
  103. - Added Gephi JSON parser
  104. - Added Neighbour Highlight example
  105. - Added Import From Gephi example
  106. - Enabled color parsing for nodes when supplied with rgb(xxx,xxx,xxx) value.
  107. ### DataSet
  108. - Added .get() returnType option to return as JSON object, Array or Google
  109. DataTable.
  110. ## 2014-07-07, version 3.0.0
  111. ### Timeline
  112. - Implemented support for displaying a `title` for both items and groups.
  113. - Fixed auto detected item type being preferred over the global item `type`.
  114. - Throws an error when constructing without new keyword.
  115. - Removed the 'rangeoverflow' item type. Instead, one can use a regular range
  116. and change css styling of the item contents to:
  117. .vis.timeline .item.range .content {
  118. overflow: visible;
  119. }
  120. - Fixed the height of background and foreground panels of groups.
  121. - Fixed ranges in the Timeline sometimes overlapping when dragging the Timeline.
  122. - Fixed `DataView` not working in Timeline.
  123. ### Network (formerly named Graph)
  124. - Renamed `Graph` to `Network` to prevent confusion with the visualizations
  125. `Graph2d` and `Graph3d`.
  126. - Renamed option `dragGraph` to `dragNetwork`.
  127. - Now throws an error when constructing without new keyword.
  128. - Added pull request from Vukk, user can now define the edge width multiplier
  129. when selected.
  130. - Fixed `graph.storePositions()`.
  131. - Extended Selection API with `selectNodes` and `selectEdges`, deprecating
  132. `setSelection`.
  133. - Fixed multiline labels.
  134. - Changed hierarchical physics solver and updated docs.
  135. ### Graph2d
  136. - Added first iteration of the Graph2d.
  137. ### Graph3d
  138. - Now throws an error when constructing without new keyword.
  139. ## 2014-06-19, version 2.0.0
  140. ### Timeline
  141. - Implemented function `destroy` to neatly cleanup a Timeline.
  142. - Implemented support for dragging the timeline contents vertically.
  143. - Implemented options `zoomable` and `moveable`.
  144. - Changed default value of option `showCurrentTime` to true.
  145. - Internal refactoring and simplification of the code.
  146. - Fixed property `className` of groups not being applied to related contents and
  147. background elements, and not being updated once applied.
  148. ### Graph
  149. - Reduced the timestep a little for smoother animations.
  150. - Fixed dataManipulation.initiallyVisible functionality (thanks theGrue).
  151. - Forced typecast of fontSize to Number.
  152. - Added editing of edges using the data manipulation toolkit.
  153. ### DataSet
  154. - Renamed option `convert` to `type`.
  155. ## 2014-06-06, version 1.1.0
  156. ### Timeline
  157. - Select event now triggers repeatedly when selecting an already selected item.
  158. - Renamed `Timeline.repaint()` to `Timeline.redraw()` to be consistent with
  159. the other visualisations of vis.js.
  160. - Fixed `Timeline.clear()` not resetting a configured `options.start` and
  161. `options.end`.
  162. ### Graph
  163. - Fixed error with zero nodes with hierarchical layout.
  164. - Added focusOnNode function.
  165. - Added hover option.
  166. - Added dragNodes option. Renamed movebale to dragGraph option.
  167. - Added hover events (hoverNode, blurNode).
  168. ### Graph3D
  169. - Ported Graph3D from Chap Links Library.
  170. ## 2014-05-28, version 1.0.2
  171. ### Timeline
  172. - Implemented option `minHeight`, similar to option `maxHeight`.
  173. - Implemented a method `clear([what])`, to clear items, groups, and configuration
  174. of a Timeline instance.
  175. - Added function `repaint()` to force a repaint of the Timeline.
  176. - Some tweaks in snapping dragged items to nice dates.
  177. - Made the instance of moment.js packaged with vis.js accessibly via `vis.moment`.
  178. - A newly created item is initialized with `end` property when option `type`
  179. is `"range"` or `"rangeoverflow"`.
  180. - Fixed a bug in replacing the DataSet of groups via `Timeline.setGroups(groups)`.
  181. - Fixed a bug when rendering the Timeline inside a hidden container.
  182. - Fixed axis scale being determined wrongly for a second Timeline in a single page.
  183. ### Graph
  184. - Added zoomable and moveable options.
  185. - Changes setOptions to avoid resetting view.
  186. - Interchanged canvasToDOM and DOMtoCanvas to correspond with the docs.
  187. ## 2014-05-09, version 1.0.1
  188. ### Timeline
  189. - Fixed width of items with type `rangeoverflow`.
  190. - Fixed a bug wrongly rendering invisible items after updating them.
  191. ### Graph
  192. - Added coordinate conversion from DOM to Canvas.
  193. - Fixed bug where the graph stopped animation after settling in playing with physics.
  194. - Fixed bug where hierarchical physics properties were not handled.
  195. - Added events for change of view and zooming.
  196. ## 2014-05-02, version 1.0.0
  197. ### Timeline
  198. - Large refactoring of the Timeline, simplifying the code.
  199. - Great performance improvements.
  200. - Improved layout of box-items inside groups.
  201. - Items can now be dragged from one group to another.
  202. - Implemented option `stack` to enable/disable stacking of items.
  203. - Implemented function `fit`, which sets the Timeline window such that it fits
  204. all items.
  205. - Option `editable` can now be used to enable/disable individual manipulation
  206. actions (`add`, `updateTime`, `updateGroup`, `remove`).
  207. - Function `setWindow` now accepts an object with properties `start` and `end`.
  208. - Fixed option `autoResize` forcing a repaint of the Timeline with every check
  209. rather than when the Timeline is actually resized.
  210. - Fixed `select` event fired repeatedly when clicking an empty place on the
  211. Timeline, deselecting selected items).
  212. - Fixed initial visible window in case items exceed `zoomMax`. Thanks @Remper.
  213. - Fixed an offset in newly created items when using groups.
  214. - Fixed height of a group not reckoning with the height of the group label.
  215. - Option `order` is now deprecated. This was needed for performance improvements.
  216. - More examples added.
  217. - Minor bug fixes.
  218. ### Graph
  219. - Added recalculate hierarchical layout to update node event.
  220. - Added arrowScaleFactor to scale the arrows on the edges.
  221. ### DataSet
  222. - A DataSet can now be constructed with initial data, like
  223. `new DataSet(data, options)`.
  224. ## 2014-04-18, version 0.7.4
  225. ### Graph
  226. - Fixed IE9 bug.
  227. - Style fixes.
  228. - Minor bug fixes.
  229. ## 2014-04-16, version 0.7.3
  230. ### Graph
  231. - Fixed color bug.
  232. - Added pull requests from kannonboy and vierja: tooltip styling, label fill
  233. color.
  234. ## 2014-04-09, version 0.7.2
  235. ### Graph
  236. - Fixed edge select bug.
  237. - Fixed zoom bug on empty initialization.
  238. ## 2014-03-27, version 0.7.1
  239. ### Graph
  240. - Fixed edge color bug.
  241. - Fixed select event bug.
  242. - Clarified docs, stressing importance of css inclusion for correct display of
  243. navigation an manipulation icons.
  244. - Improved and expanded playing with physics (configurePhysics option).
  245. - Added highlights to navigation icons if the corresponding key is pressed.
  246. - Added freezeForStabilization option to improve stabilization with cached
  247. positions.
  248. ## 2014-03-07, version 0.7.0
  249. ### Graph
  250. - Changed navigation CSS. Icons are now always correctly positioned.
  251. - Added stabilizationIterations option to graph.
  252. - Added storePosition() method to save the XY positions of nodes in the DataSet.
  253. - Separated allowedToMove into allowedToMoveX and allowedToMoveY. This is
  254. required for initializing nodes from hierarchical layouts after
  255. storePosition().
  256. - Added color options for the edges.
  257. ## 2014-03-06, version 0.6.1
  258. ### Graph
  259. - Bugfix graphviz examples.
  260. - Bugfix labels position for smooth curves.
  261. - Tweaked graphviz example physics.
  262. - Updated physics documentation to stress importance of configurePhysics.
  263. ### Timeline
  264. - Fixed a bug with options `margin.axis` and `margin.item` being ignored when
  265. setting them to zero.
  266. - Some clarifications in the documentation.
  267. ## 2014-03-05, version 0.6.0
  268. ### Graph
  269. - Added Physics Configuration option. This makes tweaking the physics system to
  270. suit your needs easier.
  271. - Click and doubleClick events.
  272. - Initial zoom bugfix.
  273. - Directions for Hierarchical layout.
  274. - Refactoring and bugfixes.
  275. ## 2014-02-20, version 0.5.1
  276. - Fixed broken bower module.
  277. ## 2014-02-20, version 0.5.0
  278. ### Timeline
  279. - Editable Items: drag items, add new items, update items, and remove items.
  280. - Implemented options `selectable`, `editable`.
  281. - Added events `timechange` and `timechanged` when dragging the custom time bar.
  282. - Multiple items can be selected using ctrl+click or shift+click.
  283. - Implemented functions `setWindow(start, end)` and `getWindow()`.
  284. - Fixed scroll to zoom not working on IE in standards mode.
  285. ### Graph
  286. - Editable nodes and edges: create, update, and remove them.
  287. - Support for smooth, curved edges (on by default).
  288. - Performance improvements.
  289. - Fixed scroll to zoom not working on IE in standards mode.
  290. - Added hierarchical layout option.
  291. - Overhauled physics system, now using Barnes-Hut simulation by default. Great
  292. performance gains.
  293. - Modified clustering system to give better results.
  294. - Adaptive performance system to increase visual performance (60fps target).
  295. ### DataSet
  296. - Renamed functions `subscribe` and `unsubscribe` to `on` and `off` respectively.
  297. ## 2014-01-31, version 0.4.0
  298. ### Timeline
  299. - Implemented functions `on` and `off` to create event listeners for events
  300. `rangechange`, `rangechanged`, and `select`.
  301. - Implemented function `select` to get and set the selected items.
  302. - Items can be selected by clicking them, muti-select by holding them.
  303. - Fixed non working `start` and `end` options.
  304. ### Graph
  305. - Fixed longstanding bug in the force calculation, increasing simulation
  306. stability and fluidity.
  307. - Reworked the calculation of the Graph, increasing performance for larger
  308. datasets (up to 10x!).
  309. - Support for automatic clustering in Graph to handle large (>50000) datasets
  310. without losing performance.
  311. - Added automatic initial zooming to Graph, to more easily view large amounts
  312. of data.
  313. - Added local declustering to Graph, freezing the simulation of nodes outside
  314. of the cluster.
  315. - Added support for key-bindings by including mouseTrap in Graph.
  316. - Added navigation controls.
  317. - Added keyboard navigation.
  318. - Implemented functions `on` and `off` to create event listeners for event
  319. `select`.
  320. ## 2014-01-14, version 0.3.0
  321. - Moved the generated library to folder `./dist`
  322. - Css stylesheet must be loaded explicitly now.
  323. - Implemented options `showCurrentTime` and `showCustomTime`. Thanks @fi0dor.
  324. - Implemented touch support for Timeline.
  325. - Fixed broken Timeline options `min` and `max`.
  326. - Fixed not being able to load vis.js in node.js.
  327. ## 2013-09-20, version 0.2.0
  328. - Implemented full touch support for Graph.
  329. - Fixed initial empty range in the Timeline in case of a single item.
  330. - Fixed field `className` not working for items.
  331. ## 2013-06-20, version 0.1.0
  332. - Added support for DataSet to Graph. Graph now uses an id based set of nodes
  333. and edges instead of a row based array internally. Methods getSelection and
  334. setSelection of Graph now accept a list with ids instead of rows.
  335. - Graph is now robust against edges pointing to non-existing nodes, which
  336. can occur easily while dynamically adding/removing nodes and edges.
  337. - Implemented basic support for groups in the Timeline.
  338. - Added documentation on DataSet and DataView.
  339. - Fixed selection of nodes in a Graph when the containing web page is scrolled.
  340. - Improved date conversion.
  341. - Renamed DataSet option `fieldTypes` to `convert`.
  342. - Renamed function `vis.util.cast` to `vis.util.convert`.
  343. ## 2013-06-07, version 0.0.9
  344. - First working version of the Graph imported from the old library.
  345. - Documentation added for both Timeline and Graph.
  346. ## 2013-05-03, version 0.0.8
  347. - Performance improvements: only visible items are rendered.
  348. - Minor bug fixes and improvements.
  349. ## 2013-04-25, version 0.0.7
  350. - Sanitized the published packages on npm and bower.
  351. ## 2013-04-25, version 0.0.6
  352. - Css is now packaged in the javascript file, and automatically loaded.
  353. - The library uses node style dependency management for modules now, used
  354. with Browserify.
  355. ## 2013-04-16, version 0.0.5
  356. - First working version of the Timeline.
  357. - Website created.