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.

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