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.

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