Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cytoscape

Package Overview
Dependencies
Maintainers
3
Versions
255
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape - npm Package Compare versions

Comparing version 3.8.2 to 3.8.3

22

.size-snapshot.json
{
"build/cytoscape.umd.js": {
"bundled": 902391,
"minified": 334968,
"gzipped": 104063
"bundled": 902980,
"minified": 335304,
"gzipped": 104132
},
"build/cytoscape.cjs.js": {
"bundled": 830960,
"minified": 352744,
"gzipped": 106264
"bundled": 831513,
"minified": 353080,
"gzipped": 106328
},
"build/cytoscape.esm.js": {
"bundled": 830787,
"minified": 352601,
"gzipped": 106222,
"bundled": 831340,
"minified": 352937,
"gzipped": 106291,
"treeshaked": {
"rollup": {
"code": 329621,
"code": 329957,
"import_statements": 51
},
"webpack": {
"code": 331488
"code": 331824
}

@@ -24,0 +24,0 @@ }

{
"name": "cytoscape",
"version": "3.8.2",
"version": "3.8.3",
"license": "MIT",

@@ -83,4 +83,3 @@ "description": "Graph theory (a.k.a. network) library for analysis and visualisation",

"dist": "cross-env NODE_ENV=production run-s build dist:*",
"release": "run-s copyright dist docs",
"postpublish": "run-s docs:push",
"release": "run-s copyright dist",
"watch": "run-s watch:fast",

@@ -87,0 +86,0 @@ "watch:sync": "livereload \"build, debug\"",

@@ -789,2 +789,4 @@ import * as is from '../../is';

elesfn.boundingBox = function( options ){
let bounds;
// the main usecase is ele.boundingBox() for a single element with no/def options

@@ -800,35 +802,35 @@ // specified s.t. the cache is used, so check for this case to make it faster by

return cachedBoundingBoxImpl( this[0], options );
}
bounds = cachedBoundingBoxImpl( this[0], options );
} else {
bounds = makeBoundingBox();
let bounds = makeBoundingBox();
options = options || defBbOpts;
options = options || defBbOpts;
let opts = filledBbOpts( options );
let opts = filledBbOpts( options );
let eles = this;
let cy = eles.cy();
let styleEnabled = cy.styleEnabled();
let eles = this;
let cy = eles.cy();
let styleEnabled = cy.styleEnabled();
if( styleEnabled ){
for( let i = 0; i < eles.length; i++ ){
let ele = eles[i];
let _p = ele._private;
let currPosKey = getBoundingBoxPosKey( ele );
let isPosKeySame = _p.bbCachePosKey === currPosKey;
let useCache = opts.useCache && isPosKeySame;
if( styleEnabled ){
ele.recalculateRenderedStyle( useCache );
}
}
this.updateCompoundBounds();
for( let i = 0; i < eles.length; i++ ){
let ele = eles[i];
let _p = ele._private;
let currPosKey = getBoundingBoxPosKey( ele );
let isPosKeySame = _p.bbCachePosKey === currPosKey;
let useCache = opts.useCache && isPosKeySame;
ele.recalculateRenderedStyle( useCache );
updateBoundsFromBox( bounds, cachedBoundingBoxImpl( ele, opts ) );
}
}
this.updateCompoundBounds();
for( let i = 0; i < eles.length; i++ ){
let ele = eles[i];
updateBoundsFromBox( bounds, cachedBoundingBoxImpl( ele, opts ) );
}
bounds.x1 = noninf( bounds.x1 );

@@ -851,2 +853,12 @@ bounds.y1 = noninf( bounds.y1 );

_p.bbCachePosKey = null;
_p.bodyBounds = null;
_p.overlayBounds = null;
_p.labelBounds.all = null;
_p.labelBounds.source = null;
_p.labelBounds.target = null;
_p.labelBounds.main = null;
_p.arrowBounds.source = null;
_p.arrowBounds.target = null;
_p.arrowBounds['mid-source'] = null;
_p.arrowBounds['mid-target'] = null;
}

@@ -853,0 +865,0 @@

@@ -80,2 +80,8 @@ import * as util from '../util';

main: null
},
arrowBounds: { // bounds cache of edge arrows
source: null,
target: null,
'mid-source': null,
'mid-target': null
}

@@ -82,0 +88,0 @@ };

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

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