Skip to content

Commit

Permalink
Build 3.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkfranz committed Feb 23, 2021
1 parent c7691ac commit 8da20f4
Show file tree
Hide file tree
Showing 8 changed files with 469 additions and 429 deletions.
32 changes: 16 additions & 16 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{
"build/cytoscape.umd.js": {
"bundled": 935606,
"minified": 348105,
"gzipped": 108363
"bundled": 936014,
"minified": 348258,
"gzipped": 108399
},
"build/cytoscape.cjs.js": {
"bundled": 862511,
"minified": 367393,
"gzipped": 110701
"bundled": 862907,
"minified": 367546,
"gzipped": 110728
},
"build/cytoscape.esm.js": {
"bundled": 862338,
"minified": 367250,
"gzipped": 110657,
"bundled": 862734,
"minified": 367403,
"gzipped": 110686,
"treeshaked": {
"rollup": {
"code": 342753,
"code": 342906,
"import_statements": 51
},
"webpack": {
"code": 344141
"code": 344294
}
}
},
"build/cytoscape.esm.min.js": {
"bundled": 347910,
"minified": 347412,
"gzipped": 108184,
"bundled": 348063,
"minified": 347565,
"gzipped": 108217,
"treeshaked": {
"rollup": {
"code": 346906,
"code": 347059,
"import_statements": 0
},
"webpack": {
"code": 348194
"code": 348347
}
}
}
Expand Down
28 changes: 19 additions & 9 deletions dist/cytoscape.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -19159,6 +19159,11 @@ BreadthFirstLayout.prototype.run = function () {
}

var bf = getInfo(neighbor);

if (bf == null) {
continue;
}

var index = bf.index;
var depth = bf.depth; // unassigned neighbours shouldn't affect the ordering

Expand Down Expand Up @@ -21750,14 +21755,17 @@ BRp$1.findNearestElements = function (x, y, interactiveElementsOnly, isTouch) {
return;
}

var rstyle = _p.rstyle;
var lx = preprop(rstyle, 'labelX', prefix);
var ly = preprop(rstyle, 'labelY', prefix);
var lx = preprop(_p.rscratch, 'labelX', prefix);
var ly = preprop(_p.rscratch, 'labelY', prefix);
var theta = preprop(_p.rscratch, 'labelAngle', prefix);
var lx1 = bb.x1 - th;
var lx2 = bb.x2 + th;
var ly1 = bb.y1 - th;
var ly2 = bb.y2 + th;
var ox = ele.pstyle(prefixDash + 'text-margin-x').pfValue;
var oy = ele.pstyle(prefixDash + 'text-margin-y').pfValue;
var lx1 = bb.x1 - th - ox; // (-ox, -oy) as bb already includes margin

var lx2 = bb.x2 + th - ox; // and rotation is about (lx, ly)

var ly1 = bb.y1 - th - oy;
var ly2 = bb.y2 + th - oy;

if (theta) {
var cos = Math.cos(theta);
Expand All @@ -21776,7 +21784,8 @@ BRp$1.findNearestElements = function (x, y, interactiveElementsOnly, isTouch) {
var px1y2 = rotate(lx1, ly2);
var px2y1 = rotate(lx2, ly1);
var px2y2 = rotate(lx2, ly2);
var points = [px1y1.x, px1y1.y, px2y1.x, px2y1.y, px2y2.x, px2y2.y, px1y2.x, px1y2.y];
var points = [// with the margin added after the rotation is applied
px1y1.x + ox, px1y1.y + oy, px2y1.x + ox, px2y1.y + oy, px2y2.x + ox, px2y2.y + oy, px1y2.x + ox, px1y2.y + oy];

if (pointInsidePolygonPoints(x, y, points)) {
addEle(ele);
Expand Down Expand Up @@ -23273,6 +23282,7 @@ BRp$6.recalculateNodeLabelProjection = function (node) {
rs.labelY = textY;
rstyle.labelX = textX;
rstyle.labelY = textY;
this.calculateLabelAngles(node);
this.applyLabelDimensions(node);
};

Expand Down Expand Up @@ -31621,7 +31631,7 @@ sheetfn.appendToStyle = function (style) {
return style;
};

var version = "3.18.0";
var version = "3.18.1";

var cytoscape = function cytoscape(options) {
// if no options specified, use default
Expand Down
28 changes: 19 additions & 9 deletions dist/cytoscape.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -19155,6 +19155,11 @@ BreadthFirstLayout.prototype.run = function () {
}

var bf = getInfo(neighbor);

if (bf == null) {
continue;
}

var index = bf.index;
var depth = bf.depth; // unassigned neighbours shouldn't affect the ordering

Expand Down Expand Up @@ -21746,14 +21751,17 @@ BRp$1.findNearestElements = function (x, y, interactiveElementsOnly, isTouch) {
return;
}

var rstyle = _p.rstyle;
var lx = preprop(rstyle, 'labelX', prefix);
var ly = preprop(rstyle, 'labelY', prefix);
var lx = preprop(_p.rscratch, 'labelX', prefix);
var ly = preprop(_p.rscratch, 'labelY', prefix);
var theta = preprop(_p.rscratch, 'labelAngle', prefix);
var lx1 = bb.x1 - th;
var lx2 = bb.x2 + th;
var ly1 = bb.y1 - th;
var ly2 = bb.y2 + th;
var ox = ele.pstyle(prefixDash + 'text-margin-x').pfValue;
var oy = ele.pstyle(prefixDash + 'text-margin-y').pfValue;
var lx1 = bb.x1 - th - ox; // (-ox, -oy) as bb already includes margin

var lx2 = bb.x2 + th - ox; // and rotation is about (lx, ly)

var ly1 = bb.y1 - th - oy;
var ly2 = bb.y2 + th - oy;

if (theta) {
var cos = Math.cos(theta);
Expand All @@ -21772,7 +21780,8 @@ BRp$1.findNearestElements = function (x, y, interactiveElementsOnly, isTouch) {
var px1y2 = rotate(lx1, ly2);
var px2y1 = rotate(lx2, ly1);
var px2y2 = rotate(lx2, ly2);
var points = [px1y1.x, px1y1.y, px2y1.x, px2y1.y, px2y2.x, px2y2.y, px1y2.x, px1y2.y];
var points = [// with the margin added after the rotation is applied
px1y1.x + ox, px1y1.y + oy, px2y1.x + ox, px2y1.y + oy, px2y2.x + ox, px2y2.y + oy, px1y2.x + ox, px1y2.y + oy];

if (pointInsidePolygonPoints(x, y, points)) {
addEle(ele);
Expand Down Expand Up @@ -23269,6 +23278,7 @@ BRp$6.recalculateNodeLabelProjection = function (node) {
rs.labelY = textY;
rstyle.labelX = textX;
rstyle.labelY = textY;
this.calculateLabelAngles(node);
this.applyLabelDimensions(node);
};

Expand Down Expand Up @@ -31617,7 +31627,7 @@ sheetfn.appendToStyle = function (style) {
return style;
};

var version = "3.18.0";
var version = "3.18.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.

28 changes: 19 additions & 9 deletions dist/cytoscape.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -19918,6 +19918,11 @@
}

var bf = getInfo(neighbor);

if (bf == null) {
continue;
}

var index = bf.index;
var depth = bf.depth; // unassigned neighbours shouldn't affect the ordering

Expand Down Expand Up @@ -22509,14 +22514,17 @@
return;
}

var rstyle = _p.rstyle;
var lx = preprop(rstyle, 'labelX', prefix);
var ly = preprop(rstyle, 'labelY', prefix);
var lx = preprop(_p.rscratch, 'labelX', prefix);
var ly = preprop(_p.rscratch, 'labelY', prefix);
var theta = preprop(_p.rscratch, 'labelAngle', prefix);
var lx1 = bb.x1 - th;
var lx2 = bb.x2 + th;
var ly1 = bb.y1 - th;
var ly2 = bb.y2 + th;
var ox = ele.pstyle(prefixDash + 'text-margin-x').pfValue;
var oy = ele.pstyle(prefixDash + 'text-margin-y').pfValue;
var lx1 = bb.x1 - th - ox; // (-ox, -oy) as bb already includes margin

var lx2 = bb.x2 + th - ox; // and rotation is about (lx, ly)

var ly1 = bb.y1 - th - oy;
var ly2 = bb.y2 + th - oy;

if (theta) {
var cos = Math.cos(theta);
Expand All @@ -22535,7 +22543,8 @@
var px1y2 = rotate(lx1, ly2);
var px2y1 = rotate(lx2, ly1);
var px2y2 = rotate(lx2, ly2);
var points = [px1y1.x, px1y1.y, px2y1.x, px2y1.y, px2y2.x, px2y2.y, px1y2.x, px1y2.y];
var points = [// with the margin added after the rotation is applied
px1y1.x + ox, px1y1.y + oy, px2y1.x + ox, px2y1.y + oy, px2y2.x + ox, px2y2.y + oy, px1y2.x + ox, px1y2.y + oy];

if (pointInsidePolygonPoints(x, y, points)) {
addEle(ele);
Expand Down Expand Up @@ -24032,6 +24041,7 @@
rs.labelY = textY;
rstyle.labelX = textX;
rstyle.labelY = textY;
this.calculateLabelAngles(node);
this.applyLabelDimensions(node);
};

Expand Down Expand Up @@ -32380,7 +32390,7 @@
return style;
};

var version = "3.18.0";
var version = "3.18.1";

var cytoscape = function cytoscape(options) {
// if no options specified, use default
Expand Down
Loading

0 comments on commit 8da20f4

Please sign in to comment.