Compare commits
2 commits
df1f3c27f7
...
cb4d3bfc79
| Author | SHA1 | Date | |
|---|---|---|---|
| cb4d3bfc79 | |||
| 308d6fc846 |
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,8 @@ export interface Rect {
|
||||||
height: number;
|
height: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const GAP = 40;
|
// Pages touch edge to edge; rows of mixed sizes stay centred, so it reads like a loose grid.
|
||||||
|
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