We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da342ed commit 76c4bbcCopy full SHA for 76c4bbc
src/core.js
@@ -955,7 +955,7 @@ var joint = {
955
var i = 0;
956
if (value) {
957
if (value < 0) value *= -1;
958
- if (precision) value = d3.round(value, this.precision(value, precision));
+ if (precision) value = this.round(value, this.precision(value, precision));
959
i = 1 + Math.floor(1e-12 + Math.log(value) / Math.LN10);
960
i = Math.max(-24, Math.min(24, Math.floor((i <= 0 ? i + 1 : i - 1) / 3) * 3));
961
}
0 commit comments