vis v4.0.0 Release Notes
Release Date: 2015-05-22 // almost 9 years ago-
General
- ๐ Changed the build scripts to include a transpilation of ES6 to ES5
(using http://babel.org), so we can use ES6 features in the vis.js code.
When creating a custom bundle using browserify, one now needs to add a
transform step using
babelify
, this is described in README.md.
Timeline
- โ Integrated an option configurator and validator.
- 0๏ธโฃ Implemented option
multiselect
, which is false by default. - โ Added method
setData({groups: groups, items: items})
. - ๐ Fixed range items not being displayed smaller than 10 pixels (twice the
padding). In order to have overflowing text, one should now apply css style
.vis.timeline .item.range { overflow: visible; }
instead of.vis.timeline .item.range .content { overflow: visible; }
. See example 18_range_overflow.html. - ๐ Fixed invalid css names for time axis grid, renamed hours class names from
4-8h
toh4-h8
. - ๐ Deprecated option
showCustomTime
. Use methodaddCustomTime()
instead. - ๐ Deprecated event
finishedRedraw
as it's redundant. - ๐ Renamed option
animate
toanimation
, and changed it to be either a boolean or an object{duration: number, easingFunction: string}
. - ๐ Fixed #831: items losing selection when their type changed.
Graph2d
- ๐ New option structure.
- ๐ Cleaned up docs.
- ๐ Fixed #628: stacking order.
- ๐ Fixed #624: sorting order.
- ๐ Fixed #616: stacking with negative bars.
- ๐ Fixed #728: alignment issues.
- ๐ Fixed #716: Height of graph
2px
too large when configuring a fixed height.
Network
The network has been completely rewritten. The new modular setup using ES6 classes makes it future proof for maintainability, extendability and clarity. A summary of new features:
- ๐ New examples, categorized by topic.
- ๐ New docs.
- ๐ New option structure, adhering to the modular setup on the backend.
- ๐ New events for user interaction.
- ๐ New render events for drawing custom elements on the canvas.
- ๐ New physics events for making a loading bar during stabilization.
- A lot of new methods that make extending easier.
- ๐ป Manipulation system now works without the UI neccesarily.
- Nodes and edges can cast shadows.
- ๐ง Configurator system to dynamically change almost all options.
- โ Validator has been created for the network's options, warning you about typo's and suggesting alternatives.
- Diamond shape for nodes.
- Unified the label code so edges and nodes have the same label settings.
- InheritColors for edges can be set to both, making a gradient fade between two node colors.
- Redesigned the clustering system giving full control over it.
- ๐ Random seed can be saved so the network will be the same every time you start it.
- ๐ New physics solver based on ForceAtlas2 as implemented in gephi.]
- ๐ New avoidOverlap option for physics.
- ๐ Many, many bugfixes.
DataSet
- โฌ๏ธ Dropped support for Google visualization DataTable.
- โฌ๏ธ Dropped support for appending data returned by
DataSet.get()
to an existing Array or DataTable.
- ๐ Changed the build scripts to include a transpilation of ES6 to ES5
(using http://babel.org), so we can use ES6 features in the vis.js code.
When creating a custom bundle using browserify, one now needs to add a
transform step using