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.

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