Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
jflow
Commits
961276a1
Commit
961276a1
authored
Dec 04, 2014
by
Philippe Bardou
Browse files
Input directory icon for graph
parent
33743417
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/js/cytoscape.js
View file @
961276a1
...
...
@@ -13576,6 +13576,42 @@ var cytoscape;
context.lineWidth = tmpLineWidth;
context.font = tmpFont;
}
else if(node._private.data.type == 'inputdirectory') {
var tmpLineWidth = context.lineWidth;
context.beginPath();
context.lineWidth = 2;
context.lineCap = 'round';
context.strokeStyle = 'white';
context.shadowOffsetX = 0;
context.shadowOffsetY = 0;
context.shadowBlur = 8;
context.shadowColor = "#353535";
context.arc( 0, 0, 30, 0, 2 * Math.PI, false);
context.stroke();
context.beginPath();
context.shadowOffsetX = 2;
context.shadowOffsetY = 3;
context.moveTo( 11.5, -6);
context.lineTo( 11.5, 9);
context.lineTo(-11.5, 9);
context.lineTo(-11.5, -9);
context.lineTo( -2,-9);
context.lineTo( 2, -6);
context.lineTo( 11.5, -6);
context.stroke();
context.closePath();
context.lineWidth = 0.75;
context.beginPath();
context.moveTo( -8.5,-6);
context.lineTo( -3.5,-6);
context.stroke();
context.closePath();
context.shadowOffsetX = 0;
context.shadowOffsetY = 0;
context.shadowBlur = 0;
}
else if(node._private.data.type == 'inputfile') {
var tmpLineWidth = context.lineWidth;
context.beginPath();
...
...
@@ -13740,7 +13776,6 @@ var cytoscape;
}
context.lineTo(x, y);
}*/
context.arc( 2, -9, 8, 0.00, 2.00 * Math.PI, false);
context.arc( 2, -9, 10.4, 0.00, 0.03 * Math.PI, false);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment