d3-geo-polygon icon indicating copy to clipboard operation
d3-geo-polygon copied to clipboard

cut not clip

Open Fil opened this issue 7 years ago • 1 comments

Can we use this to cut (instead of clipping) to the polygon.

Would be useful to avoid disappearing points that are just on the edge of the polygon in polyhedral projections. See https://github.com/d3/d3-geo-projection/pull/132#issuecomment-367648819

Fil avatar Feb 22 '18 11:02 Fil

Proposed API:

  • clip.clipPoints(false) would not clip the points only lines and polygons.

or:

  • clip.pointTolerance(epsilon) keep points close to the edge (default: epsilon)

🤔

Fil avatar Feb 23 '18 22:02 Fil