Skip to main content

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​

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​

Source: packages/core/src/draw/describe.ts:220