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.

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