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.

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