Skip to main content

ShapeAppearance

How one polygon or line is drawn, worked out from its definition's style, without its words.

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

Signature​

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

interface ShapeAppearance

Properties​

colour​

readonly colour: PaletteSlot;

The palette slot the shape is drawn in.

dash​

readonly dash: LineDash;

The dashing of the outline or line.

fillOpacity​

readonly fillOpacity: number;

How opaque a polygon's fill is, 0 to 1.

pattern​

readonly pattern: FillPattern;

The hatching over a polygon, or none.

width​

readonly width: number;

The outline or line width in pixels.

See also​

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