cytoscape
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "cytoscape", | ||
"version": "2.1.0", | ||
"main": "releases/2.1.0/cytoscape.js", | ||
"version": "2.1.1", | ||
"main": "releases/2.1.1/cytoscape.js", | ||
"ignore": [ | ||
] | ||
} |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -5,3 +5,3 @@ | ||
/** | ||
* This file is part of cytoscape.js 2.1.0. | ||
* This file is part of cytoscape.js 2.1.1. | ||
* | ||
@@ -8,0 +8,0 @@ * Cytoscape.js is free software: you can redistribute it and/or modify it |
@@ -6,3 +6,4 @@ Please note that although we offer downloads of previous versions of Cytoscape.js, you should use the latest version whenever possible. The old versions are provided for legacy reasons (i.e. you started your app with an old version of Cytoscape.js), but we strongly suggest you use the latest version. | ||
## 2.1.x | ||
* [2.1.0](http://cytoscape.github.com/cytoscape.js/download/cytoscape.js-2.1.0.zip) (latest) | ||
* [2.1.0](http://cytoscape.github.com/cytoscape.js/download/cytoscape.js-2.1.1.zip) (latest) | ||
* [2.1.0](http://cytoscape.github.com/cytoscape.js/download/cytoscape.js-2.1.0.zip) | ||
@@ -9,0 +10,0 @@ ## 2.0.x |
{ | ||
"name": "cytoscape", | ||
"description": "A JavaScript graph library for analysis and visualisation", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"license": "LGPL", | ||
@@ -50,3 +50,3 @@ "engines": { | ||
], | ||
"main": "releases/2.1.0/cytoscape.js", | ||
"main": "releases/2.1.1/cytoscape.js", | ||
"scripts": { | ||
@@ -53,0 +53,0 @@ }, |
@@ -67,3 +67,5 @@ ;(function($$){ "use strict"; | ||
style.applyBypass( this, props ); | ||
this.rtrigger("style"); // let the renderer know we've updated style | ||
var updatedCompounds = this.updateCompoundBounds(); | ||
this.add( updatedCompounds ).rtrigger("style"); // let the renderer know we've updated style | ||
@@ -83,3 +85,5 @@ } else if( $$.is.string(name) ){ | ||
style.applyBypass( this, name, value ); | ||
this.rtrigger("style"); // let the renderer know we've updated style | ||
var updatedCompounds = this.updateCompoundBounds(); | ||
this.add( updatedCompounds ).rtrigger("style"); // let the renderer know we've updated style | ||
} | ||
@@ -110,3 +114,4 @@ | ||
this.rtrigger('style'); | ||
var updatedCompounds = this.updateCompoundBounds(); | ||
this.add( updatedCompounds ).rtrigger("style"); | ||
}, | ||
@@ -113,0 +118,0 @@ |
@@ -8,3 +8,3 @@ ;(function($$, window){ "use strict"; | ||
}; | ||
var origDefaults = $$.util.copy( defaults ); | ||
@@ -22,3 +22,3 @@ | ||
}; | ||
$$.Core = function( opts ){ | ||
@@ -34,3 +34,3 @@ if( !(this instanceof $$.Core) ){ | ||
var reg = $$.getRegistrationForInstance(cy, container); | ||
if( reg && reg.cy ){ | ||
if( reg && reg.cy ){ | ||
reg.domElement.innerHTML = ''; | ||
@@ -40,3 +40,3 @@ reg.cy.notify({ type: 'destroy' }); // destroy the renderer | ||
$$.removeRegistrationForInstance(reg.cy, reg.domElement); | ||
} | ||
} | ||
@@ -49,10 +49,10 @@ reg = $$.registerInstance( cy, container ); | ||
options.renderer = $$.util.extend( { name: window && container ? "canvas" : "null" }, options.renderer ); | ||
// TODO determine whether we need a check like this even though we allow running headless now | ||
// | ||
// | ||
// if( !$$.is.domElement(options.container) ){ | ||
// $$.util.error("Cytoscape.js must be called on an element"); | ||
// return; | ||
// $$.util.error("Cytoscape.js must be called on an element"); | ||
// return; | ||
// } | ||
var _p = this._private = { | ||
@@ -151,3 +151,3 @@ ready: false, // whether ready has been triggered | ||
reg.readies = []; // clear b/c we've bound them all and don't want to keep it around in case a new core uses the same div etc | ||
cy.trigger("ready"); | ||
@@ -158,4 +158,4 @@ }, options.done); | ||
$$.corefn = $$.Core.prototype; // short alias | ||
$$.fn.core({ | ||
@@ -171,7 +171,7 @@ ready: function(){ | ||
registered: function(){ | ||
if( this._private && this._private.instanceId != null ){ | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
if( this._private && this._private.instanceId != null ){ | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
}, | ||
@@ -214,3 +214,3 @@ | ||
index = elements.length; | ||
elements.push( ele ) | ||
elements.push( ele ); | ||
id2index[ id ] = index; | ||
@@ -255,15 +255,15 @@ ele._private.index = index; | ||
}, | ||
json: function(params){ | ||
var json = {}; | ||
var cy = this; | ||
json.elements = {}; | ||
cy.elements().each(function(i, ele){ | ||
var group = ele.group(); | ||
if( !json.elements[group] ){ | ||
json.elements[group] = []; | ||
} | ||
json.elements[group].push( ele.json() ); | ||
@@ -286,8 +286,8 @@ }); | ||
json.hideEdgesOnViewport = cy._private.options.hideEdgesOnViewport; | ||
return json; | ||
} | ||
}); | ||
}); | ||
})( cytoscape, typeof window === 'undefined' ? null : window ); |
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
Sorry, the diff of this file is not supported yet
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 not supported yet
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
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
17924941
410
292721