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.

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