layoutWaffle
layoutWaffle(
input):WaffleLayout
Defined in: packages/waffle/src/layout.ts:23
Lays the items out as a waffle: a grid of cells, filled left to right and top to bottom in core’s mark order, so each category of the arranging dimension is a run you can read like text.
encoding works as everywhere in data-profile (see core’s Encoding). Cell area is
proportional to weight: the heaviest mark fills its cell, less the gap. Positions only arrange.
A pure function of its input: the same items, dimensions, encoding and options give the same
layout whatever order the items arrive in and whatever size it is drawn at. Above maxMarks
items, a cell stands for several items that agree on every encoded dimension; nothing is dropped.