Skip to main content

Class: CaptionCard

Defined in: src/mobjects/annotation/CaptionCard.ts:137

Constructors​

Constructor​

new CaptionCard(options): CaptionCard

Defined in: src/mobjects/annotation/CaptionCard.ts:150

Parameters​

options​

CaptionCardOptions = {}

Returns​

CaptionCard

Properties​

palette​

readonly palette: AnnotationPalette

Defined in: src/mobjects/annotation/CaptionCard.ts:139


scene​

readonly scene: AnnotationScene

Defined in: src/mobjects/annotation/CaptionCard.ts:138

Methods​

getVisibleMobjects()​

getVisibleMobjects(): Mobject[]

Defined in: src/mobjects/annotation/CaptionCard.ts:172

Mobjects the card shows after the animations created so far.

Returns​

Mobject[]


hide()​

hide(): Animation

Defined in: src/mobjects/annotation/CaptionCard.ts:209

Fade the whole card out.

Returns​

Animation


revealAll()​

revealAll(): Animation

Defined in: src/mobjects/annotation/CaptionCard.ts:195

Reveal every remaining row together, staggered.

Returns​

Animation


revealNext()​

revealNext(): Animation

Defined in: src/mobjects/annotation/CaptionCard.ts:190

Reveal the next row (body, then footnote, or the next legend row).

Returns​

Animation


show()​

show(content, options): Animation

Defined in: src/mobjects/annotation/CaptionCard.ts:180

Bring the card in with content. Reveals the title row; pass reveal: 'all' to bring every row at once.

Parameters​

content​

CaptionContent

options​
reveal?​

"title" | "all"

Returns​

Animation


update()​

update(content, options): Animation

Defined in: src/mobjects/annotation/CaptionCard.ts:204

Swap to a new page: the old text fades out, the new title writes in. Same as show while a page is visible.

Parameters​

content​

CaptionContent

options​
reveal?​

"title" | "all"

Returns​

Animation