Function: weightedFeatures()
ts
function weightedFeatures(
layout,
weights,
options?
): Feature[];Featured tiles for items of different importance. weights gives how many tiles each item should span (1 for an ordinary item; rounded); each item over 1 gets a feature of that many merged tiles, for it (Feature.item), centerd where its tiles would be if every item took its share of layout's cells in order (so the reading order of the items is kept). Bigger features come first, so they get room. layout should have no features of its own. See weightedLayout for the whole job.
Parameters
| Parameter | Type |
|---|---|
layout | Layout |
weights | readonly number[] |
options | WeightOptions |
Returns
Feature[]