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.

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