forked from bvaughn/react-virtualized
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestData.js
More file actions
33 lines (30 loc) · 777 Bytes
/
TestData.js
File metadata and controls
33 lines (30 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
0 1 2 3 4 5
┏━━━┯━━━┯━━━┓
0┃0 0┊1 3┊6 6┃
1┃0 0┊2 3┊6 6┃
┠┈┈┈┼┈┈┈┼┈┈┈┨
2┃4 4┊4 3┊7 8┃
3┃4 4┊4 5┊9 9┃
┗━━━┷━━━┷━━━┛
Sections to Cells map:
0.0 [0]
1.0 [1, 2, 3]
2.0 [6]
0.1 [4]
1.1 [3, 4, 5]
2.1 [7, 8, 9]
*/
export const CELLS = [
{ x: 0, y: 0, width: 2, height: 2 },
{ x: 2, y: 0, width: 1, height: 1 },
{ x: 2, y: 1, width: 1, height: 1 },
{ x: 3, y: 0, width: 1, height: 3 },
{ x: 0, y: 2, width: 3, height: 2 },
{ x: 3, y: 3, width: 1, height: 1 },
{ x: 4, y: 0, width: 2, height: 2 },
{ x: 4, y: 2, width: 1, height: 1 },
{ x: 5, y: 2, width: 1, height: 1 },
{ x: 4, y: 3, width: 2, height: 1 }
]
export const SECTION_SIZE = 2