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.

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