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.

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