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.

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