Skip to main content

Class: ExplainerTour

Defined in: src/mobjects/annotation/ExplainerTour.ts:177

Extended by​

Constructors​

Constructor​

new ExplainerTour(scene, options): ExplainerTour

Defined in: src/mobjects/annotation/ExplainerTour.ts:186

Parameters​

scene​

ThreeDScene

options​

ExplainerTourOptions = {}

Returns​

ExplainerTour

Properties​

card​

readonly card: CaptionCard

Defined in: src/mobjects/annotation/ExplainerTour.ts:179


scene​

readonly scene: ThreeDScene

Defined in: src/mobjects/annotation/ExplainerTour.ts:178

Methods​

annotationAnimations()​

annotationAnimations(stop): Animation<Mobject>[]

Defined in: src/mobjects/annotation/ExplainerTour.ts:319

Step 3: build the stop's emphasis, callouts and inset and return their entry animations.

Parameters​

stop​

TourStop

Returns​

Animation<Mobject>[]


captionFor()​

captionFor(stop): CaptionContent

Defined in: src/mobjects/annotation/ExplainerTour.ts:257

The caption of a stop (undefined = keep the current one).

Parameters​

stop​

TourStop

Returns​

CaptionContent


dispose()​

dispose(): void

Defined in: src/mobjects/annotation/ExplainerTour.ts:353

Stop every annotation the tour created from following its anchor. Call it when the scene (and any Player timeline) is done.

Returns​

void


emphasisAnimation()​

emphasisAnimation(stop): Animation<Mobject>

Defined in: src/mobjects/annotation/ExplainerTour.ts:309

Emphasis on the target ('indicate' or 'ring'), or null.

Parameters​

stop​

TourStop

Returns​

Animation<Mobject>


enterAnimations()​

enterAnimations(stop): Animation<Mobject>[]

Defined in: src/mobjects/annotation/ExplainerTour.ts:276

Step 1: dim, camera move and caption swap, to play in parallel.

Parameters​

stop​

TourStop

Returns​

Animation<Mobject>[]


exitAnnotations()​

exitAnnotations(): Animation<Mobject>[]

Defined in: src/mobjects/annotation/ExplainerTour.ts:360

Step 6: fade the live callouts, inset and rings out.

Returns​

Animation<Mobject>[]


finish()​

finish(): Promise<void>

Defined in: src/mobjects/annotation/ExplainerTour.ts:241

Fade the caption, the annotations and the dim away.

Returns​

Promise<void>


framingFor()​

framingFor(stop): CameraFocusOptions

Defined in: src/mobjects/annotation/ExplainerTour.ts:251

The camera framing of a stop: tour default < target default < stop.

Parameters​

stop​

TourStop

Returns​

CameraFocusOptions


playStop()​

playStop(stop): Promise<void>

Defined in: src/mobjects/annotation/ExplainerTour.ts:206

Play one stop: the composition described in the class comment.

A narration callback runs in parallel with the stop's animations. If it rejects, or an animation or onEnter rejects, the returned promise rejects with that error (an animation error first, since it comes first in the stop). A narration error after an animation error is logged.

Parameters​

stop​

TourStop

Returns​

Promise<void>


resolveAnchor()​

resolveAnchor(stop, anchor): object

Defined in: src/mobjects/annotation/ExplainerTour.ts:263

Resolve a callout/inset anchor: a name goes through target.getAnchor().

Parameters​

stop​

TourStop

anchor​

string | AnchorTarget

Returns​

object

anchor​

anchor: AnchorTarget

local?​

optional local: Vector3Tuple


revealSteps()​

revealSteps(stop): Animation<Mobject>[]

Defined in: src/mobjects/annotation/ExplainerTour.ts:301

Step 2: one animation per remaining caption row.

Parameters​

stop​

TourStop

Returns​

Animation<Mobject>[]


run()​

run(stops): Promise<void>

Defined in: src/mobjects/annotation/ExplainerTour.ts:194

Play every stop in order.

Parameters​

stops​

TourStop[]

Returns​

Promise<void>