Skip to main content

SurfaceAction

An event that may change which surface is open.

This is a type alias exported by @mapcairn/core, checked against version 0.2.0.

Signature​

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

type SurfaceAction = {
readonly type: "openSheet";
readonly section: SheetSection;
} | {
readonly type: "closeSurface";
} | {
readonly type: "openSearch";
} | {
readonly type: "startMeasure";
} | {
readonly type: "stopMeasure";
} | {
readonly type: "startDraw";
} | {
readonly type: "stopDraw";
} | {
readonly type: "startDirections";
} | {
readonly type: "stopDirections";
} | {
readonly type: "dropPin";
} | {
readonly type: "clearPin";
} | {
readonly type: "setDetent";
readonly detent: SheetDetent;
} | {
readonly type: "escape";
} | {
readonly type: "blurSearch";
};

See also​

Source: packages/core/src/surface/surface.ts:94