Skip to content

Commit

Permalink
:visible filter for both nodes and edges
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsfy committed Jun 29, 2016
1 parent 210ebc0 commit 07e3e55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cytoscape-clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@
var id = _id ? _id : getItemId();
eles.unselect();
var descs = eles.nodes().descendants();
var nodes = eles.nodes().union(descs);
var edges = nodes.edgesWith(nodes);
var nodes = eles.nodes().union(descs).filter(":visible");
var edges = nodes.edgesWith(nodes).filter(":visible");

clipboard[id] = { nodes: nodes.jsons(), edges: edges.jsons() };
return id;
Expand Down

0 comments on commit 07e3e55

Please sign in to comment.