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.

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