# DrawShape

One drawn shape. A circle keeps its centre as its only vertex and its
radius in metres; every other kind is its vertices in order, and a polygon
closes itself from the last vertex back to the first.

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

## Signature

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

## Properties

### done

```ts
readonly done: boolean;
```

False while the shape is still being drawn. At most one shape is unfinished.

### id

```ts
readonly id: string;
```

Stable for the life of the shape, for example `shape-3`.

### kind

```ts
readonly kind: DrawKind;
```

Whether the shape is a point, line, polygon or circle.

### label

```ts
readonly label: string;
```

A name for lists and announcements, for example "Polygon 2".

### radiusMetres

```ts
readonly radiusMetres?: number;
```

A circle's radius in metres. Absent until the second tap of a circle.

### vertices

```ts
readonly vertices: readonly LatLng[];
```

The shape's positions, in order.

## See also

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

Source: [packages/core/src/draw/types.ts:13](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/draw/types.ts#L13)
