1681-engine / ui / RichLayoutOptions
Interface: RichLayoutOptions ​
Defined in: src/ui/rich/richLayout.ts:25
Extended by ​
Properties ​
align? ​
ts
optional align?: RichAlign;Defined in: src/ui/rich/richLayout.ts:28
iconScale? ​
ts
optional iconScale?: number | "line";Defined in: src/ui/rich/richLayout.ts:35
'line' (default): an icon is as tall as its style's line — on a pixel-perfect layout the largest whole multiple of its frame that fits, never below 1×, so its texels stay square. A number: that scale, whatever the line.
lineSpacing? ​
ts
optional lineSpacing?: number;Defined in: src/ui/rich/richLayout.ts:30
Extra pixels between lines.
pixelPerfect? ​
ts
optional pixelPerfect?: boolean;Defined in: src/ui/rich/richLayout.ts:37
Whole-pixel positions and icon scales (a pixel-art game).
wrapWidth? ​
ts
optional wrapWidth?: number;Defined in: src/ui/rich/richLayout.ts:27
Wrap lines to this width; unset, lines break only at \n.