Skip to content

Commit

Permalink
Build 3.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkfranz committed Sep 24, 2019
1 parent 1471882 commit 586e6cf
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 37 deletions.
22 changes: 11 additions & 11 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"build/cytoscape.umd.js": {
"bundled": 903827,
"minified": 335884,
"gzipped": 104318
"bundled": 903963,
"minified": 335931,
"gzipped": 104338
},
"build/cytoscape.cjs.js": {
"bundled": 832316,
"minified": 353691,
"gzipped": 106542
"bundled": 832446,
"minified": 353738,
"gzipped": 106562
},
"build/cytoscape.esm.js": {
"bundled": 832143,
"minified": 353548,
"gzipped": 106508,
"bundled": 832273,
"minified": 353595,
"gzipped": 106527,
"treeshaked": {
"rollup": {
"code": 330537,
"code": 330584,
"import_statements": 51
},
"webpack": {
"code": 332404
"code": 332451
}
}
}
Expand Down
20 changes: 12 additions & 8 deletions dist/cytoscape.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -22890,7 +22890,10 @@ BRp$6.getLabelText = function (ele, prefix) {
subline += word + wordSeparator;
} else {
// word starts new line
wrappedLines.push(subline);
if (subline) {
wrappedLines.push(subline);
}

subline = word + wordSeparator;
}
} // if there's remaining text, put it in a wrapped line
Expand Down Expand Up @@ -30142,10 +30145,11 @@ function CanvasRenderer(options) {
return getBoxCenter(getElementBox(ele));
};

