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.

917 lines
32 KiB

10 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
9 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
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.11.0-SNAPSHOT
  4. ### Network
  5. - (added gradient coloring for lines, but set for release in 4.0 due to required refactoring of options)
  6. - Fixed bug where a network that has frozen physics would resume redrawing after setData, setOptions etc.
  7. - Added option to bypass default groups. If more groups are specified in the nodes than there are in the groups, loop over supplied groups instead of default.
  8. - Added two new static smooth curves modes: curveCW and curve CCW.
  9. - Added request redraw for certain internal processes to reduce number of draw calls (performance improvements!).
  10. - Added pull request for usage of Icons. Thanks @Dude9177!
  11. - Allow hierarchical view to be set in setOptions.
  12. - Fixed manipulation bar for mobile.
  13. - Fixed #670: Bug when updating data in a DataSet, when Network is connected to the DataSet via a DataView.
  14. - Fixed #688: Added a css class to be able to distinguish buttons "Edit node"
  15. and "Edit edge".
  16. ### Timeline
  17. - Implemented orientation option `'both'`, displaying a time axis both on top
  18. and bottom (#665).
  19. - Implemented creating new range items by dragging in an empty space with the
  20. ctrl key down.
  21. - Implemented configuration option `order: function` to define a custom ordering
  22. for the items (see #538, #234).
  23. - Implemented events `click`, `doubleClick`, and `contextMenu`.
  24. - Implemented method `getEventProperties(event)`.
  25. - Fixed not property initializing with a DataView for groups.
  26. - Merged add custom timebar functionality, thanks @aytech!
  27. - Fixed #664: end of item not restored when canceling a move event.
  28. - Fixed #609: reduce the left/right dragarea when an item range is very small,
  29. so you can still move it as a whole.
  30. - Fixed #676: misalignment of background items when using subgroups and the
  31. group label's height is larger than the contents.
  32. ### Graph2d
  33. - Implemented events `click`, `doubleClick`, and `contextMenu`.
  34. - Implemented method `getEventProperties(event)`.
  35. ### DataSet/DataView
  36. - Implemented support for mapping field names. Thanks @spatialillusions.
  37. - Fixed #670: DataView not passing a data property on update events (see #670)
  38. ## 2015-02-11, version 3.10.0
  39. ### Network
  40. - Added option bindToWindow (default true) to choose whether the keyboard binds are global or to the network div.
  41. - Improved images handling so broken images are shown on all references of images that are broken.
  42. - Added getConnectedNodes method.
  43. - Added fontSizeMin, fontSizeMax, fontSizeMaxVisible, scaleFontWithValue, fontDrawThreshold to Nodes.
  44. - Added fade in of labels (on nodes) near the fontDrawThreshold.
  45. - Added nodes option to zoomExtent to zoom in on specific set of nodes.
  46. - Added stabilizationIterationsDone event which fires at the end of the internal stabilization run. Does not imply that the network is stabilized.
  47. - Added freezeSimulation method.
  48. - Added clusterByZoom option.
  49. - Added class name 'network-tooltip' to the tooltip, allowing custom styling.
  50. - Fixed bug when redrawing was not right on zoomed-out browsers.
  51. - Added opacity option to edges. Opacity is only used for the unselected state.
  52. - Fixed bug where selections from removed data elements persisted.
  53. ### Timeline
  54. - `Timeline.redraw()` now also recalculates the size of items.
  55. - Implemented option `snap: function` to customize snapping to nice dates
  56. when dragging items.
  57. - Implemented option `timeAxis: {scale: string, step: number}` to set a
  58. fixed scale.
  59. - Fixed width of range items not always being maintained when moving due to
  60. snapping to nice dates.
  61. - Fixed not being able to drag items to an other group on mobile devices.
  62. - Fixed `setWindow` not working when applying an interval larger than the
  63. configured `zoomMax`.
  64. ### DataSet/DataView
  65. - Added property `length` holding the total number of items to the `DataSet`
  66. and `DataView`.
  67. - Added a method `refresh()` to the `DataView`, to update filter results.
  68. - Fixed a bug in the `DataSet` returning an empty object instead of `null` when
  69. no item was found when using both a filter and specifying fields.
  70. ## 2015-01-16, version 3.9.1
  71. ### General
  72. - Fixed wrong distribution file deployed on the website and the downloadable
  73. zip file.
  74. ### Network
  75. - Fixed bug where opening a cluster with smoothCurves off caused one child to go crazy.
  76. - Fixed bug where zoomExtent does not work as expected.
  77. - Fixed nodes color data being overridden when having a group and a dataset update query.
  78. - Decoupled animation from physics simulation.
  79. - Fixed scroll being blocked if zoomable is false.
  80. ## 2015-01-16, version 3.9.0
  81. ### Network
  82. - Reverted change in image class, fixed bug #552
  83. - Improved (not neccesarily fixed) the fontFill offset between different browsers. #365
  84. - Fixed dashed lines on firefox on Unix systems
  85. - Altered the Manipulation Mixin to be succesfully destroyed from memory when calling destroy();
  86. - Improved drawing of arrowheads on smooth curves. #349
  87. - Caught case where click originated on external DOM element and drag progressed to vis.
  88. - Added label stroke support to Nodes, Edges & Groups as per-object or global settings. Thank you @klmdb!
  89. - Reverted patch that made nodes return to 'default' setting if no group was assigned to fix issue #561. The correct way to 'remove' a group from a node is to assign it a different one.
  90. - Made the node/edge selected by the popup system the same as selected by the click-to-select system. Thank you @pavlos256!
  91. - Improved edit edge control nodes positions, altered style a little.
  92. - Fixed issue #564 by resetting state to initial when no callback is performed in the return function.
  93. - Added condition to Repulsion similar to BarnesHut to ensure nodes do not overlap.
  94. - Added labelAlignment option to edges. Thanks @T-rav!
  95. - Close active sessions in dataManipulation when calling setData().
  96. - Fixed alignment issue with edgelabels
  97. ### Timeline
  98. - Added byUser flag to options of the rangechange and rangechanged event.
  99. ## 2015-01-09, version 3.8.0
  100. ### General
  101. - Updated to moment.js v2.9.0
  102. ### Network
  103. - Fixed flipping of hierarchical network on update when using RL and DU.
  104. - Added zoomExtentOnStabilize option to network.
  105. - Improved destroy function, added them to the examples.
  106. - Nodes now have bounding boxes that are used for zoomExtent.
  107. - Made physics more stable (albeit a little slower).
  108. - Added a check so only one 'activator' overlay is created on clickToUse.
  109. - Made global color options for edges overrule the inheritColors.
  110. - Improved cleaning up of the physics configuration on destroy and in options.
  111. - Made nodes who lost their group revert back to default color.
  112. - Changed group behaviour, groups now extend the options, not replace. This allows partial defines of color.
  113. - Fixed bug where box shaped nodes did not use hover color.
  114. - Fixed Locales docs.
  115. - When hovering over a node that does not have a title, the title of one of the connected edges that HAS a title is no longer shown.
  116. - Fixed error in repulsion physics model.
  117. - Improved physics handling for smoother network simulation.
  118. - Fixed infinite loop when an image can not be found and no brokenImage is provided.
  119. - Added getBoundingBox method.
  120. - Community fix for SVG images in IE11, thanks @dponch!
  121. - Fixed repeating stabilized event when the network is already stabilized.
  122. - Added circularImages, thanks for the contribution @brendon1982!
  123. - Stopped infinite loop when brokenImage is also not available.
  124. - Changed util color functions so they don't need eval. Thanks @naskooskov!
  125. ### Graph2d
  126. - Fixed round-off errors of zero on the y-axis.
  127. - added show major/minor lines options to dataAxis.
  128. - Fixed adapting to width and height changes.
  129. - Added a check so only one 'activator' overlay is created on clickToUse.
  130. - DataAxis width option now draws correctly.
  131. ### Timeline
  132. - Implemented support for styling of the vertical grid.
  133. - Support for custom date formatting of the labels on the time axis.
  134. - added show major/minor lines options to timeline.
  135. - Added a check so only one 'activator' overlay is created on clickToUse.
  136. ### Graph3d
  137. - Fixed mouse coordinates for tooltips.
  138. ## 2014-12-09, version 3.7.2
  139. ### Timeline
  140. - Fixed zooming issue on mobile devices.
  141. ### Graph2D
  142. - Fixed infinite loop when clearing DataSet
  143. ### Network
  144. - Sidestepped double touch event from hammer (ugly.. but functional) causing
  145. strange behaviour in manipulation mode
  146. - Better cleanup after reconnecting edges in manipulation mode
  147. - Fixed recursion error with smooth edges that are connected to non-existent nodes
  148. - Added destroy method.
  149. ## 2014-11-28, version 3.7.1
  150. ### Timeline
  151. - Implemented selection of a range of items using Shift+Click.
  152. - Fixed content in range items may overflow range after zoom.
  153. - Fixed onAdd/onUpdate callbacks when using a DataView (thanks @motzel).
  154. - Fixed configuring either `start` or `end`.
  155. - Fixed Timeline and Graph2d getting stuck in an infinite loop in some
  156. circumstances.
  157. - Fixed background items being selectable and editable when a height is set.
  158. ### Graph2D
  159. - Added `alignZeros` option to dataAxis with default value true.
  160. - Fixed bug with points drawn on bargraphs
  161. - Fixed docs
  162. - Fixed height increase on scrolling if only `graphHeight` is defined.
  163. ### Network
  164. - dragEnd event now does not give the selected nodes if only the viewport has been dragged #453
  165. - merged high DPI fix by @crubier, thanks!
  166. ## 2014-11-14, version 3.7.0
  167. ### Graph2D
  168. - Added points style for scatterplots and pointclouds.
  169. - Modularized the Graph2D draw styles.
  170. - Added a finishedRedraw event.
  171. ### Network
  172. - Added pointer properties to the click and the doubleClick events containing the XY coordinates in DOM and canvas space.
  173. - Removed IDs from navigation so multiple networks can be shown on the same page. (#438)
  174. ### Timeline
  175. - Added a finishedRedraw event.
  176. - Fixed the disappearing item bug.
  177. - Fixed keycharm issue.
  178. ## 2014-11-07, version 3.6.4
  179. ### General
  180. - Removed mousetrap due to Apache license, created keycharm and implemented it with vis.
  181. ### Timeline
  182. - Fixed height of background items when having a fixed or max height defined.
  183. - Fixed only one item being dragged when multiple items are selected.
  184. - Optimised a serious slowdown on performance since hidden dates.
  185. ### Network
  186. - Fixed onRelease with navigation option.
  187. - Fixed arrow heads not being colored.
  188. ### Graph2D
  189. - Fixed cleaning up of groups.
  190. - Throw error message when items are added before groups.
  191. - Made graphHeight automatic if height is defined AND if graphHeight is smaller than the center panel when height is defined as well.
  192. - Added new verticalDrag event for internal use, allowing the vertical scrolling of the grid lines on drag.
  193. - Fixed moving legend when postioned on the bottom and vertical dragging.
  194. - Optimised a serious slowdown on performance since hidden dates.
  195. - Accepted a large pull request from @cdjackson adding the following features (thank you!):
  196. - Titles on the DataAxis to explain what units you are using.
  197. - A style field for groups and datapoints so you can dynamically change styles.
  198. - A precision option to manually set the amount of decimals.
  199. - Two new examples showing the new features.
  200. ## 2014-10-28, version 3.6.3
  201. ### Timeline
  202. - Fixed background items not always be cleared when removing them.
  203. - Fixed visible items not always be displayed.
  204. - Performance improvements when doing a lot of changes at once in a DataSet.
  205. ### Network
  206. - Fixed dashed and arrow lines not using inheritColor.
  207. ### DataSet
  208. - Support for queueing of changes, and flushing them at once.
  209. - Implemented `DataSet.setOptions`. Only applicable for the `queue` options.
  210. ## 2014-10-24, version 3.6.2
  211. - Vis.js is now dual licensed under both Apache 2.0 and MIT.
  212. ## 2014-10-22, version 3.6.1
  213. ### Timeline
  214. - Fixed uneven stepsized with hidden dates.
  215. - Fixed multiple bugs with regards to hidden dates.
  216. - Fixed subgroups and added subgroup sorting. Subgroup labels will be in future releases.
  217. ## 2014-10-21, version 3.6.0
  218. ### Network
  219. - Title of nodes and edges can now be an HTML element too.
  220. - Renamed storePosition to storePositions. Added deprication message and old name still works.
  221. - Worked around hammer.js bug with multiple release listeners.
  222. - Improved cleaning up after manipulation toolbar.
  223. - Added getPositions() method to get the position of all nodes or some of them if specific Ids are supplied.
  224. - Added getCenterCoordinates() method to get the x and y position in canvas space of the center of the view.
  225. - Fixed node label becoming undefined.
  226. - Fixed cluster fontsize scaling.
  227. - Fixed cluster sector scaling.
  228. - Added oldHeight and oldWidth to resize event.
  229. ### Timeline
  230. - Implemented field `style` for both items and groups, to set a custom style for
  231. individual items.
  232. - Fixed height of BackgroundItems not being 100% when timeline has a fixed height.
  233. - Fixed width of BackgroundItems not being reduced to 0 when zooming out.
  234. - Fixed onclick events in items not working.
  235. - Added hiddenDates to hide specific times and/or days in the timeline.
  236. ### DataSet
  237. - Event listeners of `update` now receive an extra property `data`,
  238. containing the changed fields of the changed items.
  239. ### Graph2d
  240. - Fixed height of legend when there are many items showing.
  241. ### Graph3d
  242. - Implemented options `xValueLabel`, `yValueLabel` and `zValueLabel` for custom labels along
  243. the x, y, z axis. Thanks @fabriziofortino.
  244. ## 2014-09-16, version 3.5.0
  245. ### Network
  246. - Fixed nodes not always being unfixed when using allowedToMove.
  247. - Added dragStart and dragEnd events.
  248. - Added edge selection on edge labels.
  249. ### Graph2d
  250. - Fixed dataAxis not showing large numbers correctly.
  251. ## 2014-09-12, version 3.4.2
  252. ### Network
  253. - Changed timings for zoomExtent animation.
  254. - Fixed possible cause of freezing graph when animating.
  255. - Added locked to focusOnNode and releaseNode().
  256. - Fixed minor bug in positioning of fontFill of nodes with certain shapes.
  257. - Added startStabilization event.
  258. ## 2014-09-11, version 3.4.1
  259. ### Network
  260. - Fix for introduced bug on zoomExtent navigation button.
  261. - Added animation to zoomExtent navigation button.
  262. - Improved cleaning of Hammer.js bindings.
  263. ### Timeline
  264. - Fixed a bug in IE freezing when margin.item and margin.axis where both 0.
  265. ## 2014-09-10, version 3.4.0
  266. ### Graph2d
  267. - Fixed moment.js url in localization example.
  268. ### Network
  269. - Fixed some positioning issues with the close button of the manipulation menu.
  270. - Added fontFill to Nodes as it is in Edges.
  271. - Implemented support for broken image fallback. Thanks @sfairgrieve.
  272. - Added multiline labels to edges as they are implemented in nodes. Updated
  273. multiline example to show this.
  274. - Added animation and camera controls by the method .moveTo()
  275. - Added new event that fires when the animation is finished.
  276. - Added new example showing the new features of animation.
  277. - Added getScale() method.
  278. ### Timeline
  279. - Implemented support for templates.
  280. - Implemented a new item type: `'background'`. This can be used to mark periods
  281. with a background color and label.
  282. - Implemented support for attaching HTML attributes to items. Thanks @dturkenk.
  283. - Fixed moment.js url in localization example.
  284. - Fixed `className` of groups not being updated when changed.
  285. - Fixed the `id` field of a new item not correctly generated.
  286. - Fixed newly added item ignored when returning an other object instance.
  287. - Fixed option `autoResize` not working on IE in case of changing visibility
  288. of the Timeline container element.
  289. - Fixed an overflow issue with the dots of BoxItems when using groups.
  290. - Fixed a horizontal 1-pixel offset in the items (border width wasn't taken into
  291. account).
  292. - Renamed internal items from `ItemBox`, `ItemRange`, and `ItemPoint` to
  293. respectively `BoxItem`, `RangeItem`, and `PointItem`.
  294. - Fixed an error thrown when calling `destroy()`.
  295. ## 2014-08-29, version 3.3.0
  296. ### Timeline
  297. - Added localization support.
  298. - Implemented option `clickToUse`.
  299. - Implemented function `focus(id)` to center a specific item (or multiple items)
  300. on screen.
  301. - Implemented an option `focus` for `setSelection(ids, options)`, to immediately
  302. focus selected nodes.
  303. - Implemented function `moveTo(time, options)`.
  304. - Implemented animated range change for functions `fit`, `focus`, `setSelection`,
  305. and `setWindow`.
  306. - Implemented functions `setCurrentTime(date)` and `getCurrentTime()`.
  307. - Implemented a new callback function `onMoving(item, callback)`.
  308. - Implemented support for option `align` for range items.
  309. - Fixed the `change` event sometimes being fired twice on IE10.
  310. - Fixed canceling moving an item to another group did not move the item
  311. back to the original group.
  312. - Fixed the `change` event sometimes being fired twice on IE10.
  313. - Fixed canceling moving an item to another group did not move the item
  314. back to the original group.
  315. ### Network
  316. - A fix in reading group properties for a node.
  317. - Fixed physics solving stopping when a support node was not moving.
  318. - Implemented localization support.
  319. - Implemented option `clickToUse`.
  320. - Improved the `stabilized` event, it's now firing after every stabilization
  321. with iteration count as parameter.
  322. - Fixed page scroll event not being blocked when moving around in Network
  323. using arrow keys.
  324. - Fixed an initial rendering before the graph has been stabilized.
  325. - Fixed bug where loading hierarchical data after initialization crashed network.
  326. - Added different layout method to the hierarchical system based on the direction of the edges.
  327. ### Graph2d
  328. - Implemented option `handleOverlap` to support overlap, sideBySide and stack.
  329. - Implemented two examples showing the `handleOverlap` functionality.
  330. - Implemented `customRange` for the Y axis and an example showing how it works.
  331. - Implemented localization support.
  332. - Implemented option `clickToUse`.
  333. - Implemented functions `setCurrentTime(date)` and `getCurrentTime()`.
  334. - Implemented function `moveTo(time, options)`.
  335. - Fixed bugs.
  336. - Added groups.visibility functionality and an example showing how it works.
  337. ## 2014-08-14, version 3.2.0
  338. ### General
  339. - Refactored Timeline and Graph2d to use the same core.
  340. ### Graph2d
  341. - Added `visible` property to the groups.
  342. - Added `getLegend()` method.
  343. - Added `isGroupVisible()` method.
  344. - Fixed empty group bug.
  345. - Added `fit()` and `getItemRange()` methods.
  346. ### Timeline
  347. - Fixed items in groups sometimes being displayed but not positioned correctly.
  348. - Fixed a group "null" being displayed in IE when not using groups.
  349. ### Network
  350. - Fixed mass = 0 for nodes.
  351. - 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.
  352. - Disabled inheritColor when color information is set on an edge.
  353. - Tweaked examples.
  354. - 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.
  355. - Removed global edge length definition form examples.
  356. - Removed onclick and onrelease for navigation and switched to Hammer.js (fixing touchscreen interaction with navigation).
  357. - Fixed error on adding an edge without having created the nodes it should be connected to (in the case of dynamic smooth curves).
  358. ## 2014-07-22, version 3.1.0
  359. ### General
  360. - Refactored the code to commonjs modules, which are browserifyable. This allows
  361. to create custom builds.
  362. ### Timeline
  363. - Implemented function `getVisibleItems()`, which returns the items visible
  364. in the current window.
  365. - Added options `margin.item.horizontal` and `margin.item.vertical`, which
  366. allows to specify different margins horizontally/vertically.
  367. - Removed check for number of arguments in callbacks `onAdd`, `onUpdate`,
  368. `onRemove`, and `onMove`.
  369. - Fixed items in groups sometimes being displayed but not positioned correctly.
  370. - Fixed range where the `end` of the first is equal to the `start` of the second
  371. sometimes being stacked instead of put besides each other when `item.margin=0`
  372. due to round-off errors.
  373. ### Network (formerly named Graph)
  374. - Expanded smoothCurves options for improved support for large clusters.
  375. - Added multiple types of smoothCurve drawing for greatly improved performance.
  376. - Option for inherited edge colors from connected nodes.
  377. - Option to disable the drawing of nodes or edges on drag.
  378. - Fixed support nodes not being cleaned up if edges are removed.
  379. - Improved edge selection detection for long smooth curves.
  380. - Fixed dot radius bug.
  381. - Updated max velocity of nodes to three times it's original value.
  382. - Made "stabilized" event fire every time the network stabilizes.
  383. - Fixed drift in dragging nodes while zooming.
  384. - Fixed recursively constructing of hierarchical layouts.
  385. - Added borderWidth option for nodes.
  386. - Implemented new Hierarchical view solver.
  387. - Fixed an issue with selecting nodes when the web page is scrolled down.
  388. - Added Gephi JSON parser
  389. - Added Neighbour Highlight example
  390. - Added Import From Gephi example
  391. - Enabled color parsing for nodes when supplied with rgb(xxx,xxx,xxx) value.
  392. ### DataSet
  393. - Added .get() returnType option to return as JSON object, Array or Google
  394. DataTable.
  395. ## 2014-07-07, version 3.0.0
  396. ### Timeline
  397. - Implemented support for displaying a `title` for both items and groups.
  398. - Fixed auto detected item type being preferred over the global item `type`.
  399. - Throws an error when constructing without new keyword.
  400. - Removed the 'rangeoverflow' item type. Instead, one can use a regular range
  401. and change css styling of the item contents to:
  402. .vis.timeline .item.range .content {
  403. overflow: visible;
  404. }
  405. - Fixed the height of background and foreground panels of groups.
  406. - Fixed ranges in the Timeline sometimes overlapping when dragging the Timeline.
  407. - Fixed `DataView` not working in Timeline.
  408. ### Network (formerly named Graph)
  409. - Renamed `Graph` to `Network` to prevent confusion with the visualizations
  410. `Graph2d` and `Graph3d`.
  411. - Renamed option `dragGraph` to `dragNetwork`.
  412. - Now throws an error when constructing without new keyword.
  413. - Added pull request from Vukk, user can now define the edge width multiplier
  414. when selected.
  415. - Fixed `graph.storePositions()`.
  416. - Extended Selection API with `selectNodes` and `selectEdges`, deprecating
  417. `setSelection`.
  418. - Fixed multiline labels.
  419. - Changed hierarchical physics solver and updated docs.
  420. ### Graph2d
  421. - Added first iteration of the Graph2d.
  422. ### Graph3d
  423. - Now throws an error when constructing without new keyword.
  424. ## 2014-06-19, version 2.0.0
  425. ### Timeline
  426. - Implemented function `destroy` to neatly cleanup a Timeline.
  427. - Implemented support for dragging the timeline contents vertically.
  428. - Implemented options `zoomable` and `moveable`.
  429. - Changed default value of option `showCurrentTime` to true.
  430. - Internal refactoring and simplification of the code.
  431. - Fixed property `className` of groups not being applied to related contents and
  432. background elements, and not being updated once applied.
  433. ### Graph
  434. - Reduced the timestep a little for smoother animations.
  435. - Fixed dataManipulation.initiallyVisible functionality (thanks theGrue).
  436. - Forced typecast of fontSize to Number.
  437. - Added editing of edges using the data manipulation toolkit.
  438. ### DataSet
  439. - Renamed option `convert` to `type`.
  440. ## 2014-06-06, version 1.1.0
  441. ### Timeline
  442. - Select event now triggers repeatedly when selecting an already selected item.
  443. - Renamed `Timeline.repaint()` to `Timeline.redraw()` to be consistent with
  444. the other visualisations of vis.js.
  445. - Fixed `Timeline.clear()` not resetting a configured `options.start` and
  446. `options.end`.
  447. ### Graph
  448. - Fixed error with zero nodes with hierarchical layout.
  449. - Added focusOnNode function.
  450. - Added hover option.
  451. - Added dragNodes option. Renamed movebale to dragGraph option.
  452. - Added hover events (hoverNode, blurNode).
  453. ### Graph3D
  454. - Ported Graph3D from Chap Links Library.
  455. ## 2014-05-28, version 1.0.2
  456. ### Timeline
  457. - Implemented option `minHeight`, similar to option `maxHeight`.
  458. - Implemented a method `clear([what])`, to clear items, groups, and configuration
  459. of a Timeline instance.
  460. - Added function `repaint()` to force a repaint of the Timeline.
  461. - Some tweaks in snapping dragged items to nice dates.
  462. - Made the instance of moment.js packaged with vis.js accessibly via `vis.moment`.
  463. - A newly created item is initialized with `end` property when option `type`
  464. is `"range"` or `"rangeoverflow"`.
  465. - Fixed a bug in replacing the DataSet of groups via `Timeline.setGroups(groups)`.
  466. - Fixed a bug when rendering the Timeline inside a hidden container.
  467. - Fixed axis scale being determined wrongly for a second Timeline in a single page.
  468. ### Graph
  469. - Added zoomable and moveable options.
  470. - Changes setOptions to avoid resetting view.
  471. - Interchanged canvasToDOM and DOMtoCanvas to correspond with the docs.
  472. ## 2014-05-09, version 1.0.1
  473. ### Timeline
  474. - Fixed width of items with type `rangeoverflow`.
  475. - Fixed a bug wrongly rendering invisible items after updating them.
  476. ### Graph
  477. - Added coordinate conversion from DOM to Canvas.
  478. - Fixed bug where the graph stopped animation after settling in playing with physics.
  479. - Fixed bug where hierarchical physics properties were not handled.
  480. - Added events for change of view and zooming.
  481. ## 2014-05-02, version 1.0.0
  482. ### Timeline
  483. - Large refactoring of the Timeline, simplifying the code.
  484. - Great performance improvements.
  485. - Improved layout of box-items inside groups.
  486. - Items can now be dragged from one group to another.
  487. - Implemented option `stack` to enable/disable stacking of items.
  488. - Implemented function `fit`, which sets the Timeline window such that it fits
  489. all items.
  490. - Option `editable` can now be used to enable/disable individual manipulation
  491. actions (`add`, `updateTime`, `updateGroup`, `remove`).
  492. - Function `setWindow` now accepts an object with properties `start` and `end`.
  493. - Fixed option `autoResize` forcing a repaint of the Timeline with every check
  494. rather than when the Timeline is actually resized.
  495. - Fixed `select` event fired repeatedly when clicking an empty place on the
  496. Timeline, deselecting selected items).
  497. - Fixed initial visible window in case items exceed `zoomMax`. Thanks @Remper.
  498. - Fixed an offset in newly created items when using groups.
  499. - Fixed height of a group not reckoning with the height of the group label.
  500. - Option `order` is now deprecated. This was needed for performance improvements.
  501. - More examples added.
  502. - Minor bug fixes.
  503. ### Graph
  504. - Added recalculate hierarchical layout to update node event.
  505. - Added arrowScaleFactor to scale the arrows on the edges.
  506. ### DataSet
  507. - A DataSet can now be constructed with initial data, like
  508. `new DataSet(data, options)`.
  509. ## 2014-04-18, version 0.7.4
  510. ### Graph
  511. - Fixed IE9 bug.
  512. - Style fixes.
  513. - Minor bug fixes.
  514. ## 2014-04-16, version 0.7.3
  515. ### Graph
  516. - Fixed color bug.
  517. - Added pull requests from kannonboy and vierja: tooltip styling, label fill
  518. color.
  519. ## 2014-04-09, version 0.7.2
  520. ### Graph
  521. - Fixed edge select bug.
  522. - Fixed zoom bug on empty initialization.
  523. ## 2014-03-27, version 0.7.1
  524. ### Graph
  525. - Fixed edge color bug.
  526. - Fixed select event bug.
  527. - Clarified docs, stressing importance of css inclusion for correct display of
  528. navigation an manipulation icons.
  529. - Improved and expanded playing with physics (configurePhysics option).
  530. - Added highlights to navigation icons if the corresponding key is pressed.
  531. - Added freezeForStabilization option to improve stabilization with cached
  532. positions.
  533. ## 2014-03-07, version 0.7.0
  534. ### Graph
  535. - Changed navigation CSS. Icons are now always correctly positioned.
  536. - Added stabilizationIterations option to graph.
  537. - Added storePosition() method to save the XY positions of nodes in the DataSet.
  538. - Separated allowedToMove into allowedToMoveX and allowedToMoveY. This is
  539. required for initializing nodes from hierarchical layouts after
  540. storePosition().
  541. - Added color options for the edges.
  542. ## 2014-03-06, version 0.6.1
  543. ### Graph
  544. - Bugfix graphviz examples.
  545. - Bugfix labels position for smooth curves.
  546. - Tweaked graphviz example physics.
  547. - Updated physics documentation to stress importance of configurePhysics.
  548. ### Timeline
  549. - Fixed a bug with options `margin.axis` and `margin.item` being ignored when
  550. setting them to zero.
  551. - Some clarifications in the documentation.
  552. ## 2014-03-05, version 0.6.0
  553. ### Graph
  554. - Added Physics Configuration option. This makes tweaking the physics system to
  555. suit your needs easier.
  556. - Click and doubleClick events.
  557. - Initial zoom bugfix.
  558. - Directions for Hierarchical layout.
  559. - Refactoring and bugfixes.
  560. ## 2014-02-20, version 0.5.1
  561. - Fixed broken bower module.
  562. ## 2014-02-20, version 0.5.0
  563. ### Timeline
  564. - Editable Items: drag items, add new items, update items, and remove items.
  565. - Implemented options `selectable`, `editable`.
  566. - Added events `timechange` and `timechanged` when dragging the custom time bar.
  567. - Multiple items can be selected using ctrl+click or shift+click.
  568. - Implemented functions `setWindow(start, end)` and `getWindow()`.
  569. - Fixed scroll to zoom not working on IE in standards mode.
  570. ### Graph
  571. - Editable nodes and edges: create, update, and remove them.
  572. - Support for smooth, curved edges (on by default).
  573. - Performance improvements.
  574. - Fixed scroll to zoom not working on IE in standards mode.
  575. - Added hierarchical layout option.
  576. - Overhauled physics system, now using Barnes-Hut simulation by default. Great
  577. performance gains.
  578. - Modified clustering system to give better results.
  579. - Adaptive performance system to increase visual performance (60fps target).
  580. ### DataSet
  581. - Renamed functions `subscribe` and `unsubscribe` to `on` and `off` respectively.
  582. ## 2014-01-31, version 0.4.0
  583. ### Timeline
  584. - Implemented functions `on` and `off` to create event listeners for events
  585. `rangechange`, `rangechanged`, and `select`.
  586. - Implemented function `select` to get and set the selected items.
  587. - Items can be selected by clicking them, muti-select by holding them.
  588. - Fixed non working `start` and `end` options.
  589. ### Graph
  590. - Fixed longstanding bug in the force calculation, increasing simulation
  591. stability and fluidity.
  592. - Reworked the calculation of the Graph, increasing performance for larger
  593. datasets (up to 10x!).
  594. - Support for automatic clustering in Graph to handle large (>50000) datasets
  595. without losing performance.
  596. - Added automatic initial zooming to Graph, to more easily view large amounts
  597. of data.
  598. - Added local declustering to Graph, freezing the simulation of nodes outside
  599. of the cluster.
  600. - Added support for key-bindings by including mouseTrap in Graph.
  601. - Added navigation controls.
  602. - Added keyboard navigation.
  603. - Implemented functions `on` and `off` to create event listeners for event
  604. `select`.
  605. ## 2014-01-14, version 0.3.0
  606. - Moved the generated library to folder `./dist`
  607. - Css stylesheet must be loaded explicitly now.
  608. - Implemented options `showCurrentTime` and `showCustomTime`. Thanks @fi0dor.
  609. - Implemented touch support for Timeline.
  610. - Fixed broken Timeline options `min` and `max`.
  611. - Fixed not being able to load vis.js in node.js.
  612. ## 2013-09-20, version 0.2.0
  613. - Implemented full touch support for Graph.
  614. - Fixed initial empty range in the Timeline in case of a single item.
  615. - Fixed field `className` not working for items.
  616. ## 2013-06-20, version 0.1.0
  617. - Added support for DataSet to Graph. Graph now uses an id based set of nodes
  618. and edges instead of a row based array internally. Methods getSelection and
  619. setSelection of Graph now accept a list with ids instead of rows.
  620. - Graph is now robust against edges pointing to non-existing nodes, which
  621. can occur easily while dynamically adding/removing nodes and edges.
  622. - Implemented basic support for groups in the Timeline.
  623. - Added documentation on DataSet and DataView.
  624. - Fixed selection of nodes in a Graph when the containing web page is scrolled.
  625. - Improved date conversion.
  626. - Renamed DataSet option `fieldTypes` to `convert`.
  627. - Renamed function `vis.util.cast` to `vis.util.convert`.
  628. ## 2013-06-07, version 0.0.9
  629. - First working version of the Graph imported from the old library.
  630. - Documentation added for both Timeline and Graph.
  631. ## 2013-05-03, version 0.0.8
  632. - Performance improvements: only visible items are rendered.
  633. - Minor bug fixes and improvements.
  634. ## 2013-04-25, version 0.0.7
  635. - Sanitized the published packages on npm and bower.
  636. ## 2013-04-25, version 0.0.6
  637. - Css is now packaged in the javascript file, and automatically loaded.
  638. - The library uses node style dependency management for modules now, used
  639. with Browserify.
  640. ## 2013-04-16, version 0.0.5
  641. - First working version of the Timeline.
  642. - Website created.