New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@sigma/node-square

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sigma/node-square

A node program that renders nodes as squares for sigma.js

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
1.1K
-9.21%
Maintainers
1
Weekly downloads
 
Created
Source

Sigma.js - Node square renderer

This package contains a node square renderer for sigma.js, as well as a proper

How to use

Within your application that uses sigma.js, you can use @sigma/node-square as following:

import { NodeSquareProgram } from "@sigma/node-square";

const graph = new Graph();
graph.addNode("some-node", {
  x: 0,
  y: 0,
  size: 10,
  type: "square",
  label: "Some node",
  color: "blue",
});

const sigma = new Sigma(graph, container, {
  nodeProgramClasses: {
    square: NodeSquareProgram,
  },
});

Please check the related Storybook for more advanced examples.

Keywords

graph

FAQs

Package last updated on 12 Dec 2024

Did you know?

Socket

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.

Install

Related posts