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.

1027 lines
36 KiB

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