New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-sigmajs

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-sigmajs - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

DOCS.md

4

package.json

@@ -5,5 +5,6 @@ {

"author": "Maxim Vorobjov <maxim.vorobjov@gmail.com>",
"version": "0.5.0",
"version": "0.5.1",
"license": "MIT",
"bugs": "https://github.com/dunnock/react-sigma/issues",
"homepage": "https://github.com/dunnock/react-sigma",
"repository": {

@@ -19,2 +20,3 @@ "type": "git",

"README.md",
"DOCS.md",
"LICENSE"

@@ -21,0 +23,0 @@ ],

@@ -0,1 +1,3 @@

!!! NOTICE !!! lib was relocated to [react-sigma](https://www.npmjs.com/package/react-sigma).
It makes easy to publish networks on Web pages and allows developers to integrate network exploration in rich Web applications. Use JSX for graph configuration, including asynchronous graph loading. Library is lightweight and modular, so you can bundle only what you use. Easy to extend with additional components.

@@ -13,4 +15,2 @@

![sample graph](https://github.com/dunnock/react-sigma/blob/master/public/sm_graph.png)
# Usage

@@ -22,15 +22,15 @@

`npm install --save react-sigmajs`
`npm install --save react-sigma`
or
`yarn add react-sigmajs`
`yarn add react-sigma`
or
`bower install https://unpkg.com/react-sigmajs/dist/react-sigma.min.js`
`bower install https://unpkg.com/react-sigma@1.2/dist/react-sigma.min.js`
If you don't want to use webpack or browserify, you could always reference the single file distribution:
`<script src="https://unpkg.com/react-sigmajs@0.4.15/dist/react-sigma.min.js"/>`
`<script src="https://unpkg.com/react-sigma@1.2/dist/react-sigma.min.js"/>`

@@ -40,3 +40,3 @@ ## Simple use case with embedded graph

```
import {Sigma, RandomizeNodePositions, RelativeSize} from 'react-sigmajs';
import {Sigma, RandomizeNodePositions, RelativeSize} from 'react-sigma';
...

@@ -53,3 +53,3 @@ <Sigma graph={{nodes:[{id:"n1", label:"Alice"}, {id:"n2", label:"Rabbit"}], edges:[{id:"e1",source:"n1",target:"n2",label:"SEES"}]}} settings={{drawEdges:true}}>

```
import {Sigma, LoadJSON} from 'react-sigmajs'
import {Sigma, LoadJSON} from 'react-sigma'
...

@@ -80,4 +80,4 @@ <Sigma style={{width:"200px", height:"200px"}}>

```
import Sigma from 'react-sigmajs/lib/Sigma'
import LoadJSON from 'react-sigmajs/lib/LoadJSON'
import Sigma from 'react-sigma/lib/Sigma'
import LoadJSON from 'react-sigma/lib/LoadJSON'
```

@@ -109,3 +109,3 @@

```
import { Sigma, SigmaEnableWebGL } from 'react-sigmajs'
import { Sigma, SigmaEnableWebGL } from 'react-sigma'
...

@@ -112,0 +112,0 @@ <Sigma /> // will use webgl renderer if supported by browser

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc