1.0.4 • Published 3 years ago

simple-react-cytoscape v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

simple-react-cytoscape

npm.io npm.io

Lightweight zero-dependency React Component wrapper for Cytoscape to simplify integration

npm.io


Installation

npm install simple-react-cytoscape cytoscape

Usage

1) Configure CSS for class simple-react-cytoscape

.simple-react-cytoscape {
  width: 600px;
  height: 600px;
}

2) Import library

import { SimpleReactCytoscape } from "simple-react-cytoscape";

3) Use the component with options (to pass data to the graph) and a callback (to get access to the cytoscape container for controls)

      <SimpleReactCytoscape
              options={options} 
              cyCallback={cyCallback} />

Examples

See CodeSandbox example

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago