Major and minor changes are logged here.
- Make
zoom
extent configurable. - Update
README.md
.
- Added
node.color
option. - Update
README.md
- Change
update
behavior. Nowdata
is not mandatory. It can pass data asnull
and will just update options.
- Added
node.onDrag
event listener option.
- Added
window
resize event ,and recalculate default simulation when window resizes and custom simulation is not provided. - Added
events.onResize
andevents.onZoom
options. - Added
node.labelColor
andnode.labelFontSize
option.
- adjust tooltip scale when zoom is triggered.
- fix option
radius
not updated whenupdate
method is called.
- add condition to check if 'zoom' enable or not.
- fix typo - replace "||" with "??".
- rename option parameter "stroke" to "border".
- rename option parameter "strokeWidth" to "borderWidth".
- remove dist folder when publishing to npm and thus use "github" raw file instead of cdn link.
New Features
-
added option "link.width" to change link width.
-
It enables the chart to zoom in/out using mouse or touch actions