Skip to main content

Class: InsetPanel

Defined in: src/mobjects/annotation/InsetPanel.ts:79

Constructors​

Constructor​

new InsetPanel(options): InsetPanel

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

Parameters​

options​

InsetPanelOptions

Returns​

InsetPanel

Properties​

anchorDot​

readonly anchorDot: Dot

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


connectors​

readonly connectors: [Line, Line]

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


content​

readonly content: Group

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


frame​

readonly frame: Rectangle

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


scene​

readonly scene: AnnotationScene

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


title​

readonly title: Text

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

Methods​

create()​

create(options): Animation

Defined in: src/mobjects/annotation/InsetPanel.ts:235

Frame draws, title writes, connectors draw toward the anchor, content fades in.

Parameters​

options​
duration?​

number

Returns​

Animation


dispose()​

dispose(): void

Defined in: src/mobjects/annotation/InsetPanel.ts:259

Stop following the anchor.

Returns​

void


getMobjects()​

getMobjects(): Mobject[]

Defined in: src/mobjects/annotation/InsetPanel.ts:189

Every mobject of the panel.

Returns​

Mobject[]


layout()​

layout(): void

Defined in: src/mobjects/annotation/InsetPanel.ts:203

Re-project the anchor and run the connectors from the two box corners that bound the box as seen from the anchor (its silhouette corners).

Returns​

void


uncreate()​

uncreate(options): Animation

Defined in: src/mobjects/annotation/InsetPanel.ts:253

Fade every part out.

Parameters​

options​
duration?​

number

Returns​

Animation