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

react-cytoscape

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cytoscape

A React component to use simply the cytoscape js library.

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

React component for Cytoscape

A React component to use simply the cytoscape js library.

http://js.cytoscape.org

Installation

npm install react-cytoscape

Usage

import ReactCytoscape from 'react-cytoscape';

<ReactCytoscape containerID="cy" 
	elements={this.getElements()} 
	cyRef={(cy) => { this.cy = cy; console.log(this.cy) }} 
	cytoscapeOptions={{wheelSensitivity: 0.1}}
	layout={{name: 'dagre'}} />

ReactCytoscape props

Props are same as Cytoscape builder function.

  • containerID : HTML ID to div cytoscape container

  • elements : Object with nodes and egdes attributes

  • style : Array of Style object

  • layout : Object with name of layout attribute.
    ReactCytoscape integrates cola layout and dagre layout.

  • styleContainer : an object of css style

  • cyRef : a callback function to obtain a reference to cytoscape object

  • cytoscapeOptions : Object with others cytoscape options builder

Keywords

cytoscape

FAQs

Package last updated on 15 Nov 2017

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