cytoscape
Advanced tools
Comparing version 3.9.1 to 3.9.2
{ | ||
"build/cytoscape.umd.js": { | ||
"bundled": 903577, | ||
"minified": 335714, | ||
"gzipped": 104280 | ||
"bundled": 903827, | ||
"minified": 335884, | ||
"gzipped": 104318 | ||
}, | ||
"build/cytoscape.cjs.js": { | ||
"bundled": 832082, | ||
"minified": 353509, | ||
"gzipped": 106508 | ||
"bundled": 832316, | ||
"minified": 353691, | ||
"gzipped": 106542 | ||
}, | ||
"build/cytoscape.esm.js": { | ||
"bundled": 831909, | ||
"minified": 353366, | ||
"gzipped": 106473, | ||
"bundled": 832143, | ||
"minified": 353548, | ||
"gzipped": 106508, | ||
"treeshaked": { | ||
"rollup": { | ||
"code": 330367, | ||
"code": 330537, | ||
"import_statements": 51 | ||
}, | ||
"webpack": { | ||
"code": 332234 | ||
"code": 332404 | ||
} | ||
@@ -24,0 +24,0 @@ } |
{ | ||
"name": "cytoscape", | ||
"version": "3.9.1", | ||
"version": "3.9.2", | ||
"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\"", |
@@ -107,2 +107,14 @@ import * as util from '../../util'; | ||
elesfn.paddedHeight = function(){ | ||
let ele = this[0]; | ||
return ele.height() + (2 * ele.padding()); | ||
}; | ||
elesfn.paddedWidth = function(){ | ||
let ele = this[0]; | ||
return ele.width() + (2 * ele.padding()); | ||
}; | ||
export default elesfn; |
@@ -68,3 +68,3 @@ import * as util from '../../../util'; | ||
let pos = usePaths ? {x: 0, y: 0 } : ele.position(), | ||
width = ele.width(), height = ele.height(); | ||
width = ele.paddedWidth(), height = ele.paddedHeight(); | ||
gradientStyle = context.createRadialGradient(pos.x, pos.y, 0, pos.x, pos.y, Math.max(width, height)); | ||
@@ -78,6 +78,7 @@ } | ||
} else { | ||
let pos = usePaths ? {x: 0, y: 0 } : ele.position(), | ||
width = ele.width(), height = ele.height(), | ||
let pos = usePaths ? { x: 0, y: 0 } : ele.position(), | ||
width = ele.paddedWidth(), height = ele.paddedHeight(), | ||
halfWidth = width / 2, halfHeight = height / 2; | ||
let direction = ele.pstyle('background-gradient-direction').value; | ||
switch (direction) { | ||
@@ -91,6 +92,6 @@ case 'to-bottom': | ||
case 'to-left': | ||
gradientStyle = context.createLinearGradient(pos.x - halfWidth, pos.y, pos.x + halfWidth, pos.y); | ||
gradientStyle = context.createLinearGradient(pos.x + halfWidth, pos.y, pos.x - halfWidth, pos.y); | ||
break; | ||
case 'to-right': | ||
gradientStyle = context.createLinearGradient(pos.x + halfWidth, pos.y, pos.x - halfWidth, pos.y); | ||
gradientStyle = context.createLinearGradient(pos.x - halfWidth, pos.y, pos.x + halfWidth, pos.y); | ||
break; | ||
@@ -97,0 +98,0 @@ case 'to-bottom-right': |
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
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
3770089
165
102529