Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
cytoscape-svg
Advanced tools
Export the current graph view as an SVG image. (demo)
Download the library:
npm install cytoscape-svg
,bower install cytoscape-svg
, orImport the library as appropriate for your project:
ES import:
import cytoscape from 'cytoscape';
import svg from 'cytoscape-svg';
cytoscape.use( svg );
CommonJS require:
let cytoscape = require('cytoscape');
let svg = require('cytoscape-svg');
cytoscape.use( svg ); // register extension
AMD:
require(['cytoscape', 'cytoscape-svg'], function( cytoscape, svg ){
svg( cytoscape ); // register extension
});
Plain HTML/JS has the extension registered for you automatically, because no require()
is needed.
cy.svg(options)
npm run test
: Run Mocha tests in ./test
npm run build
: Build ./src/**
into cytoscape-svg.js
npm run watch
: Automatically build on changes with live reloading (N.b. you must already have an HTTP server running)npm run dev
: Automatically build on changes with live reloading with webpack dev servernpm run lint
: Run eslint on the sourceN.b. all builds use babel, so modern ES features can be used in the src
.
This project is set up to automatically be published to npm and bower. To publish:
npm run build:release
git commit -am "Build for release"
npm version major|minor|patch
git push && git push --tags
npm publish .
bower register cytoscape-svg https://github.com/kinimesi/cytoscape-svg.git
FAQs
Export the current graph view as a SVG.
The npm package cytoscape-svg receives a total of 876 weekly downloads. As such, cytoscape-svg popularity was classified as not popular.
We found that cytoscape-svg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.