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.

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