function span()

in apps-rendering/src/span.ts [77:115]


function span(
	grid: Grid.Desktop,
): (numColumns: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) => number;
function span(
	grid: Grid.LeftCol,
): (
	numColumns: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14,
) => number;
function span(
	grid: Grid.Wide,
): (
	numColumns:
		| 1
		| 2
		| 3
		| 4
		| 5
		| 6
		| 7
		| 8
		| 9
		| 10
		| 11
		| 12
		| 13
		| 14
		| 15
		| 16,
) => number;
function span(grid: Grid): (numColumns: number) => number {
	switch (grid) {
		case Grid.Tablet:
			return calcSpan(tabletColumnSize);
		case Grid.Desktop:
		case Grid.LeftCol:
		case Grid.Wide:
			return calcSpan(desktopColumnSize);
	}
}