Author: Christian Lopes
Date: 2011-05-02 14:22:33 -0700 (Mon, 02 May 2011)
New Revision: 24891
Modified:
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/layout/NodeLinkTreeLayout.as
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/layout/RadialTreeLayout.as
Log:
Fixed bug #2519: Radial and Tree layouts change node opacity
Modified:
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/layout/NodeLinkTreeLayout.as
===================================================================
---
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/layout/NodeLinkTreeLayout.as
2011-05-02 21:18:47 UTC (rev 24890)
+++
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/layout/NodeLinkTreeLayout.as
2011-05-02 21:22:33 UTC (rev 24891)
@@ -320,11 +320,11 @@
}
private function setVisibility(n:NodeSprite, o:Object,
visible:Boolean):void {
- o.alpha = visible ? 1.0 : 0.0;
+// o.alpha = visible ? 1.0 : 0.0;
o.mouseEnabled = visible;
if (_tree.parentEdge(n) != null) {
o = _t.$(_tree.parentEdge(n));
- o.alpha = visible ? 1.0 : 0.0;
+// o.alpha = visible ? 1.0 : 0.0;
o.mouseEnabled = visible;
}
Modified:
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/layout/RadialTreeLayout.as
===================================================================
---
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/layout/RadialTreeLayout.as
2011-05-02 21:18:47 UTC (rev 24890)
+++
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/layout/RadialTreeLayout.as
2011-05-02 21:22:33 UTC (rev 24891)
@@ -124,9 +124,9 @@
var o:Object = _t.$(n);
// collapse to inner radius
o.radius = o.h = o.v = radiusIncrement / 2;
- o.alpha = 0;
+// o.alpha = 0;
o.mouseEnabled = false;
- if (_tree.parentEdge(n) != null)
_t.$(_tree.parentEdge(n)).alpha = false;
+// if (_tree.parentEdge(n) != null)
_t.$(_tree.parentEdge(n)).alpha = false;
}
});
}
@@ -299,7 +299,7 @@
}
protected function update(n:NodeSprite, r:Number, a:Number, aw:Number,
v:Boolean):void {
- var o:Object = _t.$(n), alpha:Number = v ? 1 : 0;
+ var o:Object = _t.$(n);//, alpha:Number = v ? 1 : 0;
o.radius = r;
o.angle = a;
if (aw == 0) {
@@ -310,9 +310,9 @@
}
o.w = aw;
o.u = a - aw/2;
- o.alpha = alpha;
+// o.alpha = alpha;
o.mouseEnabled = v;
- if (_tree.parentEdge(n) != null) _t.$(_tree.parentEdge(n)).alpha =
alpha;
+// if (_tree.parentEdge(n) != null) _t.$(_tree.parentEdge(n)).alpha
= alpha;
}
protected function params(n:NodeSprite):Params {
--
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.