Skip to main content

Interface: AnnotationScene

Defined in: src/mobjects/annotation/annotationStyle.ts:19

The scene surface an annotation uses. A ThreeDScene provides all of it; a plain Scene provides only the background and the 2D frame, and annotations then work in world coordinates with a static camera.

Properties​

backgroundColor​

readonly backgroundColor: object

Defined in: src/mobjects/annotation/annotationStyle.ts:20

getHexString()​

getHexString(): string

Returns​

string


camera?​

readonly optional camera: unknown

Defined in: src/mobjects/annotation/annotationStyle.ts:24

2D camera frame (plain Scene).


fixedInFrameSize?​

readonly optional fixedInFrameSize: object

Defined in: src/mobjects/annotation/annotationStyle.ts:22

HUD frame size (ThreeDScene).

height​

height: number

width​

width: number

Methods​

addBeforeRenderHook()?​

optional addBeforeRenderHook(hook): () => void

Defined in: src/mobjects/annotation/annotationStyle.ts:27

Parameters​

hook​

() => void

Returns​

(): void

Returns​

void


markFixedInFrame()?​

optional markFixedInFrame(...mobjects): unknown

Defined in: src/mobjects/annotation/annotationStyle.ts:25

Parameters​

mobjects​

...Mobject[]

Returns​

unknown


projectToFrame()?​

optional projectToFrame(point): Vector3Tuple

Defined in: src/mobjects/annotation/annotationStyle.ts:26

Parameters​

point​

Vector3Tuple

Returns​

Vector3Tuple