Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1217)

Unified Diff: app/views/topology/utils.js

Issue 10241043: Removal of right charm search panel
Patch Set: Removal of right charm search panel Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/views/charm-panel.js ('k') | lib/views/stylesheet.less » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
« no previous file with comments | « app/views/charm-panel.js ('k') | lib/views/stylesheet.less » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b