@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / UITextOptions
Type Alias: UITextOptions ​
ts
type UITextOptions = {
text?: string;
width?: number;
height?: number;
fontSize?: number;
fontWeight?: number;
color?: string;
align?: UiTextAlign;
valign?: UiTextVAlign;
lineHeight?: number;
padding?: number;
};Defined in: components/UIText.ts:7
Optional initializer for UITextComponent.
Properties ​
| Property | Type | Defined in |
|---|---|---|
text? | string | components/UIText.ts:8 |
width? | number | components/UIText.ts:9 |
height? | number | components/UIText.ts:10 |
fontSize? | number | components/UIText.ts:11 |
fontWeight? | number | components/UIText.ts:12 |
color? | string | components/UIText.ts:13 |
align? | UiTextAlign | components/UIText.ts:14 |
valign? | UiTextVAlign | components/UIText.ts:15 |
lineHeight? | number | components/UIText.ts:16 |
padding? | number | components/UIText.ts:17 |

