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
options
ExplainerTourOptions = {}
Returns
ExplainerTour
Properties
card
readonlycard:CaptionCard
Defined in: src/mobjects/annotation/ExplainerTour.ts:179
scene
readonlyscene:ThreeDScene
Defined in: src/mobjects/annotation/ExplainerTour.ts:178
Methods
annotationAnimations()
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
Returns
captionFor()
captionFor(
stop):CaptionContent
Defined in: src/mobjects/annotation/ExplainerTour.ts:257
The caption of a stop (undefined = keep the current one).
Parameters
stop
Returns
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()
Defined in: src/mobjects/annotation/ExplainerTour.ts:309
Emphasis on the target ('indicate' or 'ring'), or null.
Parameters
stop
Returns
enterAnimations()
Defined in: src/mobjects/annotation/ExplainerTour.ts:276
Step 1: dim, camera move and caption swap, to play in parallel.
Parameters
stop
Returns
exitAnnotations()
Defined in: src/mobjects/annotation/ExplainerTour.ts:360
Step 6: fade the live callouts, inset and rings out.
Returns
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
Returns
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
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
anchor
string | AnchorTarget
Returns
object
anchor
anchor:
AnchorTarget
local?
optionallocal:Vector3Tuple
revealSteps()
Defined in: src/mobjects/annotation/ExplainerTour.ts:301
Step 2: one animation per remaining caption row.
Parameters
stop
Returns
run()
run(
stops):Promise<void>
Defined in: src/mobjects/annotation/ExplainerTour.ts:194
Play every stop in order.
Parameters
stops
TourStop[]
Returns
Promise<void>