# ScaleBarInput

What the scale bar needs to know.

This is an interface exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { ScaleBarInput } from "@mapcairn/core";
 
interface ScaleBarInput
```

## Properties

### maxWidthPx

```ts
readonly maxWidthPx: number;
```

The widest the bar may be, in CSS pixels.

### messages

```ts
readonly messages: MessageCatalogue;
```

The catalogue the visible label is written with: its digits, symbols and order.

### metresPerPixel

```ts
readonly metresPerPixel: number;
```

Ground resolution at the map centre, in metres per pixel.

### units

```ts
readonly units: UnitSystem;
```

Whether the bar is labelled in metric or imperial units.

## See also

- [`MessageCatalogue`](https://docs.mapcairn.com/api/core/MessageCatalogue.md)
- [`UnitSystem`](https://docs.mapcairn.com/api/core/UnitSystem.md)

Source: [packages/core/src/scale/scale.ts:21](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/scale/scale.ts#L21)
