# announceDrawEvent

The message for what the last draw action did, or null when it needs none
(a mode change is visible on the switch itself). Wording is read from the
shapes as they are now, so a move reports the new measures.

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

## Signature

```ts
import { announceDrawEvent } from "@mapcairn/core";
 
function announceDrawEvent(event: DrawEvent | null, shapes: readonly DrawShape[], units: UnitSystem): Message | null;
```

## Parameters

- `event` (`DrawEvent | null`)
- `shapes` (`readonly DrawShape[]`)
- `units` (`UnitSystem`)

## Returns

`Message | null`

## See also

- [`DrawEvent`](https://docs.mapcairn.com/api/core/DrawEvent.md)
- [`DrawShape`](https://docs.mapcairn.com/api/core/DrawShape.md)
- [`UnitSystem`](https://docs.mapcairn.com/api/core/UnitSystem.md)
- [`Message`](https://docs.mapcairn.com/api/core/Message-typealias.md)

Source: [packages/core/src/draw/describe.ts:220](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/draw/describe.ts#L220)
