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);