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.

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