d3-geo
d3-geo copied to clipboard
projection.inset?
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 with projection.fitExtent.
inset can be passed before ( projection.inset(10).fitWidth(…) ) but could alternatively be an option of fitWidth:
projection.fitWidth(width, object, {inset: 10})
In terms of usability I'd love to have {type:Sphere} as the default, but this idea would seem to clash with that one.
closing due to inactivity (note that Plot has this shorthand)