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.

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