Skip to main content

shapeInputBounds

The box that holds every shape in inputs: each vertex, and the whole of a circle's outline, taking the short way across the antimeridian (so east may pass 180). Used to fit the map to what was imported.

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { shapeInputBounds } from "@mapcairn/core";

function shapeInputBounds(inputs: readonly DrawShapeInput[]): Bounds | undefined;

Parameters​

  • inputs (readonly DrawShapeInput[])

Returns​

Bounds | undefined: undefined when there is nothing to hold.

See also​

Source: packages/core/src/draw/import.ts:919