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.

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