Skip to main content

Interface: BubbleOptions

Defined in: src/mobjects/bubble/BubbleBase.ts:10

Options shared by every bubble.

Extended by​

Properties​

color?​

optional color: string

Defined in: src/mobjects/bubble/BubbleBase.ts:16

Stroke color of the outline. Default: white


content​

content: Mobject

Defined in: src/mobjects/bubble/BubbleBase.ts:12

The mobject shown inside the bubble (Text, MathTex, any Mobject). Required.


fillColor?​

optional fillColor: string

Defined in: src/mobjects/bubble/BubbleBase.ts:18

Fill color of the body and tail. Default: black


fillOpacity?​

optional fillOpacity: number

Defined in: src/mobjects/bubble/BubbleBase.ts:20

Fill opacity from 0 to 1. Default: 1


padding?​

optional padding: number

Defined in: src/mobjects/bubble/BubbleBase.ts:14

Space between the content and the body edge. Default: 0.3


pointAt?​

optional pointAt: Vector3Tuple

Defined in: src/mobjects/bubble/BubbleBase.ts:27

World-space point the tail aims at. The tail tip lands on this point. Takes priority over tailDirection.


strokeWidth?​

optional strokeWidth: number

Defined in: src/mobjects/bubble/BubbleBase.ts:22

Stroke width in pixels. Default: 4


tailDirection?​

optional tailDirection: Vector3Tuple

Defined in: src/mobjects/bubble/BubbleBase.ts:29

Direction the tail leaves the body. Default: [-1, -1, 0] (down left)