Skip to main content

shapeLabel

A name for a shape of kind, such as "Polygon 2", in the words of catalogue (the shipped English when none is given). serial counts shapes of that kind from 1.

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

Signature​

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

function shapeLabel(kind: DrawKind, serial: number, catalogue?: Pick<MessageCatalogue, "t">): string;

Parameters​

  • kind (DrawKind)
  • serial (number)
  • catalogue? (Pick<MessageCatalogue, "t">)

Returns​

string

See also​

Source: packages/core/src/draw/shape.ts:49