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.

977 lines
34 KiB

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