Function: weightedLayout()
ts
function weightedLayout(
options,
weights,
settings?
): WeightedLayoutResult;A layout for items of different importance: weights gives how many tiles each item spans (1 for ordinary items), and each heavier item gets a featured tile that big, where it falls in the items' reading order (see weightedFeatures). With fit, the tiles are sized so all the items fit. contentSlots and matchSlots on the result put each item in its own featured cell. Features already in options are kept, before the weighted ones.
Parameters
| Parameter | Type |
|---|---|
options | LayoutOptions |
weights | readonly number[] |
settings | WeightedLayoutOptions |