Skip to content

Releases: sim51/react-sigma

v4.0.0

03 Apr 15:39

Choose a tag to compare

Features

  • Upgrade to sigma v3
  • Upgrade all project dependencies
  • Refacto project structure
  • Replace example project by a storybook
  • Replace E2E framework by playwright, and run it on the storybook
  • Using stories in website example
  • Fully graph typed API (see #58). Component & hooks take generic types for node, edge & graph attributs. Exemple for the load graph hook :
const loadGraph = useLoadGraph<{label:string, x:number, y:number}, {label:string, size:number}>();

Breaking changes

  • React-sigma doesn't depends anymore to lodash. It was use to make a deep equal on the settings provided to the SigmaContainer. Now you have to handle that :
// Sigma settings are outside the react lifecycle to avoid the change of its ref at every render
// which triggers a full render of sigma. An other way is to use the `useMemo` hook inside the component.
const sigmaSettings = {
  allowInvalidContainer: true,
};

export const Example: FC = () => {
  return (
    <SigmaContainer settings={sigmaSettings}>
      <SampleGraph />
    </SigmaContainer>
  );
};
  • The sigma setting allowInvalidContainer is no more set per default. You have to pass it to the container (check above).

  • When you register events on edges, we don't set the correspondig settings anymore, like enableEdgeClickEvents (see #49)

v3.4.2

30 Jun 13:33

Choose a tag to compare

Fixes

  • #55 Fix the order in export in package.json (default entry should be the last)

v3.4.1

30 Jun 13:32

Choose a tag to compare

Fixes

  • #54 Compatibility with the TS moduleResolution bundler

v3.4.0

30 Jun 13:31

Choose a tag to compare

Feature

  • #48 Camera state is restored when Sigma.js is recreated

v3.3.0

27 Feb 10:05

Choose a tag to compare

Version 3.3.0

Feature

  • #43 Allow giving a different container for fullscreen control
  • #46 Adding resize, beforeRender & afterRender to useRegisterEvents

v3.2.0

26 Jan 10:48

Choose a tag to compare

Version 3.2.0

Features

  • #42 Be able to customize labels on controls. Example :
<ZoomControl labels={{ zoomIn: "PLUS", zoomOut: "MINUS", reset: "RESET" }} />

v3.1.0

11 Nov 13:38

Choose a tag to compare

Version 3.1.0

Fixes

Features

  • Upgrade to sigma@2.4.0
  • Upgrade to graphology-layout-forceatlas2@0.10.1
  • #30 : Forward the sigma ref on the SigmaContainer

v3.0.3

26 Sep 09:32

Choose a tag to compare

Fixes

  • Fix remove listeners on useRegisterEvents hook.

v3.0.2

25 Sep 18:08

Choose a tag to compare

Version 3.0.2

Features

  • Adding peer dependencies to react, and allow version 17 & 18
  • Upgrade general dependencies included sigma & graphology
  • Set per default the sigma settings allowInvalidContainer to true
  • Better type management for events ( thanks to #1142 )
  • Website with examples with code & preview
  • Reset SearchControl when user click on the stage

Breaking changes

  • Settings of forceAtlas2 has changed in the latest version of graphology
  • Event cameraUpdated has been renamed updated
  • Property initialSettings on component SigmaContainer has been renamed settings

Fixes

  • Fix touch events - #28 (thanks to @grothendeick)
  • Fix autoRunFor on layout worker when value is set to 0 (ie. no timer)
  • Fix CSS for borders issues

v3.0.1

25 Sep 17:47

Choose a tag to compare

Version 3.0.1 has missing files in npm binaries.