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.

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