Skip to main content

DrawHistoryEntry

One undo step: the shapes and the selection as they were.

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

Signature​

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

interface DrawHistoryEntry

Properties​

selection​

readonly selection: DrawSelection | null;

The selection as it was.

shapes​

readonly shapes: readonly DrawShape[];

The shapes as they were.

See also​

Source: packages/core/src/draw/reducer.ts:72