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.

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