# DrawSelection

What the current selection points at: a shape, and optionally one of its vertices.

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

## Signature

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

## Properties

### shapeId

```ts
readonly shapeId: string;
```

The id of the selected shape.

### vertex

```ts
readonly vertex: number | null;
```

The selected vertex, or null when the shape as a whole is selected.

Source: [packages/core/src/draw/types.ts:37](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/draw/types.ts#L37)
