Skip to main content

ShapeMarks

Marks a class can carry beside its colour. Each is a second signal that survives colour blindness and a greyscale print.

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

Signature​

import type { ShapeMarks } from "@mapcairn/core";

interface ShapeMarks

Properties​

dash​

readonly dash?: LineDash;

Dashing of a line, or of a polygon's outline. Defaults to the style's dash.

pattern​

readonly pattern?: FillPattern;

Hatching drawn over a polygon's fill. Defaults to solid (none).

width​

readonly width?: number;

Line or outline width in pixels, 0.5 to 12. Defaults to the style's width.

See also​

Source: packages/core/src/layers/definition.ts:383