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.

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