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.

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