0.1.2 • Published 2 years ago

@bucky24/dep-graph v0.1.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@bucky24/dep-graph

This is a quickly thrown together implementation of a renderer for a directed graph. There are probably better projects out there that you should use instead of this.

Usage

The module exports a single @bucky24/react-canvas component, Graph, which takes the following parameters:

ParameterDescription
xThe x to start at
yThe y to start at
widthThe width, in pixels, that the graph may take up
heightThe height, in pixels, that the graph may take up
nodesA list of GraphNodes

GraphNode

A GraphNode is a node on the graph. It must be an object with the following properties:

PropertyDescription
idA unique ID of the node
textThe label for the node
connectionsA list of IDs that this node has connections to
colorThe color of the node
0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago