Skip to content

Commit

Permalink
Build v3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkfranz committed Feb 11, 2019
1 parent f07b4f4 commit f68dad7
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 38 deletions.
22 changes: 11 additions & 11 deletions .size-snapshot.json
@@ -1,25 +1,25 @@
{
"build/cytoscape.umd.js": {
"bundled": 891295,
"minified": 329675,
"gzipped": 102516
"bundled": 891711,
"minified": 329814,
"gzipped": 102557
},
"build/cytoscape.cjs.js": {
"bundled": 821049,
"minified": 346673,
"gzipped": 104509
"bundled": 821453,
"minified": 346814,
"gzipped": 104550
},
"build/cytoscape.esm.js": {
"bundled": 820876,
"minified": 346530,
"gzipped": 104472,
"bundled": 821280,
"minified": 346671,
"gzipped": 104515,
"treeshaked": {
"rollup": {
"code": 324413,
"code": 324552,
"import_statements": 51
},
"webpack": {
"code": 326239
"code": 326378
}
}
}
Expand Down
23 changes: 15 additions & 8 deletions dist/cytoscape.cjs.js
Expand Up @@ -13568,6 +13568,8 @@ var corefn$4 = {
};

var rendererDefaults = defaults({
hideEdgesOnViewport: false,
textureOnViewport: false,
motionBlur: false,
motionBlurOpacity: 0.05,
pixelRatio: undefined,
Expand Down Expand Up @@ -13919,12 +13921,16 @@ styfn.applyContextStyle = function (cxtMeta, cxtStyle, ele) {
} // save cycles when a mapped context prop doesn't need to be applied


if (cxtProp.mapped === types.fn && // context prop is function mapper
eleProp.mapping === cxtProp // the current prop on the ele is a flat prop value for the function mapper
if (cxtProp.mapped === types.fn // context prop is function mapper
&& eleProp.mapping != null // ele prop is a concrete value from from a mapper
&& eleProp.mapping.value === cxtProp.value // the current prop on the ele is a flat prop value for the function mapper
) {
cxtProp.fnValue = cxtProp.value(ele); // temporarily cache the value in case of a miss
// NB don't write to cxtProp, as it's shared among eles (stored in stylesheet)
var mapping = eleProp.mapping; // can write to mapping, as it's a per-ele copy

if (cxtProp.fnValue === cxtProp.prevFnValue) {
var fnValue = mapping.fnValue = cxtProp.value(ele); // temporarily cache the value in case of a miss

if (fnValue === mapping.prevFnValue) {
continue;
}
}
Expand Down Expand Up @@ -14282,7 +14288,7 @@ styfn.applyParsedProperty = function (ele, parsedProp) {
case types.fn:
{
var fn$$1 = prop.value;
var fnRetVal = prop.fnValue || fn$$1(ele); // check for cached value before calling function
var fnRetVal = prop.fnValue != null ? prop.fnValue : fn$$1(ele); // check for cached value before calling function

prop.prevFnValue = fnRetVal;

Expand All @@ -14298,7 +14304,7 @@ styfn.applyParsedProperty = function (ele, parsedProp) {
return false;
}

flatProp.mapping = prop; // keep a reference to the mapping
flatProp.mapping = copy(prop); // keep a reference to the mapping

prop = flatProp; // the flattened (mapped) property is the one we want

Expand Down Expand Up @@ -25416,6 +25422,7 @@ var beforeRenderCallbacks = function beforeRenderCallbacks(r, willDraw, startTim

BRp$e.startRenderLoop = function () {
var r = this;
var cy = r.cy;

if (r.renderLoopStarted) {
return;
Expand All @@ -25428,7 +25435,7 @@ BRp$e.startRenderLoop = function () {
return;
}

if (r.requestedFrame && !r.skipFrame) {
if (cy.batching()) ; else if (r.requestedFrame && !r.skipFrame) {
beforeRenderCallbacks(r, true, requestTime);
var startTime = performanceNow();
r.render(r.renderOptions);
Expand Down Expand Up @@ -30183,7 +30190,7 @@ sheetfn.appendToStyle = function (style$$1) {
return style$$1;
};

var version = "3.4.0";
var version = "3.4.1";

var cytoscape = function cytoscape(options) {
// if no options specified, use default
Expand Down
23 changes: 15 additions & 8 deletions dist/cytoscape.esm.js
Expand Up @@ -13564,6 +13564,8 @@ var corefn$4 = {
};

var rendererDefaults = defaults({
hideEdgesOnViewport: false,
textureOnViewport: false,
motionBlur: false,
motionBlurOpacity: 0.05,
pixelRatio: undefined,
Expand Down Expand Up @@ -13915,12 +13917,16 @@ styfn.applyContextStyle = function (cxtMeta, cxtStyle, ele) {
} // save cycles when a mapped context prop doesn't need to be applied


if (cxtProp.mapped === types.fn && // context prop is function mapper
eleProp.mapping === cxtProp // the current prop on the ele is a flat prop value for the function mapper
if (cxtProp.mapped === types.fn // context prop is function mapper
&& eleProp.mapping != null // ele prop is a concrete value from from a mapper
&& eleProp.mapping.value === cxtProp.value // the current prop on the ele is a flat prop value for the function mapper
) {
cxtProp.fnValue = cxtProp.value(ele); // temporarily cache the value in case of a miss
// NB don't write to cxtProp, as it's shared among eles (stored in stylesheet)
var mapping = eleProp.mapping; // can write to mapping, as it's a per-ele copy

if (cxtProp.fnValue === cxtProp.prevFnValue) {
var fnValue = mapping.fnValue = cxtProp.value(ele); // temporarily cache the value in case of a miss

if (fnValue === mapping.prevFnValue) {
continue;
}
}
Expand Down Expand Up @@ -14278,7 +14284,7 @@ styfn.applyParsedProperty = function (ele, parsedProp) {
case types.fn:
{
var fn$$1 = prop.value;
var fnRetVal = prop.fnValue || fn$$1(ele); // check for cached value before calling function
var fnRetVal = prop.fnValue != null ? prop.fnValue : fn$$1(ele); // check for cached value before calling function

prop.prevFnValue = fnRetVal;

Expand All @@ -14294,7 +14300,7 @@ styfn.applyParsedProperty = function (ele, parsedProp) {
return false;
}

flatProp.mapping = prop; // keep a reference to the mapping
flatProp.mapping = copy(prop); // keep a reference to the mapping

prop = flatProp; // the flattened (mapped) property is the one we want

Expand Down Expand Up @@ -25412,6 +25418,7 @@ var beforeRenderCallbacks = function beforeRenderCallbacks(r, willDraw, startTim

BRp$e.startRenderLoop = function () {
var r = this;
var cy = r.cy;

if (r.renderLoopStarted) {
return;
Expand All @@ -25424,7 +25431,7 @@ BRp$e.startRenderLoop = function () {
return;
}

if (r.requestedFrame && !r.skipFrame) {
if (cy.batching()) ; else if (r.requestedFrame && !r.skipFrame) {
beforeRenderCallbacks(r, true, requestTime);
var startTime = performanceNow();
r.render(r.renderOptions);
Expand Down Expand Up @@ -30179,7 +30186,7 @@ sheetfn.appendToStyle = function (style$$1) {
return style$$1;
};

var version = "3.4.0";
var version = "3.4.1";

var cytoscape = function cytoscape(options) {
// if no options specified, use default
Expand Down
2 changes: 1 addition & 1 deletion dist/cytoscape.min.js

Large diffs are not rendered by default.

23 changes: 15 additions & 8 deletions dist/cytoscape.umd.js
Expand Up @@ -14327,6 +14327,8 @@
};

var rendererDefaults = defaults({
hideEdgesOnViewport: false,
textureOnViewport: false,
motionBlur: false,
motionBlurOpacity: 0.05,
pixelRatio: undefined,
Expand Down Expand Up @@ -14678,12 +14680,16 @@
} // save cycles when a mapped context prop doesn't need to be applied


if (cxtProp.mapped === types.fn && // context prop is function mapper
eleProp.mapping === cxtProp // the current prop on the ele is a flat prop value for the function mapper
if (cxtProp.mapped === types.fn // context prop is function mapper
&& eleProp.mapping != null // ele prop is a concrete value from from a mapper
&& eleProp.mapping.value === cxtProp.value // the current prop on the ele is a flat prop value for the function mapper
) {
cxtProp.fnValue = cxtProp.value(ele); // temporarily cache the value in case of a miss
// NB don't write to cxtProp, as it's shared among eles (stored in stylesheet)
var mapping = eleProp.mapping; // can write to mapping, as it's a per-ele copy

if (cxtProp.fnValue === cxtProp.prevFnValue) {
var fnValue = mapping.fnValue = cxtProp.value(ele); // temporarily cache the value in case of a miss

if (fnValue === mapping.prevFnValue) {
continue;
}
}
Expand Down Expand Up @@ -15041,7 +15047,7 @@
case types.fn:
{
var fn$$1 = prop.value;
var fnRetVal = prop.fnValue || fn$$1(ele); // check for cached value before calling function
var fnRetVal = prop.fnValue != null ? prop.fnValue : fn$$1(ele); // check for cached value before calling function

prop.prevFnValue = fnRetVal;

Expand All @@ -15057,7 +15063,7 @@
return false;
}

flatProp.mapping = prop; // keep a reference to the mapping
flatProp.mapping = copy(prop); // keep a reference to the mapping

prop = flatProp; // the flattened (mapped) property is the one we want

Expand Down Expand Up @@ -26175,6 +26181,7 @@

BRp$e.startRenderLoop = function () {
var r = this;
var cy = r.cy;

if (r.renderLoopStarted) {
return;
Expand All @@ -26187,7 +26194,7 @@
return;
}

if (r.requestedFrame && !r.skipFrame) {
if (cy.batching()) ; else if (r.requestedFrame && !r.skipFrame) {
beforeRenderCallbacks(r, true, requestTime);
var startTime = performanceNow();
r.render(r.renderOptions);
Expand Down Expand Up @@ -30942,7 +30949,7 @@
return style$$1;
};

var version = "3.4.0";
var version = "3.4.1";

var cytoscape = function cytoscape(options) {
// if no options specified, use default
Expand Down
5 changes: 4 additions & 1 deletion documentation/index.html
Expand Up @@ -48,7 +48,7 @@ <h1 id="top" class="title">Cytoscape.js</h1>
<a href="https://zenodo.org/badge/latestdoi/2255947"><img src="https://zenodo.org/badge/2255947.svg" alt="DOI"></a>
<a href="https://www.npmjs.com/package/cytoscape"><img src="https://img.shields.io/npm/v/cytoscape.svg" alt="npm"></a>
<a href="https://github.com/cytoscape/cytoscape.js/tree/master/dist"><img src="https://img.shields.io/npm/v/cytoscape.svg?label=Download" alt="Download"></a>
<a href="#extensions"><img src="https://img.shields.io/badge/Extensions-39-blue.svg" alt="Extensions"></a>
<a href="#extensions"><img src="https://img.shields.io/badge/Extensions-40-blue.svg" alt="Extensions"></a>
<a href="https://www.npmjs.com/package/cytoscape"><img src="https://img.shields.io/npm/dm/cytoscape.svg?label=npm%20installs" alt="npm installs"></a>
<a href="https://travis-ci.org/cytoscape/cytoscape.js"><img src="https://img.shields.io/travis/cytoscape/cytoscape.js/master.svg?label=master%20branch" alt="master branch tests"></a>
<a href="https://travis-ci.org/cytoscape/cytoscape.js"><img src="https://img.shields.io/travis/cytoscape/cytoscape.js/unstable.svg?label=unstable%20branch" alt="unstable branch tests"></a>
Expand Down Expand Up @@ -554,8 +554,10 @@ <h2 id="introduction/factsheet">Factsheet <a href="#introduction/factsheet"><spa
<li><a href="http://www.imise.uni-leipzig.de/en">University of Leipzig, Institute for Medical Informatics, Statistics and Epidemiology (IMISE)</a> : <a href="http://www.snik.eu/">SNIK research project</a></li>
<li><a href="https://umd.edu/">University of Maryland</a> : <a href="http://cbcb.umd.edu/">Center for Bioinformatics and Computational Biology</a> : <a href="https://marbl.github.io/MetagenomeScope/">MetagenomeScope</a></li>
<li><a href="http://www.ucsd.edu/">University of Southern California, San Diego</a> : <a href="http://gnps.ucsd.edu/ProteoSAFe/result.jsp?view=network_displayer&amp;componentindex=67&amp;task=c95481f0c53d42e78a61bf899e9f9adb#%7B%7D">Visualization of structurally related compounds in Mass Spectrometry with Molecular Networks at GNPS</a></li>
<li><a href="https://www.vanderbilt.edu">Vanderbilt University</a> : <a href="https://viz-pysb-widget.readthedocs.io">pysbjupyter</a></li>
<li><a href="http://www.vt.edu/index.html">Virginia Tech</a> <a href="http://bioinformatics.cs.vt.edu/~murali/">T. M. Murali’s Research Group</a> : <a href="http://graphspace.org">GraphSpace</a></li>
<li><a href="http://www.mygaze.com/">Visual Interaction GmbH</a></li>
<li>xD Bio Inc. : <a href="https://truwl.com">Truwl</a></li>
<li>Do you use Cytoscape.js? <a href="https://github.com/cytoscape/cytoscape.js/issues/914">Let us know</a></li>
</ul>
</li>
Expand Down Expand Up @@ -14385,6 +14387,7 @@ <h2 id="extensions/ui-extensions">UI extensions <a href="#extensions/ui-extensio
<li><i class="fa fa-fw fa-user"></i> <a href="https://github.com/iVis-at-Bilkent/cytoscape.js-autopan-on-drag"><code>autopan-on-drag</code></a> : Automatically pan the viewport when nodes are dragged outside of the viewport bounds.</li>
<li><i class="fa fa-fw fa-users"></i> <a href="https://github.com/classcraft/cytoscape.js-canvas"><code>canvas</code></a> : An extension to create a canvas over or under a Cytoscape graph. Useful for customizing nodes/edges, drawing backgrounds, etc.</li>
<li><i class="fa fa-fw fa-users"></i> <a href="https://github.com/silviafrias/cerebral-web"><code>cerebralweb</code></a> : Enable fast and interactive visualisation of molecular interaction networks stratified based on subcellular localisation or other custom annotation.</li>
<li><i class="fa fa-fw fa-user"></i> <a href="https://github.com/cytoscape/cytoscape.js-compound-drag-and-drop"><code>compound-drag-and-drop</code></a> : Compound node drag-and-drop UI for adding and removing children</li>
<li><i class="fa fa-fw fa-user"></i> <a href="https://github.com/iVis-at-Bilkent/cytoscape.js-context-menus"><code>context-menus</code></a> : A traditional right click menu</li>
<li><i class="fa fa-fw fa-user"></i> <a href="https://github.com/cytoscape/cytoscape.js-cxtmenu"><code>cxtmenu</code></a> : A circular context menu that allows for one-swipe commands on the graph.</li>
<li><i class="fa fa-fw fa-user"></i> <a href="https://github.com/iVis-at-Bilkent/cytoscape.js-edge-bend-editing"><code>edge-bend-editing</code></a> : UI for editing edge bends (segment edges and bezier edges)</li>
Expand Down
2 changes: 1 addition & 1 deletion documentation/js/cytoscape.min.js

Large diffs are not rendered by default.

0 comments on commit f68dad7

Please sign in to comment.