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.

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