Commit a60d1d39 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix nan of label for arc

parent a82186e4
......@@ -1029,7 +1029,7 @@
y = c[1];
h = Math.sqrt(x * x + y * y);
// TODO: ratio should be an option?
ratio = (36 / radius > 0.375 ? 1.175 - 36 / radius : 0.8) * radius / h;
ratio = radius && h ? (36 / radius > 0.375 ? 1.175 - 36 / radius : 0.8) * radius / h : 0;
translate = "translate(" + (x * ratio) + ',' + (y * ratio) + ")";
}
return translate;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment