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

cytoscape

Package Overview
Dependencies
Maintainers
3
Versions
254
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.16.0 to 3.16.1

32

.size-snapshot.json
{
"build/cytoscape.umd.js": {
"bundled": 933288,
"minified": 346908,
"gzipped": 108032
"bundled": 933450,
"minified": 346993,
"gzipped": 108083
},
"build/cytoscape.cjs.js": {
"bundled": 860281,
"minified": 366257,
"gzipped": 110421
"bundled": 860437,
"minified": 366342,
"gzipped": 110466
},
"build/cytoscape.esm.js": {
"bundled": 860108,
"minified": 366114,
"gzipped": 110383,
"bundled": 860264,
"minified": 366199,
"gzipped": 110428,
"treeshaked": {
"rollup": {
"code": 341556,
"code": 341641,
"import_statements": 51
},
"webpack": {
"code": 342944
"code": 343029
}

@@ -27,12 +27,12 @@ }

"build/cytoscape.esm.min.js": {
"bundled": 346713,
"minified": 346215,
"gzipped": 107857,
"bundled": 346798,
"minified": 346300,
"gzipped": 107901,
"treeshaked": {
"rollup": {
"code": 345709,
"code": 345794,
"import_statements": 0
},
"webpack": {
"code": 346997
"code": 347082
}

@@ -39,0 +39,0 @@ }

{
"name": "cytoscape",
"version": "3.16.0",
"version": "3.16.1",
"license": "MIT",

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

@@ -126,5 +126,7 @@ import * as is from '../is';

if( ele._private.styleDirty ){
// n.b. this flag should be set before apply() to avoid potential infinite recursion
ele._private.styleDirty = false;
cy.style().apply(ele);
ele.emitAndNotify('style');

@@ -131,0 +133,0 @@ }

@@ -21,12 +21,4 @@ import * as util from '../util';

if( _p.newStyle ){ // clear style caches
_p.contextStyles = {};
_p.propDiffs = {};
self.cleanElements( eles, true );
}
for( let ie = 0; ie < eles.length; ie++ ){
let ele = eles[ ie ];
let cxtMeta = self.getContextMeta( ele );

@@ -41,4 +33,6 @@

if( !_p.newStyle ){
if( ele._private.appliedInitStyle ){
self.updateTransitions( ele, app.diffProps );
} else {
ele._private.appliedInitStyle = true;
}

@@ -54,4 +48,2 @@

_p.newStyle = false;
return updatedEles;

@@ -129,6 +121,2 @@ };

if( self._private.newStyle ){
prevKey = ''; // since we need to apply all style if a fresh stylesheet
}
// get the cxt key

@@ -393,2 +381,3 @@ for( let i = 0; i < self.length; i++ ){

_p.styleCxtKey = '';
_p.styleKeys = {};

@@ -395,0 +384,0 @@ _p.styleKey = null;

@@ -43,2 +43,6 @@ import * as is from '../is';

styfn.clear = function(){
let _p = this._private;
let cy = _p.cy;
let eles = cy.elements();
for( let i = 0; i < this.length; i++ ){

@@ -49,6 +53,14 @@ this[ i ] = undefined;

let _p = this._private;
_p.contextStyles = {};
_p.propDiffs = {};
_p.newStyle = true;
this.cleanElements( eles, true );
eles.forEach(ele => {
let ele_p = ele[0]._private;
ele_p.styleDirty = true;
ele_p.appliedInitStyle = false;
});
return this; // chaining

@@ -55,0 +67,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

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