Skip to main content

Type Alias: TextViewOptions

TextViewOptions = ViewOptions & object

Defined in: src/ui/components/TextView.ts:45

Type Declaration

anchorX?

optional anchorX: number | "left" | "center" | "right" | `${number}%`

anchorY?

optional anchorY: number | "top" | "top-baseline" | "top-cap" | "top-ex" | "middle" | "bottom-baseline" | "bottom" | `${number}%`

font?

optional font: string

fontColor?

optional fontColor: string | number

fontSize?

optional fontSize: number

fontSizeDp?

optional fontSizeDp: number

Font size in dp. This will be scale up so it's a consistent size in world coordinates.

imageOffsetX?

optional imageOffsetX: number

imageOffsetY?

optional imageOffsetY: number

imageOverlay?

optional imageOverlay: string

maxWidth?

optional maxWidth: number

mode?

optional mode: "fitWidth" | "center"

text?

optional text: string

textAlign?

optional textAlign: "left" | "center" | "right"

useSDFText?

optional useSDFText: boolean