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.

991 lines
34 KiB

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