d3 / d3-polygon

Geometric operations for two-dimensional polygons.
https://d3js.org/d3-polygon
ISC License
97 stars 25 forks source link

Rendering? #3

Open mbostock opened 8 years ago

mbostock commented 8 years ago

Although it’s pretty trivial to take a polygon and render it to a Canvas 2D context or an SVG path string, I wonder if it would be beneficial to make some explicit support for rendering in this package. (Related d3/d3-hexbin#1.) An interesting use case to consider is how to render the output of d3-voronoi.

Fil commented 4 years ago

Easy enough to do, but do we want the dependency on d3-path?

& I'm so used to d3.geoPath, I don't know how we can beat this.