react-sigmajs
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -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 |
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
2
607202
46
16311