Skip to content

Commit

Permalink
Build 3.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkfranz committed Feb 7, 2020
1 parent ec05963 commit bb9bc0b
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 110 deletions.
32 changes: 16 additions & 16 deletions .size-snapshot.json
@@ -1,39 +1,39 @@
{
"build/cytoscape.umd.js": {
"bundled": 926866,
"minified": 343399,
"gzipped": 106827
"bundled": 927167,
"minified": 343523,
"gzipped": 106844
},
"build/cytoscape.cjs.js": {
"bundled": 854137,
"minified": 362078,
"gzipped": 109159
"bundled": 854432,
"minified": 362202,
"gzipped": 109185
},
"build/cytoscape.esm.js": {
"bundled": 853964,
"minified": 361935,
"gzipped": 109124,
"bundled": 854259,
"minified": 362059,
"gzipped": 109151,
"treeshaked": {
"rollup": {
"code": 338049,
"code": 338173,
"import_statements": 51
},
"webpack": {
"code": 339923
"code": 340047
}
}
},
"build/cytoscape.esm.min.js": {
"bundled": 343214,
"minified": 342724,
"gzipped": 106650,
"bundled": 343338,
"minified": 342848,
"gzipped": 106676,
"treeshaked": {
"rollup": {
"code": 342200,
"code": 342324,
"import_statements": 0
},
"webpack": {
"code": 343484
"code": 343608
}
}
}
Expand Down
65 changes: 35 additions & 30 deletions dist/cytoscape.cjs.js
Expand Up @@ -5578,13 +5578,11 @@ var hopcroftTarjanBiconnected = function hopcroftTarjanBiconnected() {
var components = [];
var stack = [];
var visitedEdges = {};
var loops = {};

var buildComponent = function buildComponent(x, y) {
var i = stack.length - 1;
var cutset = [];
var visitedNodes = {};
var component = [];
var component = eles.spawn();

while (stack[i].x != x || stack[i].y != y) {
cutset.push(stack.pop().edge);
Expand All @@ -5593,29 +5591,27 @@ var hopcroftTarjanBiconnected = function hopcroftTarjanBiconnected() {

cutset.push(stack.pop().edge);
cutset.forEach(function (edge) {
component.push(edge);
var connectedNodes = edge.connectedNodes().intersection(eles);
component.merge(edge);
connectedNodes.forEach(function (node) {
var nodeId = node.id();
var connectedEdges = node.connectedEdges().intersection(eles);
component.merge(node);

if (!(nodeId in visitedNodes)) {
visitedNodes[nodeId] = true;

if (nodeId in loops) {
loops[nodeId].forEach(function (loop) {
return component.push(loop);
});
}

component.push(node);
if (!nodes[nodeId].cutVertex) {
component.merge(connectedEdges);
} else {
component.merge(connectedEdges.filter(function (edge) {
return edge.isLoop();
}));
}
});
});
components.push(eles.spawn(component));
components.push(component);
};

var biconnectedSearch = function biconnectedSearch(root, currentNode, parent) {
if (root == parent) edgeCount += 1;
if (root === parent) edgeCount += 1;
nodes[currentNode] = {
id: id,
low: id++,
Expand All @@ -5626,28 +5622,21 @@ var hopcroftTarjanBiconnected = function hopcroftTarjanBiconnected() {
if (edges.size() === 0) {
components.push(eles.spawn(eles.getElementById(currentNode)));
} else {
var sourceId, targetId, otherNodeId, edgeId, isEdgeLoop;
var sourceId, targetId, otherNodeId, edgeId;
edges.forEach(function (edge) {
sourceId = edge.source().id();
targetId = edge.target().id();
otherNodeId = sourceId == currentNode ? targetId : sourceId;
isEdgeLoop = edge.isLoop();
otherNodeId = sourceId === currentNode ? targetId : sourceId;

if (isEdgeLoop) {
if (sourceId in loops) {
loops.push(edge);
} else {
loops[sourceId] = [edge];
}
} else if (otherNodeId != parent) {
if (otherNodeId !== parent) {
edgeId = edge.id();

if (!visitedEdges[edgeId]) {
visitedEdges[edgeId] = true;
stack.push({
x: currentNode,
y: otherNodeId,
edge: eles.getElementById(edgeId)
edge: edge
});
}

Expand All @@ -5673,7 +5662,7 @@ var hopcroftTarjanBiconnected = function hopcroftTarjanBiconnected() {

if (!(nodeId in nodes)) {
edgeCount = 0;
biconnectedSearch(nodeId, nodeId, "");
biconnectedSearch(nodeId, nodeId);
nodes[nodeId].cutVertex = edgeCount > 1;
}
}
Expand Down Expand Up @@ -6384,6 +6373,8 @@ var define = {
if (vp.panned) {
properties.pan = vp.pan;
}
} else {
properties.zoom = null; // an inavalid zoom (e.g. no delta) gets automatically destroyed
}
}

Expand Down Expand Up @@ -13648,6 +13639,10 @@ function getEasedValue(type, start, end, percent, easingFn) {
return end;
}

if (start === end) {
return end;
}

var val = easingFn(start, end, percent);

if (type == null) {
Expand Down Expand Up @@ -23760,6 +23755,10 @@ BRp$8.onUpdateEleCalcs = function (fn) {
};

BRp$8.recalculateRenderedStyle = function (eles, useCache) {
var isCleanConnected = function isCleanConnected(ele) {
return ele._private.rstyle.cleanConnected;
};

var edges = [];
var nodes = []; // the renderer can't be used for calcs when destroyed, e.g. ele.boundingBox()

Expand All @@ -23775,7 +23774,13 @@ BRp$8.recalculateRenderedStyle = function (eles, useCache) {
for (var i = 0; i < eles.length; i++) {
var ele = eles[i];
var _p = ele._private;
var rstyle = _p.rstyle; // only update if dirty and in graph
var rstyle = _p.rstyle; // an edge may be implicitly dirty b/c of one of its connected nodes
// (and a request for recalc may come in between frames)

if (ele.isEdge() && (!isCleanConnected(ele.source()) || !isCleanConnected(ele.target()))) {
rstyle.clean = false;
} // only update if dirty and in graph


if (useCache && rstyle.clean || ele.removed()) {
continue;
Expand Down Expand Up @@ -31405,7 +31410,7 @@ sheetfn.appendToStyle = function (style) {
return style;
};

var version = "3.13.0";
var version = "3.13.1";

var cytoscape = function cytoscape(options) {
// if no options specified, use default
Expand Down
65 changes: 35 additions & 30 deletions dist/cytoscape.esm.js
Expand Up @@ -5574,13 +5574,11 @@ var hopcroftTarjanBiconnected = function hopcroftTarjanBiconnected() {
var components = [];
var stack = [];
var visitedEdges = {};
var loops = {};

var buildComponent = function buildComponent(x, y) {
var i = stack.length - 1;
var cutset = [];
var visitedNodes = {};
var component = [];
var component = eles.spawn();

while (stack[i].x != x || stack[i].y != y) {
cutset.push(stack.pop().edge);
Expand All @@ -5589,29 +5587,27 @@ var hopcroftTarjanBiconnected = function hopcroftTarjanBiconnected() {

cutset.push(stack.pop().edge);
cutset.forEach(function (edge) {
component.push(edge);
var connectedNodes = edge.connectedNodes().intersection(eles);
component.merge(edge);
connectedNodes.forEach(function (node) {
var nodeId = node.id();
var connectedEdges = node.connectedEdges().intersection(eles);
component.merge(node);

if (!(nodeId in visitedNodes)) {
visitedNodes[nodeId] = true;

if (nodeId in loops) {
loops[nodeId].forEach(function (loop) {
return component.push(loop);
});
}

component.push(node);
if (!nodes[nodeId].cutVertex) {
component.merge(connectedEdges);
} else {
component.merge(connectedEdges.filter(function (edge) {
return edge.isLoop();
}));
}
});
});
components.push(eles.spawn(component));
components.push(component);
};

var biconnectedSearch = function biconnectedSearch(root, currentNode, parent) {
if (root == parent) edgeCount += 1;
if (root === parent) edgeCount += 1;
nodes[currentNode] = {
id: id,
low: id++,
Expand All @@ -5622,28 +5618,21 @@ var hopcroftTarjanBiconnected = function hopcroftTarjanBiconnected() {
if (edges.size() === 0) {
components.push(eles.spawn(eles.getElementById(currentNode)));
} else {
var sourceId, targetId, otherNodeId, edgeId, isEdgeLoop;
var sourceId, targetId, otherNodeId, edgeId;
edges.forEach(function (edge) {
sourceId = edge.source().id();
targetId = edge.target().id();
otherNodeId = sourceId == currentNode ? targetId : sourceId;
isEdgeLoop = edge.isLoop();
otherNodeId = sourceId === currentNode ? targetId : sourceId;

if (isEdgeLoop) {
if (sourceId in loops) {
loops.push(edge);
} else {
loops[sourceId] = [edge];
}
} else if (otherNodeId != parent) {
if (otherNodeId !== parent) {
edgeId = edge.id();

if (!visitedEdges[edgeId]) {
visitedEdges[edgeId] = true;
stack.push({
x: currentNode,
y: otherNodeId,
edge: eles.getElementById(edgeId)
edge: edge
});
}

Expand All @@ -5669,7 +5658,7 @@ var hopcroftTarjanBiconnected = function hopcroftTarjanBiconnected() {

if (!(nodeId in nodes)) {
edgeCount = 0;
biconnectedSearch(nodeId, nodeId, "");
biconnectedSearch(nodeId, nodeId);
nodes[nodeId].cutVertex = edgeCount > 1;
}
}
Expand Down Expand Up @@ -6380,6 +6369,8 @@ var define = {
if (vp.panned) {
properties.pan = vp.pan;
}
} else {
properties.zoom = null; // an inavalid zoom (e.g. no delta) gets automatically destroyed
}
}

Expand Down Expand Up @@ -13644,6 +13635,10 @@ function getEasedValue(type, start, end, percent, easingFn) {
return end;
}

if (start === end) {
return end;
}

var val = easingFn(start, end, percent);

if (type == null) {
Expand Down Expand Up @@ -23756,6 +23751,10 @@ BRp$8.onUpdateEleCalcs = function (fn) {
};

BRp$8.recalculateRenderedStyle = function (eles, useCache) {
var isCleanConnected = function isCleanConnected(ele) {
return ele._private.rstyle.cleanConnected;
};

var edges = [];
var nodes = []; // the renderer can't be used for calcs when destroyed, e.g. ele.boundingBox()

Expand All @@ -23771,7 +23770,13 @@ BRp$8.recalculateRenderedStyle = function (eles, useCache) {
for (var i = 0; i < eles.length; i++) {
var ele = eles[i];
var _p = ele._private;
var rstyle = _p.rstyle; // only update if dirty and in graph
var rstyle = _p.rstyle; // an edge may be implicitly dirty b/c of one of its connected nodes
// (and a request for recalc may come in between frames)

if (ele.isEdge() && (!isCleanConnected(ele.source()) || !isCleanConnected(ele.target()))) {
rstyle.clean = false;
} // only update if dirty and in graph


if (useCache && rstyle.clean || ele.removed()) {
continue;
Expand Down Expand Up @@ -31401,7 +31406,7 @@ sheetfn.appendToStyle = function (style) {
return style;
};

var version = "3.13.0";
var version = "3.13.1";

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cytoscape.min.js

Large diffs are not rendered by default.

0 comments on commit bb9bc0b

Please sign in to comment.