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.

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