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

solidjs-dep-graph

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solidjs-dep-graph

dependency graphs in solidjs

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

!!! Work In Progress !!!

solidjs-dep-graph

SolidJS component for rendering a dependency graph layout using Dagre layout

Examples Demo

Getting started

Install solidjs-dep-graph using npm, pnpm, or yarn.

# npm
npm install solidjs-dep-graph --save
# pnpm
pnpm add solidjs-dep-graph
# yarn
yarn add solidjs-dep-graph

Basic usage

Graph component needs to be provided a set of Nodes and Edges at a minimum.

import { Node, Edge, Graph } from "solidjs-dep-graph";
function App() {
  const nodes: Node[] = [
    Node("1", "Node 1"),
    Node("2", "Node 2"),
    Node("3", "Node 3"),
    Node("4", "Node 4"),
    Node("5", "Node 5"),
    Node("6", "Node 6"),
  ];
  const edges: Edge[] = [
    Edge("1", "2",),
    Edge("2", "3",),
    Edge("2", "4"),
    Edge("1", "5"),
    Edge("1", "6",),
  ];

  return <Graph nodes={nodes} edges={edges}/>
}

The above would produce the following graph.

Basic Example Image

Styling Override

TBD

Custom Shapes / Markers

solidjs-dep-graph allows user to provide custom shapes and markers.

Custom Example Image

See Customization documentation for details.

Documentation

  • API Documentation

TBD

  • Where and How to run the example code

CREDIT

Many of the ideas here (especially the intersect code) came from dagre-reactjs.

Keywords

dagre

FAQs

Package last updated on 26 Nov 2023

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