Skip to main content

Interface: TypstOptions

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

Properties​

color?​

optional color: string

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

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


fillOpacity?​

optional fillOpacity: number

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

Fill opacity for glyph interiors. Default: 1.


fontSize?​

optional fontSize: number

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

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


height?​

optional height: number

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

Explicit target height in world units. Overrides fontSize scaling.


position?​

optional position: Vector3Tuple

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

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


strokeWidth?​

optional strokeWidth: number

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

Stroke width for glyph outlines. Default: 0.00001.


typst​

typst: string

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

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