5.0.4 • Published 6 months ago
@react-sigma/core v5.0.4
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
- Install the library
npm install @react-sigma/coreImport the React Sigma style file in your application. Example :
import "@react-sigma/core/lib/react-sigma.min.css"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>
);
};5.0.4
6 months ago
5.0.2
11 months ago
5.0.1
11 months ago
5.0.0
11 months ago
4.0.3
1 year ago
4.0.2
2 years ago
4.0.1
2 years ago
4.0.0
2 years ago
3.4.2
2 years ago
3.4.0
3 years ago
3.4.1
2 years ago
3.3.0
3 years ago
3.2.0
3 years ago
3.1.0
3 years ago
3.0.3
3 years ago
3.0.2
3 years ago
3.0.1
3 years ago
3.0.0
3 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago