Mike Bostock

Results 751 comments of Mike Bostock

Hey, thanks @jake-low! That looks promising. One thought I had is whether it’s worth designating the first projection in the list as the “primary” projection, and the others as “inset”...

Removing the yarn.lock (and node_,modules) and running `yarn` is equivalent to running `yarn upgrade`, FYI.

@Fil Good point about inverting transforms. If a *transform* only has a reference to its output *sink*, then there’s no way for it to encapsulate inversion… Hrm. @jrus That’s an...

I was able to implement multipass clipping using *projection*.preclip! See the geoPipeline here: https://observablehq.com/@d3/satellite-explorer

With the current implementation, making the delta/epsilon configurable wouldn’t do what you expect, assuming that you expect the configurable delta to mean the distance between the point and the line....

Have you seen this work by Jason Davies? https://www.jasondavies.com/maps/tile/

This part: > A line between two positions is a straight Cartesian line, the shortest line between those two points in the coordinate reference system (see Section 4). d3-geo and...

Hmm. We’d need to change all the parts of the [projection pipeline](https://github.com/d3/d3-geo/blob/master/src/projection/index.js#L49) to pass along *z* (transformRadians, preclip, projectResample, postclip), which is a bit of a pain, especially since it...

More precisely, the [geometry stream](https://github.com/d3/d3-geo/blob/master/README.md#streams) implemented by [*projection*.stream](https://github.com/d3/d3-geo/blob/master/README.md#projection_stream) accepts an arbitrary number of dimensions as input, but only observes and outputs the first two dimensions (*x* and *y*). You could...

I’ve for this assuming that it tests well in real-world usage (like rendering a rotating orthographic projection). But it’s also a fair amount of work (given the complexity of clipping),...