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.

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