Skip to main content

shapeClasses

Every class of a style in legend order: the categories and then the class for other values, the steps, the equal intervals worked out from the range, or the one fixed class. Defaults are filled in, so a legend, a map and a list read the same values. The words for an interval are written in catalogue's language.

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

Signature​

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

function shapeClasses(style: FeedShapeStyle, catalogue: MessageCatalogue): readonly ShapeLook[];

Parameters​

  • style (FeedShapeStyle)
  • catalogue (MessageCatalogue)

Returns​

readonly ShapeLook[]

See also​

Source: packages/core/src/layers/shapeStyle.ts:165