Skip to main content

TourStep

One step of a tour, as data. The host writes the words.

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

Signature​

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

interface TourStep

Properties​

advance​

readonly advance: TourAdvance;

What the person does to finish the step.

heading​

readonly heading: DefinitionText;

A message key or plain text, read in the active language where the card and the announcement show it.

id​

readonly id: string;

A stable id, for the host's own wiring. Nothing in the SDK reads it.

opens​

readonly opens?: SheetSection;

Applies only when Map options is opened while this step is current: a step whose action is inside the sheet puts opens on the step that opens it, not on the step after. The section Map options opens on while the step is current, so the step's action is in view without a scroll. Basemap when left out.

side​

readonly side?: "start" | "end";

In the panel layout, which side the card sits against. Defaults to start.

target​

readonly target?: FocusTarget;

The registered control to ring while the step is current, if any.

text​

readonly text: DefinitionText;

As heading.

See also​

Source: packages/core/src/tour/tour.ts:35