Author: clopes
Date: 2011-08-03 10:40:53 -0700 (Wed, 03 Aug 2011)
New Revision: 26364
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/ExternalObjectConverter.as
Log:
Added width/height properties to JS Node object.
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/ExternalObjectConverter.as
===================================================================
---
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/ExternalObjectConverter.as
2011-08-03 15:49:47 UTC (rev 26363)
+++
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/ExternalObjectConverter.as
2011-08-03 17:40:53 UTC (rev 26364)
@@ -244,7 +244,9 @@
var n:NodeSprite = NodeSprite(ds);
obj.group = Groups.NODES;
obj.shape = n.shape;
- obj.size = n.height;
+ obj.size = Math.max(n.width, n.height);
+ obj.width = n.width;
+ obj.height = n.height;
obj.color = n.props.transparent ? "transparent" :
Utils.rgbColorAsString(n.fillColor);
obj.borderColor = Utils.rgbColorAsString(n.lineColor);
obj.borderWidth = n.lineWidth;
--
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.