Skip to main content

Class: CellTour

Defined in: src/mobjects/biology/cell3d/CellTour.ts:45

Extends​

Constructors​

Constructor​

new CellTour(scene, cell, options): CellTour

Defined in: src/mobjects/biology/cell3d/CellTour.ts:52

Parameters​

scene​

ThreeDScene

cell​

Cell3D

options​

CellTourOptions = {}

Returns​

CellTour

Overrides​

ExplainerTour.constructor

Properties​

card​

readonly card: CaptionCard

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

Inherited from​

ExplainerTour.card


cell​

readonly cell: Cell3D

Defined in: src/mobjects/biology/cell3d/CellTour.ts:46


scene​

readonly scene: ThreeDScene

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

Inherited from​

ExplainerTour.scene

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>[]

Inherited from​

ExplainerTour.annotationAnimations


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

Inherited from​

ExplainerTour.captionFor


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

Inherited from​

ExplainerTour.dispose


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>

Inherited from​

ExplainerTour.emphasisAnimation


enterAnimations()​

enterAnimations(stop): Animation<Mobject>[]

Defined in: src/mobjects/biology/cell3d/CellTour.ts:62

The tour's enter animations, plus the crowd clearing round the stop target.

Parameters​

stop​

TourStop

Returns​

Animation<Mobject>[]

Overrides​

ExplainerTour.enterAnimations


exitAnnotations()​

exitAnnotations(): Animation<Mobject>[]

Defined in: src/mobjects/biology/cell3d/CellTour.ts:102

The exit animations; in finish also the crowd's return.

Returns​

Animation<Mobject>[]

Overrides​

ExplainerTour.exitAnnotations


finish()​

finish(): Promise<void>

Defined in: src/mobjects/biology/cell3d/CellTour.ts:92

Fade the annotations, the dim and the caption away, and bring the crowd back.

Returns​

Promise<void>

Overrides​

ExplainerTour.finish


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

Inherited from​

ExplainerTour.framingFor


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>

Inherited from​

ExplainerTour.playStop


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

Inherited from​

ExplainerTour.resolveAnchor


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>[]

Inherited from​

ExplainerTour.revealSteps


run()​

run(stops): Promise<void>

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

Play every stop in order.

Parameters​

stops​

TourStop[]

Returns​

Promise<void>

Inherited from​

ExplainerTour.run