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.

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