Skip to main content

Interface: CaptionCardOptions

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

Properties​

backgroundColor?​

optional backgroundColor: string

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

Background colour the palette derives from. Default: the scene background


backing?​

optional backing: "none" | "soft" | "panel"

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

Legibility backing behind the text: 'soft' (default) a translucent background-colour plate, no stroke; 'panel' a near-background panel with a thin stroke; 'none'.


bodySize?​

optional bodySize: number

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

Body size in points. Default: 0.6 x titleSize


corner?​

optional corner: CaptionCorner

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

Frame corner the card hugs. Default: 'bottom-left'


fontFamily?​

optional fontFamily: string

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

Font family. Default: the Text default (CMU Serif, manim style)


footnoteSize?​

optional footnoteSize: number

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

Footnote size in points. Default: 0.5 x titleSize


margin?​

optional margin: number

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

Distance from the frame edges (frame units). Default: 4% of the frame height


maxWidth?​

optional maxWidth: number

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

Max text width (frame units); the body wraps to it. Default: 62% of the frame width


scene?​

optional scene: AnnotationScene

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

Host scene. Gives the frame size, background and HUD pinning.


swatchStyle?​

optional swatchStyle: "square" | "underline"

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

Swatch shape. Default: 'square'


textColor?​

optional textColor: string

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

Primary text colour. Default: derived from the background


titleSize?​

optional titleSize: number

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

Title size in points. Default: scales with the frame (30 pt at height 8)