Skip to content

Commit 76c4bbc

Browse files
committed
fix typo in core: a leftover from d3 library
1 parent da342ed commit 76c4bbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ var joint = {
955955
var i = 0;
956956
if (value) {
957957
if (value < 0) value *= -1;
958-
if (precision) value = d3.round(value, this.precision(value, precision));
958+
if (precision) value = this.round(value, this.precision(value, precision));
959959
i = 1 + Math.floor(1e-12 + Math.log(value) / Math.LN10);
960960
i = Math.max(-24, Math.min(24, Math.floor((i <= 0 ? i + 1 : i - 1) / 3) * 3));
961961
}

0 commit comments

Comments
 (0)