Skip to content

Commit

Permalink
Build 3.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkfranz committed Jun 24, 2019
1 parent a8ea099 commit bd98fcb
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 39 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": 905720,
"minified": 334781,
"gzipped": 103904
"bundled": 905843,
"minified": 334844,
"gzipped": 103924
},
"build/cytoscape.cjs.js": {
"bundled": 834101,
"minified": 355531,
"gzipped": 106826
"bundled": 834218,
"minified": 355594,
"gzipped": 106847
},
"build/cytoscape.esm.js": {
"bundled": 833928,
"minified": 355388,
"gzipped": 106791,
"bundled": 834045,
"minified": 355451,
"gzipped": 106810,
"treeshaked": {
"rollup": {
"code": 329287,
"code": 329350,
"import_statements": 51
},
"webpack": {
"code": 331295
"code": 331358
}
}
}
Expand Down
7 changes: 5 additions & 2 deletions dist/cytoscape.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -23178,6 +23178,7 @@ BRp$8.registerCalculationListeners = function () {
var _p = ele._private;
var rstyle = _p.rstyle;
rstyle.clean = false;
rstyle.cleanConnected = false;
}
}
};
Expand All @@ -23196,9 +23197,11 @@ BRp$8.registerCalculationListeners = function () {

for (var i = 0; i < elesToUpdate.length; i++) {
var ele = elesToUpdate[i];
var rstyle = ele._private.rstyle;

if (ele.isNode() && !ele._private.rstyle.clean) {
if (ele.isNode() && !rstyle.cleanConnected) {
enqueue(ele.connectedEdges());
rstyle.cleanConnected = true;
}
}

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

var version = "3.7.2";
var version = "3.7.3";

var cytoscape = function cytoscape(options) {
// if no options specified, use default
Expand Down
7 changes: 5 additions & 2 deletions dist/cytoscape.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -23174,6 +23174,7 @@ BRp$8.registerCalculationListeners = function () {
var _p = ele._private;
var rstyle = _p.rstyle;
rstyle.clean = false;
rstyle.cleanConnected = false;
}
}
};
Expand All @@ -23192,9 +23193,11 @@ BRp$8.registerCalculationListeners = function () {

for (var i = 0; i < elesToUpdate.length; i++) {
var ele = elesToUpdate[i];
var rstyle = ele._private.rstyle;

if (ele.isNode() && !ele._private.rstyle.clean) {
if (ele.isNode() && !rstyle.cleanConnected) {
enqueue(ele.connectedEdges());
rstyle.cleanConnected = true;
}
}

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

var version = "3.7.2";
var version = "3.7.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.

7 changes: 5 additions & 2 deletions dist/cytoscape.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -23937,6 +23937,7 @@
var _p = ele._private;
var rstyle = _p.rstyle;
rstyle.clean = false;
rstyle.cleanConnected = false;
}
}
};
Expand All @@ -23955,9 +23956,11 @@

for (var i = 0; i < elesToUpdate.length; i++) {
var ele = elesToUpdate[i];
var rstyle = ele._private.rstyle;

if (ele.isNode() && !ele._private.rstyle.clean) {
if (ele.isNode() && !rstyle.cleanConnected) {
enqueue(ele.connectedEdges());
rstyle.cleanConnected = true;
}
}

Expand Down Expand Up @@ -31500,7 +31503,7 @@
return style;
};

var version = "3.7.2";
var version = "3.7.3";

