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.

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