Skip to main content

Interface: SurroundingRectangleOptions

Defined in: src/mobjects/geometry/ShapeMatchers.ts:154

Options for creating a SurroundingRectangle

Properties​

buff?​

optional buff: number

Defined in: src/mobjects/geometry/ShapeMatchers.ts:156

Padding around the mobject. Default: 0.2


color?​

optional color: string

Defined in: src/mobjects/geometry/ShapeMatchers.ts:158

Stroke color. Default: YELLOW


cornerRadius?​

optional cornerRadius: number

Defined in: src/mobjects/geometry/ShapeMatchers.ts:160

Corner radius for rounded corners. Default: 0 (sharp corners)


fillOpacity?​

optional fillOpacity: number

Defined in: src/mobjects/geometry/ShapeMatchers.ts:164

Fill opacity. Default: 0 (no fill)


strokeWidth?​

optional strokeWidth: number

Defined in: src/mobjects/geometry/ShapeMatchers.ts:162

Stroke width. Default: 4 (Manim's default)