Author: Christian Lopes
Date: 2011-05-02 12:49:11 -0700 (Mon, 02 May 2011)
New Revision: 24888
Modified:
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/components/GraphVis.as
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/layout/ivis/layout/cose/CoSENode.as
Log:
Fixed bug #2518: Tree and Radial layouts not applied to disconnected components
Modified:
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/components/GraphVis.as
===================================================================
---
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/components/GraphVis.as
2011-05-02 19:27:38 UTC (rev 24887)
+++
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/components/GraphVis.as
2011-05-02 19:49:11 UTC (rev 24888)
@@ -321,7 +321,7 @@
var d:Data = _dataList[i];
if (d.nodes.length > 1) {
var rect:Rectangle =
GraphUtils.calculateGraphDimension(d.nodes, _layoutName, _style);
- var root:NodeSprite = Layouts.rootNode(data);
+ var root:NodeSprite = Layouts.rootNode(d);
layout = createLayout(layoutObj, d, rect, root);
_appliedLayouts.push(layout);
Modified:
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/layout/ivis/layout/cose/CoSENode.as
===================================================================
---
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/layout/ivis/layout/cose/CoSENode.as
2011-05-02 19:27:38 UTC (rev 24887)
+++
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/layout/ivis/layout/cose/CoSENode.as
2011-05-02 19:49:11 UTC (rev 24888)
@@ -10,8 +10,7 @@
import org.cytoscapeweb.view.layout.ivis.layout.fd.FDLayoutNode;
import org.cytoscapeweb.view.layout.ivis.util.DimensionD;
import org.cytoscapeweb.view.layout.ivis.util.IMath;
-import org.cytoscapeweb.view.layout.ivis.util.PointD;
-import org.cytoscapeweb.view.layout.ivis.util.printf;
+import org.cytoscapeweb.view.layout.ivis.util.PointD;
//import org.gvt.model.NodeModel;
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.