# 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

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

## Properties

### colour

```ts
readonly colour: PaletteSlot;
```

The palette slot the shape is drawn in.

### dash

```ts
readonly dash: LineDash;
```

The dashing of the outline or line.

### fillOpacity

```ts
readonly fillOpacity: number;
```

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

### pattern

```ts
readonly pattern: FillPattern;
```

The hatching over a polygon, or `none`.

### width

```ts
readonly width: number;
```

The outline or line width in pixels.

## See also

- [`PaletteSlot`](https://docs.mapcairn.com/api/core/PaletteSlot.md)
- [`LineDash`](https://docs.mapcairn.com/api/core/LineDash.md)
- [`FillPattern`](https://docs.mapcairn.com/api/core/FillPattern.md)

Source: [packages/core/src/layers/shapeStyle.ts:28](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/shapeStyle.ts#L28)
