Skip to main content

Interface: TourStop

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

One stop of a tour.

Properties​

callouts?​

optional callouts: TourCallout[]

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

Callouts drawn after the camera arrives.


caption?​

optional caption: CaptionContent

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

Caption; null hides the card. Default: the target's getCaption(), else unchanged


dim?​

optional dim: boolean | FocusDimOptions

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

Focus dim: true (default when there is a target) dims all but keep; false restores everything; an options object tunes it.


emphasis?​

optional emphasis: "none" | Animation<Mobject> | "indicate" | "ring"

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

Emphasis on the target once the camera arrives: 'indicate' (the repo's Indicate, works on 3D meshes), 'ring' (a FocusRing drawn and un-drawn around it), 'none', or an animation of your own (for example an Indicate in the target's own colour). It plays with the callouts. Default: 'none'


framing?​

optional framing: CameraFocusOptions

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

Camera framing; merged over the target's getFocusFraming().


hold?​

optional hold: number

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

Extra seconds to hold after the narration. Default: 1


inset?​

optional inset: TourInset

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

Close-up inset drawn after the callouts.


keep?​

optional keep: Mobject[]

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

Mobjects kept in full colour. Default: [target] when it is a mobject


keepAnnotations?​

optional keepAnnotations: boolean

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

Keep this stop's callouts and inset on screen into the next stop. Default: false


narration?​

optional narration: number | () => Promise<void>

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

Narration: a duration in seconds, counted from the stop start (the runner subtracts the time of its own animations; onEnter time is not counted), or an async callback started at the stop start and awaited before the hold.


onEnter()?​

optional onEnter: (scene, stop, player) => Promise<void>

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

Author hook, after callouts and inset: play your own animations here. Play them through player (the scene, or a Player's recording proxy) so they land on the same timeline as the tour.

Parameters​

scene​

ThreeDScene

stop​

TourStop

player​

TourPlayer

Returns​

Promise<void>


reveal?​

optional reveal: "steps" | "all"

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

'steps' (default): title with the move, then each row; 'all': every row with the move.


target?​

optional target: Vector3Tuple | Mobject

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

What the camera frames. No camera move when omitted. A mobject that implements TourTarget supplies defaults.