Skip to main content

Interface: SpeechBubbleOptions

Defined in: src/mobjects/bubble/SpeechBubble.ts:7

Options shared by every bubble.

Extends​

Properties​

color?​

optional color: string

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

Stroke color of the outline. Default: white

Inherited from​

BubbleOptions.color


content​

content: Mobject

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

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

Inherited from​

BubbleOptions.content


cornerRadius?​

optional cornerRadius: number

Defined in: src/mobjects/bubble/SpeechBubble.ts:9

Corner radius of the body. Default: 0.25


fillColor?​

optional fillColor: string

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

Fill color of the body and tail. Default: black

Inherited from​

BubbleOptions.fillColor


fillOpacity?​

optional fillOpacity: number

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

Fill opacity from 0 to 1. Default: 1

Inherited from​

BubbleOptions.fillOpacity


padding?​

optional padding: number

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

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

Inherited from​

BubbleOptions.padding


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.

Inherited from​

BubbleOptions.pointAt


strokeWidth?​

optional strokeWidth: number

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

Stroke width in pixels. Default: 4

Inherited from​

BubbleOptions.strokeWidth


tailDirection?​

optional tailDirection: Vector3Tuple

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

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

Inherited from​

BubbleOptions.tailDirection


tailLength?​

optional tailLength: number

Defined in: src/mobjects/bubble/SpeechBubble.ts:11

Distance from the body edge to the tail tip when no pointAt is set. Default: 0.7


tailWidth?​

optional tailWidth: number

Defined in: src/mobjects/bubble/SpeechBubble.ts:13

Width of the tail where it meets the body. Default: 0.4