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.

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