var addTextMargin = function addTextMargin(pt, ele) {
var addTextMargin = function addTextMargin(prefix, pt, ele) {
var pre = prefix ? prefix + '-' : '';
return {
x: pt.x + ele.pstyle('text-margin-x').pfValue,
y: pt.y + ele.pstyle('text-margin-y').pfValue
x: pt.x + ele.pstyle(pre + 'text-margin-x').pfValue,
y: pt.y + ele.pstyle(pre + 'text-margin-y').pfValue
};
};

Expand All @@ -30158,15 +30162,15 @@ function CanvasRenderer(options) {
};

var getLabelRotationPoint = function getLabelRotationPoint(ele) {
return addTextMargin(getRsPt(ele, 'labelX', 'labelY'), ele);
return addTextMargin('', getRsPt(ele, 'labelX', 'labelY'), ele);
};

var getSourceLabelRotationPoint = function getSourceLabelRotationPoint(ele) {
return addTextMargin(getRsPt(ele, 'sourceLabelX', 'sourceLabelY'), ele);
return addTextMargin('source', getRsPt(ele, 'sourceLabelX', 'sourceLabelY'), ele);
};

var getTargetLabelRotationPoint = function getTargetLabelRotationPoint(ele) {
return addTextMargin(getRsPt(ele, 'targetLabelX', 'targetLabelY'), ele);
return addTextMargin('target', getRsPt(ele, 'targetLabelX', 'targetLabelY'), ele);
};

var getElementRotationOffset = function getElementRotationOffset(ele) {
Expand Down Expand Up @@ -30691,7 +30695,7 @@ sheetfn.appendToStyle = function (style) {
return style;
};

var version = "3.9.2";
var version = "3.9.3";

var cytoscape = function cytoscape(options) {
// if no options specified, use default
Expand Down
20 changes: 12 additions & 8 deletions dist/cytoscape.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -22886,7 +22886,10 @@ BRp$6.getLabelText = function (ele, prefix) {
subline += word + wordSeparator;
} else {
// word starts new line
wrappedLines.push(subline);
if (subline) {
wrappedLines.push(subline);
}

subline = word + wordSeparator;
}
} // if there's remaining text, put it in a wrapped line
Expand Down Expand Up @@ -30138,10 +30141,11 @@ function CanvasRenderer(options) {
return getBoxCenter(getElementBox(ele));
};

var addTextMargin = function addTextMargin(pt, ele) {
var addTextMargin = function addTextMargin(prefix, pt, ele) {
var pre = prefix ? prefix + '-' : '';
return {
x: pt.x + ele.pstyle('text-margin-x').pfValue,
y: pt.y + ele.pstyle('text-margin-y').pfValue
x: pt.x + ele.pstyle(pre + 'text-margin-x').pfValue,
y: pt.y + ele.pstyle(pre + 'text-margin-y').pfValue
};
};

Expand All @@ -30154,15 +30158,15 @@ function CanvasRenderer(options) {
};

var getLabelRotationPoint = function getLabelRotationPoint(ele) {
return addTextMargin(getRsPt(ele, 'labelX', 'labelY'), ele);
return addTextMargin('', getRsPt(ele, 'labelX', 'labelY'), ele);
};

var getSourceLabelRotationPoint = function getSourceLabelRotationPoint(ele) {
return addTextMargin(getRsPt(ele, 'sourceLabelX', 'sourceLabelY'), ele);
return addTextMargin('source', getRsPt(ele, 'sourceLabelX', 'sourceLabelY'), ele);
};

var getTargetLabelRotationPoint = function getTargetLabelRotationPoint(ele) {
return addTextMargin(getRsPt(ele, 'targetLabelX', 'targetLabelY'), ele);
return addTextMargin('target', getRsPt(ele, 'targetLabelX', 'targetLabelY'), ele);
};

var getElementRotationOffset = function getElementRotationOffset(ele) {
Expand Down Expand Up @@ -30687,7 +30691,7 @@ sheetfn.appendToStyle = function (style) {
return style;
};

var version = "3.9.2";
var version = "3.9.3";

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.

20 changes: 12 additions & 8 deletions dist/cytoscape.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -23649,7 +23649,10 @@
subline += word + wordSeparator;
} else {
// word starts new line
wrappedLines.push(subline);
if (subline) {
wrappedLines.push(subline);
}

subline = word + wordSeparator;
}
} // if there's remaining text, put it in a wrapped line
Expand Down Expand Up @@ -30901,10 +30904,11 @@
return getBoxCenter(getElementBox(ele));
};

var addTextMargin = function addTextMargin(pt, ele) {
var addTextMargin = function addTextMargin(prefix, pt, ele) {
var pre = prefix ? prefix + '-' : '';
return {
x: pt.x + ele.pstyle('text-margin-x').pfValue,
y: pt.y + ele.pstyle('text-margin-y').pfValue
x: pt.x + ele.pstyle(pre + 'text-margin-x').pfValue,
y: pt.y + ele.pstyle(pre + 'text-margin-y').pfValue
};
};

Expand All @@ -30917,15 +30921,15 @@
};

var getLabelRotationPoint = function getLabelRotationPoint(ele) {
return addTextMargin(getRsPt(ele, 'labelX', 'labelY'), ele);
return addTextMargin('', getRsPt(ele, 'labelX', 'labelY'), ele);
};

var getSourceLabelRotationPoint = function getSourceLabelRotationPoint(ele) {
return addTextMargin(getRsPt(ele, 'sourceLabelX', 'sourceLabelY'), ele);
return addTextMargin('source', getRsPt(ele, 'sourceLabelX', 'sourceLabelY'), ele);
};

var getTargetLabelRotationPoint = function getTargetLabelRotationPoint(ele) {
return addTextMargin(getRsPt(ele, 'targetLabelX', 'targetLabelY'), ele);
return addTextMargin('target', getRsPt(ele, 'targetLabelX', 'targetLabelY'), ele);
};

var getElementRotationOffset = function getElementRotationOffset(ele) {
Expand Down Expand Up @@ -31450,7 +31454,7 @@
return style;
};

var version = "3.9.2";
var version = "3.9.3";

var cytoscape = function cytoscape(options) {
// if no options specified, use default
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 586e6cf

Please sign in to comment.