Mike Bostock

Results 344 issues of Mike Bostock

Shown here: http://bl.ocks.org/mbostock/10342273 http://bl.ocks.org/mbostock/10343037 http://bl.ocks.org/mbostock/10395901 Not sure if it’s totally useful, though.

idea

A way to limit the maximum instantaneous force (speed) of nodes. ```js function forceLimit(limit) { let nodes; function force() { for (const node of nodes) { const speed = Math.hypot(node.vx,...

idea

When this module was broken out for D3 3.x, we switched from position to velocity Verlet. I believe the idea was to avoid certain ordering effects and instabilities as a...

idea

In September 2014, I started work on a modular geographic projection pipeline that would allow you to compose geometric transformations during rendering. For example: * [Multiple Rotations](https://bl.ocks.org/mbostock/1de35c45f8718c678712) * [Back-Facing Hemisphere](https://bl.ocks.org/mbostock/721f6275d7471defd12d)...

idea

Currently you can configure the precision for longitude but not latitude. The latter is fixed at 90°: ```js x = graticuleX(y0, y1, 90); y = graticuleY(x0, x1, precision); X =...

idea

It’d be nice to have a method to create a copy of a projection with identical settings (that, or change projections to be immutable, and every method that modifies the...

idea

It’d be nice to be able to use d3.geoClipPolygon prior to rotation for clipping in geographic coordinates (as opposed to using rotated coordinates with *projection*.preclip, as is suitable for the...

idea

I often find myself wanting to *projection*.fitWidth (related #161), but then reserving 1px or 10px of margin around the fit object. There’s no easy way to do this currently, unlike...

idea

After you call *projection*.fitWidth, it’d be nice to have a method which computes the “natural height” of the projection. As it stands, I currently tend to do something like this:...

idea

I wonder if it would be faster to not reassign listener methods, since I expect that dynamically assigning methods makes it harder for the runtime to optimize.

idea