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.

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