Skip to main content

Interface: InsetPanelOptions

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

Properties​

anchor?​

optional anchor: AnchorTarget

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

Where the connectors point. No connectors when omitted.


anchorLocal?​

optional anchorLocal: Vector3Tuple

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

A point in the anchor mobject's local frame. Default: its centre


clip?​

optional clip: boolean

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

Clip the content to the box with a stencil mask. Default: false, because the content is already scaled to fit, and a mask currently hides the Line2 strokes of masked VMobjects (lipid tails of a Membrane vanish).


color?​

optional color: string

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

Frame, connector and title colour. Default: derived from the background


content?​

optional content: Mobject[]

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

2D mobjects shown in the box, scaled to fit and centred.


fillColor?​

optional fillColor: string

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

Box fill. Default: the scene background


fontFamily?​

optional fontFamily: string

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

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


fontSize?​

optional fontSize: number

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

Title font size (pt). Default: 15 pt at frame height 8


height?​

optional height: number

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

Box height (frame units). Default: 30% of the frame height


padding?​

optional padding: number

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

Inner padding around the content (frame units). Default: 6% of the box height


position?​

optional position: [number, number]

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

Box centre in frame units. Default: upper right of the frame


scene​

scene: AnnotationScene

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

Host scene (ThreeDScene for a 3D anchor).


title?​

optional title: string

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

Title above the box. Default: 'Close-up'; '' for none


width?​

optional width: number

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

Box width (frame units). Default: 38% of the frame width