cytoscape
Advanced tools
Comparing version 3.11.0 to 3.12.0
{ | ||
"build/cytoscape.umd.js": { | ||
"bundled": 915600, | ||
"minified": 339932, | ||
"gzipped": 105624 | ||
"bundled": 919790, | ||
"minified": 341330, | ||
"gzipped": 106074 | ||
}, | ||
"build/cytoscape.cjs.js": { | ||
"bundled": 843517, | ||
"minified": 358223, | ||
"gzipped": 107831 | ||
"bundled": 847439, | ||
"minified": 359713, | ||
"gzipped": 108348 | ||
}, | ||
"build/cytoscape.esm.js": { | ||
"bundled": 843344, | ||
"minified": 358080, | ||
"gzipped": 107796, | ||
"bundled": 847266, | ||
"minified": 359570, | ||
"gzipped": 108316, | ||
"treeshaked": { | ||
"rollup": { | ||
"code": 334584, | ||
"code": 335982, | ||
"import_statements": 51 | ||
}, | ||
"webpack": { | ||
"code": 336452 | ||
"code": 337850 | ||
} | ||
@@ -27,12 +27,12 @@ } | ||
"build/cytoscape.esm.min.js": { | ||
"bundled": 339562, | ||
"minified": 339048, | ||
"gzipped": 105361, | ||
"bundled": 340971, | ||
"minified": 340457, | ||
"gzipped": 105799, | ||
"treeshaked": { | ||
"rollup": { | ||
"code": 338524, | ||
"code": 339933, | ||
"import_statements": 0 | ||
}, | ||
"webpack": { | ||
"code": 339810 | ||
"code": 341219 | ||
} | ||
@@ -39,0 +39,0 @@ } |
{ | ||
"name": "cytoscape", | ||
"version": "3.11.0", | ||
"version": "3.12.0", | ||
"license": "MIT", | ||
@@ -68,2 +68,7 @@ "description": "Graph theory (a.k.a. network) library for analysis and visualisation", | ||
"url": "https://github.com/josejulio" | ||
}, | ||
{ | ||
"name": "Rhys Balevicius", | ||
"email": "rhysbalevicius@gmail.com", | ||
"url": "https://github.com/r-ba" | ||
} | ||
@@ -149,3 +154,3 @@ ], | ||
"marked": "^0.7.0", | ||
"mocha": "^6.1.4", | ||
"mocha": "^6.2.2", | ||
"npm-run-all": "^4.1.5", | ||
@@ -152,0 +157,0 @@ "rimraf": "^3.0.0", |
@@ -7,9 +7,9 @@ <img style="width: 200px; height: 200px;" src="https://raw.githubusercontent.com/cytoscape/cytoscape.js/unstable/documentation/img/cytoscape-logo.png" width="200" height="200"></img> | ||
[![Questions at StackOverflow](https://img.shields.io/badge/Questions-StackOverflow-yellow.svg)](https://stackoverflow.com/questions/tagged/cytoscape.js) | ||
[![Ask a question at StackOverflow](https://img.shields.io/badge/Ask%20a%20question-StackOverflow-yellow.svg)](http://stackoverflow.com/questions/ask?tags=cytoscape.js,javascript) | ||
[![Ask a question at StackOverflow](https://img.shields.io/badge/Ask%20a%20question-StackOverflow-yellow.svg)](https://stackoverflow.com/questions/ask?tags=cytoscape.js,javascript) | ||
[![GitHub license](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/cytoscape/cytoscape.js/master/LICENSE) | ||
[![DOI](https://zenodo.org/badge/2255947.svg)](https://zenodo.org/badge/latestdoi/2255947) | ||
[![Cite](https://img.shields.io/badge/Cite-Oxford%20Bioinformatics%20Article-blue.svg)](http://js.cytoscape.org/#introduction/citation) | ||
[![Cite](https://img.shields.io/badge/Cite-Oxford%20Bioinformatics%20Article-blue.svg)](https://js.cytoscape.org/#introduction/citation) | ||
[![npm](https://img.shields.io/npm/v/cytoscape.svg)](https://www.npmjs.com/package/cytoscape) | ||
[![Download](https://img.shields.io/npm/v/cytoscape.svg?label=Download)](https://github.com/cytoscape/cytoscape.js/tree/master/dist) | ||
[![Extensions](https://img.shields.io/badge/Extensions-52-blue.svg)](http://js.cytoscape.org/#extensions) | ||
[![Extensions](https://img.shields.io/badge/Extensions-52-blue.svg)](https://js.cytoscape.org/#extensions) | ||
[![npm installs](https://img.shields.io/npm/dm/cytoscape.svg?label=npm%20installs)](https://www.npmjs.com/package/cytoscape) | ||
@@ -57,6 +57,8 @@ [![master branch tests](https://img.shields.io/travis/cytoscape/cytoscape.js/master.svg?label=master%20branch)](https://travis-ci.org/cytoscape/cytoscape.js) | ||
Please refer to [CONTRIBUTING.md](CONTRIBUTING.md). | ||
Please refer to [CONTRIBUTING.md](.github/CONTRIBUTING.md). | ||
Feature releases are made at the start of each month, while patch releases are made at the start of each week. This allows for rapid releases of first- and third-party contributions. | ||
## Citation | ||
@@ -79,3 +81,3 @@ | ||
Install `node`, `npm` and `gulp` (optional). Of course, `npm install` before using `gulp` or `npm run`. | ||
Install `node` and `npm`. Run `npm install` before using `npm run`. | ||
@@ -111,3 +113,3 @@ | ||
If the `TRAVIS` or `TEST_BUILD` environment variables are defined, then `mocha` or `gulp test` will test `build/cytoscape.umd.js`. Otherwise, the unbundled, unbabelified, raw source is tested. This keeps local tests very quick to run on modern versions of node while ensuring we can test old versions of node as well. The library can be built on `node>=6`, but it can be tested on `node>=0.10`. | ||
If the `TRAVIS` or `TEST_BUILD` environment variables are defined, then `mocha` or `npm test` will test `build/cytoscape.umd.js`. Otherwise, the unbundled, unbabelified, raw source is tested. This keeps local tests very quick to run on modern versions of node while ensuring we can test old versions of node as well. The library can be built on `node>=6`, but it can be tested on `node>=0.10`. | ||
@@ -114,0 +116,0 @@ * `test` : run the Mocha unit tests |
@@ -17,2 +17,3 @@ import * as util from '../../util'; | ||
import affinityPropagation from './affinity-propagation'; | ||
import hierholzer from './hierholzer'; | ||
@@ -36,3 +37,4 @@ var elesfn = {}; | ||
hierarchicalClustering, | ||
affinityPropagation | ||
affinityPropagation, | ||
hierholzer | ||
].forEach(function(props) { | ||
@@ -39,0 +41,0 @@ util.extend(elesfn, props); |
@@ -85,3 +85,2 @@ import * as util from '../../../util'; | ||
r.hideEdgesOnViewport = options.hideEdgesOnViewport; | ||
r.hideLabelsOnViewport = options.hideLabelsOnViewport; | ||
r.textureOnViewport = options.textureOnViewport; | ||
@@ -88,0 +87,0 @@ r.wheelSensitivity = options.wheelSensitivity; |
@@ -262,3 +262,3 @@ import * as util from '../../../util'; | ||
let styleShape = ele.pstyle( 'text-background-shape' ).strValue; | ||
if( styleShape == 'roundrectangle' ){ | ||
if( styleShape.indexOf('round') === 0 ){ | ||
roundRect( context, bgX, bgY, bgW, bgH, 2 ); | ||
@@ -265,0 +265,0 @@ } else { |
@@ -8,2 +8,6 @@ function NullRenderer( options ){ | ||
let throwImgErr = function(){ | ||
throw new Error('A headless instance can not render images'); | ||
}; | ||
NullRenderer.prototype = { | ||
@@ -13,5 +17,7 @@ recalculateRenderedStyle: noop, | ||
init: noop, | ||
isHeadless: function(){ return true; } | ||
isHeadless: function(){ return true; }, | ||
png: throwImgErr, | ||
jpg: throwImgErr | ||
}; | ||
export default NullRenderer; |
@@ -6,3 +6,3 @@ /* | ||
// For Travis or manual build tests, use the CJS build | ||
// NB : Must do `gulp build-cjs` before `mocha` or `gulp-test` | ||
// NB : Must do `npm run build:cjs` before `npm test` | ||
if( process.env.TRAVIS || process.env.TEST_BUILD ){ | ||
@@ -9,0 +9,0 @@ module.exports = require('../build/cytoscape.cjs.js'); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4181677
169
105599
147
1