cytoscape
Advanced tools
Comparing version 3.2.11 to 3.2.12
{ | ||
"name": "cytoscape", | ||
"version": "3.2.11", | ||
"version": "3.2.12", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Graph theory (a.k.a. network) library for analysis and visualisation", |
@@ -29,2 +29,14 @@ let is = require('../../is'); | ||
function getValue( prop, spec ){ | ||
if( prop.pfValue != null || prop.value != null ){ | ||
if( prop.pfValue != null && (spec == null || spec.type.units !== '%') ){ | ||
return prop.pfValue; | ||
} else { | ||
return prop.value; | ||
} | ||
} else { | ||
return prop; | ||
} | ||
} | ||
function ease( startProp, endProp, percent, easingFn, propSpec ){ | ||
@@ -39,16 +51,5 @@ let type = propSpec != null ? propSpec.type : null; | ||
let start, end; | ||
let start = getValue( startProp, propSpec ); | ||
let end = getValue( endProp, propSpec ); | ||
if( startProp.pfValue != null || startProp.value != null ){ | ||
start = startProp.pfValue != null ? startProp.pfValue : startProp.value; | ||
} else { | ||
start = startProp; | ||
} | ||
if( endProp.pfValue != null || endProp.value != null ){ | ||
end = endProp.pfValue != null ? endProp.pfValue : endProp.value; | ||
} else { | ||
end = endProp; | ||
} | ||
if( is.number( start ) && is.number( end ) ){ | ||
@@ -55,0 +56,0 @@ return getEasedValue( type, start, end, percent, easingFn ); |
@@ -8,9 +8,9 @@ let CRp = {}; | ||
if( !edge.visible() ){ return; } | ||
// if bezier ctrl pts can not be calculated, then die | ||
if( rs.badLine || isNaN(rs.allpts[0]) ){ // isNaN in case edge is impossible and browser bugs (e.g. safari) | ||
if( rs.badLine || rs.allpts == null || isNaN(rs.allpts[0]) ){ // isNaN in case edge is impossible and browser bugs (e.g. safari) | ||
return; | ||
} | ||
if( !edge.visible() ){ return; } | ||
let bb; | ||
@@ -17,0 +17,0 @@ if( shiftToOriginWithBb ){ |
@@ -1,1 +0,1 @@ | ||
module.exports = "3.2.11"; | ||
module.exports = "3.2.12"; |
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 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
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
68647
2627799