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.

1061 lines
38 KiB

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