Releases: sim51/react-sigma
Releases · sim51/react-sigma
v3.0.0
v2.0.2
v2.0.1
This is the first release of the version 2 !
What's new ?
- Name has changed, it's now published under
@react-sigma(instead ofreact-sigma-v2). It makes more sense, specally with the point that follow - Project structure : it's a monorepo project with modules. We choose this architecture mainly for layouts, so you can import only the one (or none) that you need.
- Website has been completely rewritten : sim51.github.io/react-sigma/
New features
- Possibility to initialize the
SigmaContainerwith a graph - Adding all layouts that are available in graphology
- Adding hooks to manage camera, zoom, fullscreen, context. Standard component are using those hooks, so it's easy to rewrite them (if needed)
- Control component renderer can be fully customized
Breaking changes
- Sigma React div class name has changed from
react-sigma-v2toreact-sigma - Component
ForceAtlasControlhas been renameLayoutForceAtlasControl - Components of type control don't take anymore properties to customize the DOM button. We use children instead now. For controls with multiple button, the child order is important.
<FullScreenControl customEnterFullScreen={<BsArrowsFullscreen />} customExitFullScreen={<BsFullscreenExit />} />Becomes
<FullScreenControl>
<>
<BsArrowsFullscreen />
<BsFullscreenExit />
</>
</FullScreenControl>v1.3.0
Upgrade to sigma 2.1 and support all the new events (mainly edge & wheel events)
Thanks to @akitaSummer for the PR.
v1.2.1
v1.2.0
This release contains :
- The upgrade to new major version of graphology 0.23
- Internal refactoring, by creating a hook folder
- Adding
tslibas a dependency of the project - Handle more Sigma events (see https://github.com/sim51/react-sigma-v2/blob/main/src/types.ts#L20 )