Skip to main content

Interface: TypstOptions

Defined in: src/mobjects/text/Typst.ts:38

Properties​

color?​

optional color: string

Defined in: src/mobjects/text/Typst.ts:42

Color as CSS color string. Default: WHITE ('#ffffff').


fillOpacity?​

optional fillOpacity: number

Defined in: src/mobjects/text/Typst.ts:50

Fill opacity for glyph interiors. Default: 1.


fontSize?​

optional fontSize: number

Defined in: src/mobjects/text/Typst.ts:44

Scale factor (1 = standard size). Default: DEFAULT_FONT_SIZE_PT.


height?​

optional height: number

Defined in: src/mobjects/text/Typst.ts:52

Explicit target height in world units. Overrides fontSize scaling.


position?​

optional position: Vector3Tuple

Defined in: src/mobjects/text/Typst.ts:46

Position in 3D space. Default: [0, 0, 0].


strokeWidth?​

optional strokeWidth: number

Defined in: src/mobjects/text/Typst.ts:48

Stroke width for glyph outlines. Default: 0.00001.


typst​

typst: string

Defined in: src/mobjects/text/Typst.ts:40

Typst markup to compile. For MathTypst, math-mode content without $.