Compare commits
No commits in common. "cb4d3bfc7930595cabbb35e3a79b5209fd697dd9" and "df1f3c27f705045b0b179fd49c9b33af650d8b55" have entirely different histories.
cb4d3bfc79
...
df1f3c27f7
1 changed files with 1 additions and 2 deletions
|
|
@ -15,8 +15,7 @@ export interface Rect {
|
||||||
height: number;
|
height: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pages touch edge to edge; rows of mixed sizes stay centred, so it reads like a loose grid.
|
export const GAP = 40;
|
||||||
export const GAP = 0;
|
|
||||||
|
|
||||||
export function layout(tree: Tree, sizeOf: (id: string) => Size): Map<string, Rect> {
|
export function layout(tree: Tree, sizeOf: (id: string) => Size): Map<string, Rect> {
|
||||||
const rects = new Map<string, Rect>();
|
const rects = new Map<string, Rect>();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue