[canviz] r489 committed - fix bbRect and bbDiv for edges

1 view
Skip to first unread message

can...@googlecode.com

unread,
Sep 17, 2013, 1:55:28 AM9/17/13
to canviz-...@googlegroups.com
Revision: 489
Author: ryandesign.com
Date: Tue Sep 17 01:16:29 2013 UTC
Log: fix bbRect and bbDiv for edges

http://code.google.com/p/canviz/source/detail?r=489

Modified:
/canviz/trunk/src/Entity.js

=======================================
--- /canviz/trunk/src/Entity.js Sun Sep 15 10:54:56 2013 UTC
+++ /canviz/trunk/src/Entity.js Tue Sep 17 01:16:29 2013 UTC
@@ -26,7 +26,7 @@
Entity.prototype = {
constructor: Entity,
initBB: function () {
- var xy = this.getAttr('pos').split(',');
+ var xy = this.getAttr('pos').split(' ').pop().split(',');
var x = Number(xy[0]);
var y = Number(xy[1]);
this.bbRect = Rect(x, y, x, y);
Reply all
Reply to author
Forward
0 new messages