Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@react-sigma/core
Advanced tools
A set of react components to display graphs with Sigma.js.
Visit our website for docs and examples : https://sim51.github.io/react-sigma/
npm install @react-sigma/core
Import 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>
);
};
Version 5.0.0
style.css
, so you must change import "@react-sigma/core/lib/style.css";
by import "@react-sigma/core/lib/react-sigma.min.css";
. Now the rollup config is shared, and for each module that export a css file, it will be named style.css
.SearchControl
in core
has been removed. A new module called graph-search
replace it.3.0.0
)minimap
modulegraph-search
moduleFAQs
React Sigma
The npm package @react-sigma/core receives a total of 4,360 weekly downloads. As such, @react-sigma/core popularity was classified as popular.
We found that @react-sigma/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.