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.

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