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.

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