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.

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