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.

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