Skip to content

Commit

Permalink
Linting and snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Hartmann committed Nov 21, 2020
1 parent 8b3daa1 commit c5d3f2f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
22 changes: 11 additions & 11 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"build/cytoscape.umd.js": {
"bundled": 934878,
"minified": 347609,
"gzipped": 108246
"bundled": 935262,
"minified": 347683,
"gzipped": 108259
},
"build/cytoscape.cjs.js": {
"bundled": 861803,
"minified": 366943,
"gzipped": 110633
"bundled": 862165,
"minified": 367017,
"gzipped": 110645
},
"build/cytoscape.esm.js": {
"bundled": 861630,
Expand All @@ -24,16 +24,16 @@
}
},
"build/cytoscape.esm.min.js": {
"bundled": 347414,
"minified": 346916,
"gzipped": 108074,
"bundled": 347488,
"minified": 346990,
"gzipped": 108086,
"treeshaked": {
"rollup": {
"code": 346408,
"code": 346482,
"import_statements": 0
},
"webpack": {
"code": 347698
"code": 347772
}
}
}
Expand Down
9 changes: 4 additions & 5 deletions src/extensions/renderer/canvas/drawing-nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ CRp.drawNode = function( context, node, shiftToOriginWithBb, drawLabel = true, s

context.translate( gx, gy );

if ( bgContainment === 'inside' ) {
if ( bgContainment === 'inside' ){
setupShapeColor( ghostOpacity * bgOpacity );
drawShape();
drawImages( effGhostOpacity );
Expand All @@ -275,7 +275,7 @@ CRp.drawNode = function( context, node, shiftToOriginWithBb, drawLabel = true, s
darken( effGhostOpacity );
}

if ( bgContainment === 'over' ) {
if ( bgContainment === 'over' ){
setupShapeColor( ghostOpacity * bgOpacity );
drawShape();
setupBorderColor( ghostOpacity * borderOpacity );
Expand All @@ -287,9 +287,8 @@ CRp.drawNode = function( context, node, shiftToOriginWithBb, drawLabel = true, s

context.translate( -gx, -gy );
}


if ( bgContainment === 'inside' ) {
if( bgContainment === 'inside' ){
setupShapeColor();
drawShape();
drawImages();
Expand All @@ -299,7 +298,7 @@ CRp.drawNode = function( context, node, shiftToOriginWithBb, drawLabel = true, s
darken();
}

if ( bgContainment === 'over' ) {
if( bgContainment === 'over' ){
setupShapeColor();
drawShape();
setupBorderColor();
Expand Down

0 comments on commit c5d3f2f

Please sign in to comment.