cytoscape
Advanced tools
Comparing version 3.12.0 to 3.12.1
{ | ||
"build/cytoscape.umd.js": { | ||
"bundled": 919790, | ||
"minified": 341330, | ||
"gzipped": 106074 | ||
"bundled": 920157, | ||
"minified": 341511, | ||
"gzipped": 106114 | ||
}, | ||
"build/cytoscape.cjs.js": { | ||
"bundled": 847439, | ||
"minified": 359713, | ||
"gzipped": 108348 | ||
"bundled": 847790, | ||
"minified": 359894, | ||
"gzipped": 108385 | ||
}, | ||
"build/cytoscape.esm.js": { | ||
"bundled": 847266, | ||
"minified": 359570, | ||
"gzipped": 108316, | ||
"bundled": 847617, | ||
"minified": 359751, | ||
"gzipped": 108351, | ||
"treeshaked": { | ||
"rollup": { | ||
"code": 335982, | ||
"code": 336163, | ||
"import_statements": 51 | ||
}, | ||
"webpack": { | ||
"code": 337850 | ||
"code": 338031 | ||
} | ||
@@ -27,12 +27,12 @@ } | ||
"build/cytoscape.esm.min.js": { | ||
"bundled": 340971, | ||
"minified": 340457, | ||
"gzipped": 105799, | ||
"bundled": 341152, | ||
"minified": 340638, | ||
"gzipped": 105845, | ||
"treeshaked": { | ||
"rollup": { | ||
"code": 339933, | ||
"code": 340114, | ||
"import_statements": 0 | ||
}, | ||
"webpack": { | ||
"code": 341219 | ||
"code": 341400 | ||
} | ||
@@ -39,0 +39,0 @@ } |
{ | ||
"name": "cytoscape", | ||
"version": "3.12.0", | ||
"version": "3.12.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Graph theory (a.k.a. network) library for analysis and visualisation", |
@@ -748,3 +748,4 @@ import * as is from '../../is'; | ||
let useCache = opts.useCache && isPosKeySame; | ||
let needRecalc = !useCache || _p.bbCache == null; | ||
let isDirty = ele => ele._private.bbCache == null; | ||
let needRecalc = !useCache || isDirty(ele) || (isEdge && isDirty(ele.source()) || isDirty(ele.target())); | ||
@@ -751,0 +752,0 @@ if( needRecalc ){ |
@@ -105,6 +105,12 @@ import * as math from '../../../math'; | ||
if( !extent || math.boundingBoxesIntersect( bb, extent ) ){ | ||
let isEdge = ele.isEdge(); | ||
let badLine = ele.element()._private.rscratch.badLine; | ||
r.drawCachedElementPortion( context, ele, eleTxrCache, pxRatio, lvl, reason, getZeroRotation, getOpacity ); | ||
r.drawCachedElementPortion( context, ele, lblTxrCache, pxRatio, lvl, reason, getLabelRotation, getTextOpacity ); | ||
if( !isEdge || !badLine ){ | ||
r.drawCachedElementPortion( context, ele, lblTxrCache, pxRatio, lvl, reason, getLabelRotation, getTextOpacity ); | ||
} | ||
if( ele.isEdge() ){ | ||
if( isEdge && !badLine ){ | ||
r.drawCachedElementPortion( context, ele, slbTxrCache, pxRatio, lvl, reason, getSourceLabelRotation, getTextOpacity ); | ||
@@ -111,0 +117,0 @@ r.drawCachedElementPortion( context, ele, tlbTxrCache, pxRatio, lvl, reason, getTargetLabelRotation, getTextOpacity ); |
@@ -44,2 +44,3 @@ import * as util from '../../../util'; | ||
} else { | ||
let badLine = ele.element()._private.rscratch.badLine; | ||
let label = ele.pstyle( 'label' ); | ||
@@ -50,5 +51,7 @@ let srcLabel = ele.pstyle( 'source-label' ); | ||
if( | ||
( !label || !label.value ) | ||
&& ( !srcLabel || !srcLabel.value ) | ||
&& ( !tgtLabel || !tgtLabel.value ) | ||
badLine || ( | ||
( !label || !label.value ) | ||
&& ( !srcLabel || !srcLabel.value ) | ||
&& ( !tgtLabel || !tgtLabel.value ) | ||
) | ||
){ | ||
@@ -55,0 +58,0 @@ return; |
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
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
4183450
105632