4.0.2 • Published 1 month ago

@react-sigma/core v4.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

React Sigma - core module

A set of react components to display graphs with Sigma.js.

Visit our website for docs and examples : https://sim51.github.io/react-sigma/

Documentation

How to use it

  1. Install the library
npm install @react-sigma/core
  1. Import the React Sigma style file in your application. Example : import "@react-sigma/core/lib/react-sigma.min.css"

  2. Create the following components into your app and check it displays correctly:

import Graph from "graphology";
import { SigmaContainer, useLoadGraph } from "@react-sigma/core";
import "@react-sigma/core/lib/react-sigma.min.css";

export const LoadGraph = () => {
  const graph = new Graph();
  graph.addNode("first", { size: 15, label: "My first node", color: "#FA4F40" });
  useLoadGraph(graph);
};

export const DisplayGraph = () => {
  return (
    <SigmaContainer style={{ height: "500px", width: "500px" }}>
      <LoadGraph />
    </SigmaContainer>
  );
};
4.0.2

1 month ago

4.0.1

1 month ago

4.0.0

1 month ago

3.4.2

10 months ago

3.4.0

1 year ago

3.4.1

11 months ago

3.3.0

1 year ago

3.2.0

1 year ago

3.1.0

1 year ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago