Index: app/views/topology/utils.js |
=== modified file 'app/views/topology/utils.js' |
--- app/views/topology/utils.js 2013-06-11 17:17:51 +0000 |
+++ app/views/topology/utils.js 2013-06-13 16:15:01 +0000 |
@@ -42,7 +42,12 @@ |
@return {array} An x/y coordinate pair. |
*/ |
function _exteriorToHull(vertices, padding) { |
- var hull = d3.geom.hull(vertices); |
+ var hull; |
+ try { |
+ hull = d3.geom.hull(vertices); |
+ } catch (e) { |
+ hull = vertices; |
+ } |
// Find the node furthest from the origin in the set of hull vertices. |
var furthestDistance = 0, furthestVertex = [0, 0]; |