Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Mar 10, 2021
1 parent 2cfd23a commit aa5d785
Show file tree
Hide file tree
Showing 4 changed files with 667 additions and 616 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"sideEffects": false,
"devDependencies": {
"d3-polygon": "1 - 2",
"eslint": "6",
"rollup": "1",
"rollup-plugin-terser": "5",
"eslint": "7",
"rollup": "2",
"rollup-plugin-terser": "7",
"tape": "4"
}
}
2 changes: 1 addition & 1 deletion test/arc-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ tape("arc().centroid(…) computes the midpoint of the center line of the arc",
var a = shape.arc(), round = function(x) { return Math.round(x * 1e6) / 1e6; };
test.deepEqual(a.centroid({innerRadius: 0, outerRadius: 100, startAngle: 0, endAngle: Math.PI}).map(round), [50, 0]);
test.deepEqual(a.centroid({innerRadius: 0, outerRadius: 100, startAngle: 0, endAngle: Math.PI / 2}).map(round), [35.355339, -35.355339]);
test.deepEqual(a.centroid({innerRadius: 50, outerRadius: 100, startAngle: 0, endAngle: -Math.PI}).map(round), [-75, 0]);
test.deepEqual(a.centroid({innerRadius: 50, outerRadius: 100, startAngle: 0, endAngle: -Math.PI}).map(round), [-75, -0]);
test.deepEqual(a.centroid({innerRadius: 50, outerRadius: 100, startAngle: 0, endAngle: -Math.PI / 2}).map(round), [-53.033009, -53.033009]);
test.end();
});
Expand Down
2 changes: 1 addition & 1 deletion test/pie-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ tape("pie().startAngle(θ₀).endAngle(θ₁).padAngle(δ)(data) restricts the p
test.deepEqual(shape.pie().startAngle(0).endAngle(-Math.PI).padAngle(Infinity)([1, 2, 3]), [
{data: 1, value: 1, index: 2, startAngle: -2.0943951023931953, endAngle: -3.1415926535897930, padAngle: 1.0471975511965976},
{data: 2, value: 2, index: 1, startAngle: -1.0471975511965976, endAngle: -2.0943951023931953, padAngle: 1.0471975511965976},
{data: 3, value: 3, index: 0, startAngle: -0.0000000000000000, endAngle: -1.0471975511965976, padAngle: 1.0471975511965976}
{data: 3, value: 3, index: 0, startAngle: 0.0000000000000000, endAngle: -1.0471975511965976, padAngle: 1.0471975511965976}
]);
test.end();
});
Expand Down
Loading

0 comments on commit aa5d785

Please sign in to comment.