Skip to content

Commit 2ecf8f3

Browse files
committed
Update some TODOs.
1 parent e3b7823 commit 2ecf8f3

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/geo/centroid.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
d3.geo.centroid = function(object) {
22
d3_geo_centroidDimension = d3_geo_centroidW = d3_geo_centroidX = d3_geo_centroidY = d3_geo_centroidZ = 0;
33
d3.geo.stream(object, d3_geo_centroid);
4-
// TODO mixed geometries
54
var m;
65
if (d3_geo_centroidW &&
76
Math.abs(m = Math.sqrt(d3_geo_centroidX * d3_geo_centroidX + d3_geo_centroidY * d3_geo_centroidY + d3_geo_centroidZ * d3_geo_centroidZ)) > ε) {

src/geo/path-centroid.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// TODO Unify this code with d3.geom.polygon centroid?
22
// TODO Enforce positive area for exterior, negative area for interior?
3-
// TODO ignore lower dimensions.
43

54
var d3_geo_pathCentroid = {
65
point: d3_geo_pathCentroidPoint,

src/geo/path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// TODO fallback for projections that don't implement stream? (or fix albersUsa?)
1+
// TODO fallback for projections that don't implement stream?
22
// TODO cache pathBuffer / pathContext across invocations?
33
// TODO better encapsulation for d3_geo_pathArea; move to area.js
44
// TODO better encapsulation for d3_geo_pathCentroid; move to centroid.js

0 commit comments

Comments
 (0)