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.

926 lines
32 KiB

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