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.

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