Skip to main content

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​

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

interface DrawSelection

Properties​

shapeId​

readonly shapeId: string;

The id of the selected shape.

vertex​

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