var cytoscape = function cytoscape(options) {
// if no options specified, use default
Expand Down
45 changes: 25 additions & 20 deletions documentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -636,12 +636,14 @@ <h2 id="introduction/packages">Packages <a href="#introduction/packages"><span c
<h2 id="introduction/releases">Releases <a href="#introduction/releases"><span class="fa fa-bookmark"></span></a></h2>
<ul>
<li>3.7<ul>
<li><a href="https://github.com/cytoscape/cytoscape.js/issues?q=milestone%3A3.7.3+is%3Aclosed">3.7.3</a></li>
<li><a href="https://github.com/cytoscape/cytoscape.js/issues?q=milestone%3A3.7.2+is%3Aclosed">3.7.2</a></li>
<li><a href="https://github.com/cytoscape/cytoscape.js/issues?q=milestone%3A3.7.1+is%3Aclosed">3.7.1</a></li>
<li><a href="https://github.com/cytoscape/cytoscape.js/issues?q=milestone%3A3.7.0+is%3Aclosed">3.7.0</a></li>
</ul>
</li>
<li>3.6<ul>
<li><a href="https://github.com/cytoscape/cytoscape.js/issues?q=milestone%3A3.6.6+is%3Aclosed">3.6.6</a></li>
<li><a href="https://github.com/cytoscape/cytoscape.js/issues?q=milestone%3A3.6.5+is%3Aclosed">3.6.5</a></li>
<li><a href="https://github.com/cytoscape/cytoscape.js/issues?q=milestone%3A3.6.4+is%3Aclosed">3.6.4</a></li>
<li><a href="https://github.com/cytoscape/cytoscape.js/issues?q=milestone%3A3.6.3+is%3Aclosed">3.6.3</a></li>
Expand Down Expand Up @@ -13203,25 +13205,28 @@ <h2 id="style/background-image">Background image <a href="#style/background-imag
<li><p>Web fonts (e.g. WOFF, WOFF2) may not work within SVG <code>&lt;text&gt;</code> elements in some browsers. For best cross-browser compatibility, use native SVG versions of your icons — usually defined as <code>&lt;path&gt;</code> elements.</p>
</li>
<li><p>If you memoize function mappers to generate SVGs procedurally, you may want to have your function return an object like <code>{ svg, width, height }</code>. This allows you to use the dimensions of the image for other style properties, like node width and height. E.g.:</p>
<pre><code><span class="hljs-keyword">var</span> makeSvg = memoize( <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(ele)</span></span>{
<span class="hljs-comment">// impl...</span>

<span class="hljs-keyword">return</span> { svg: s, width: w, height: h };
} );
</code></pre></li>
</ul>
<p>// …</p>
<p>// init stylesheet
style: [
{
selector: ‘node’,
style: {</p>
<pre><code> <span class="hljs-string">'background-image'</span>: <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(ele)</span></span>{ <span class="hljs-keyword">return</span> makeSvg(ele).svg; },
<span class="hljs-string">'width'</span>: <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(ele)</span></span>{ <span class="hljs-keyword">return</span> makeSvg(ele).width; },
<span class="hljs-string">'height'</span>: <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(ele)</span></span>{ <span class="hljs-keyword">return</span> makeSvg(ele).height; }</code></pre><p> }
}
]
```</p>
<pre><code><span class="hljs-keyword">var</span> makeSvg = memoize(<span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(ele)</span></span>{
<span class="hljs-comment">// impl...</span>

<span class="hljs-keyword">return</span> { svg: s, width: w, height: h };
});
<span class="hljs-comment">//</span>
<span class="hljs-comment">// ...</span>
<span class="hljs-comment">//</span>
<span class="hljs-comment">// init stylesheet</span>
<span class="hljs-keyword">var</span> options = {
style: [
{
selector: <span class="hljs-string">'node'</span>,
style: {
<span class="hljs-string">'background-image'</span>: <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(ele)</span></span>{ <span class="hljs-keyword">return</span> makeSvg(ele).svg; },
<span class="hljs-string">'width'</span>: <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(ele)</span></span>{ <span class="hljs-keyword">return</span> makeSvg(ele).width; },
<span class="hljs-string">'height'</span>: <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(ele)</span></span>{ <span class="hljs-keyword">return</span> makeSvg(ele).height; }
}
}
]
};</code></pre></li>
</ul>
</li>
</ul>
</li>
Expand Down Expand Up @@ -13262,7 +13267,7 @@ <h2 id="style/background-image">Background image <a href="#style/background-imag
'https://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Pigeon_silhouette_<span class="hljs-number">4874</span>.svg/<span class="hljs-number">1000</span>px-Pigeon_silhouette_<span class="hljs-number">4874</span>.svg.png'
],
'background-fit': 'cover cover',
`background-image-opacity`: <span class="hljs-number">0.5</span>
'background-image-opacity': <span class="hljs-number">0.5</span>
}</code></pre><h2 id="style/pie-chart-background">Pie chart background <a href="#style/pie-chart-background"><span class="fa fa-bookmark"></span></a></h2>
<p>These properties allow you to create pie chart backgrounds on nodes (<a href="demos/pie-style">demo</a>). Note that 16 slices maximum are supported per node, so in the properties <code>1 &lt;= i &lt;= 16</code>. Of course, you must specify a numerical value for each property in place of <code>i</code>. Each nonzero sized slice is placed in order of <code>i</code>, starting from the 12 o’clock position and working clockwise.</p>
<p>You may find it useful to reserve a number to a particular colour for all nodes in your stylesheet. Then you can specify values for <code>pie-i-background-size</code> accordingly for each node via a <a href="#style/mappers">mapper</a>. This would allow you to create consistently coloured pie charts in each node of the graph based on element data.</p>
Expand Down
2 changes: 1 addition & 1 deletion documentation/js/cytoscape.min.js

Large diffs are not rendered by default.

0 comments on commit bd98fcb

Please sign in to comment.