Skip to content

fitProjection

fitProjection<P>(projection, object, width, height): P

Defined in: geo/project.ts:16

Fit a d3 projection so object’s bounds fill a width x height viewport. Mutates + returns it.

P extends GeoProjection

P

GeoInput

number

number

P