@pixui-dev/pxw 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/bin/pxw.js +217 -0
  2. package/bin/wpbuild.js +10 -0
  3. package/config/default.conf +21 -0
  4. package/config/devops.js +358 -0
  5. package/config/h5es.js +10 -0
  6. package/config/index.html +181 -0
  7. package/config/pfbs.js +207 -0
  8. package/config/testhelp.js +0 -0
  9. package/config/util.js +140 -0
  10. package/config/webpack.js +291 -0
  11. package/lib/assets/border.png +0 -0
  12. package/lib/assets/check.html +62 -0
  13. package/lib/assets/pixui.png +0 -0
  14. package/lib/assets/preact.js +4354 -0
  15. package/lib/assets/preact.png +0 -0
  16. package/lib/check/main.less +63 -0
  17. package/lib/check/main.tsx +41 -0
  18. package/lib/check/tool.js +3 -0
  19. package/lib/check/util.tsx +110 -0
  20. package/lib/grpc-web/dist/ChunkParser.js +117 -0
  21. package/lib/grpc-web/dist/ChunkParser.js.map +1 -0
  22. package/lib/grpc-web/dist/Code.js +58 -0
  23. package/lib/grpc-web/dist/Code.js.map +1 -0
  24. package/lib/grpc-web/dist/client.js +299 -0
  25. package/lib/grpc-web/dist/client.js.map +1 -0
  26. package/lib/grpc-web/dist/debug.js +16 -0
  27. package/lib/grpc-web/dist/debug.js.map +1 -0
  28. package/lib/grpc-web/dist/detach.js +7 -0
  29. package/lib/grpc-web/dist/detach.js.map +1 -0
  30. package/lib/grpc-web/dist/index.js +29 -0
  31. package/lib/grpc-web/dist/index.js.map +1 -0
  32. package/lib/grpc-web/dist/invoke.js +32 -0
  33. package/lib/grpc-web/dist/invoke.js.map +1 -0
  34. package/lib/grpc-web/dist/message.js +3 -0
  35. package/lib/grpc-web/dist/message.js.map +1 -0
  36. package/lib/grpc-web/dist/metadata.js +5 -0
  37. package/lib/grpc-web/dist/metadata.js.map +1 -0
  38. package/lib/grpc-web/dist/service.js +3 -0
  39. package/lib/grpc-web/dist/service.js.map +1 -0
  40. package/lib/grpc-web/dist/transports/Transport.js +15 -0
  41. package/lib/grpc-web/dist/transports/Transport.js.map +1 -0
  42. package/lib/grpc-web/dist/transports/http/fetch.js +117 -0
  43. package/lib/grpc-web/dist/transports/http/fetch.js.map +1 -0
  44. package/lib/grpc-web/dist/transports/http/http.js +15 -0
  45. package/lib/grpc-web/dist/transports/http/http.js.map +1 -0
  46. package/lib/grpc-web/dist/transports/http/xhr.js +136 -0
  47. package/lib/grpc-web/dist/transports/http/xhr.js.map +1 -0
  48. package/lib/grpc-web/dist/transports/http/xhrUtil.js +36 -0
  49. package/lib/grpc-web/dist/transports/http/xhrUtil.js.map +1 -0
  50. package/lib/grpc-web/dist/transports/websocket/websocket.js +95 -0
  51. package/lib/grpc-web/dist/transports/websocket/websocket.js.map +1 -0
  52. package/lib/grpc-web/dist/typings/ChunkParser.d.ts +17 -0
  53. package/lib/grpc-web/dist/typings/Code.d.ts +20 -0
  54. package/lib/grpc-web/dist/typings/client.d.ts +25 -0
  55. package/lib/grpc-web/dist/typings/debug.d.ts +1 -0
  56. package/lib/grpc-web/dist/typings/detach.d.ts +1 -0
  57. package/lib/grpc-web/dist/typings/index.d.ts +45 -0
  58. package/lib/grpc-web/dist/typings/invoke.d.ts +20 -0
  59. package/lib/grpc-web/dist/typings/message.d.ts +8 -0
  60. package/lib/grpc-web/dist/typings/metadata.d.ts +2 -0
  61. package/lib/grpc-web/dist/typings/service.d.ts +16 -0
  62. package/lib/grpc-web/dist/typings/transports/Transport.d.ts +22 -0
  63. package/lib/grpc-web/dist/typings/transports/http/fetch.d.ts +6 -0
  64. package/lib/grpc-web/dist/typings/transports/http/http.d.ts +5 -0
  65. package/lib/grpc-web/dist/typings/transports/http/xhr.d.ts +27 -0
  66. package/lib/grpc-web/dist/typings/transports/http/xhrUtil.d.ts +3 -0
  67. package/lib/grpc-web/dist/typings/transports/websocket/websocket.d.ts +2 -0
  68. package/lib/grpc-web/dist/typings/unary.d.ts +23 -0
  69. package/lib/grpc-web/dist/typings/util.d.ts +2 -0
  70. package/lib/grpc-web/dist/unary.js +44 -0
  71. package/lib/grpc-web/dist/unary.js.map +1 -0
  72. package/lib/grpc-web/dist/util.js +11 -0
  73. package/lib/grpc-web/dist/util.js.map +1 -0
  74. package/lib/grpcTransport/PixHttp2Transport.ts +107 -0
  75. package/lib/grpcTransport/PixLuaTransport.ts +82 -0
  76. package/lib/h5es-types/v1.9.2/h5es.d.ts +1698 -0
  77. package/lib/h5es-types/v3.5.0/h5es.d.ts +1788 -0
  78. package/lib/pi_component/tinyList/tinyList.js +483 -0
  79. package/lib/pi_component/tinyList/tinyList.tsx +517 -0
  80. package/lib/pika-svelte/compiler.js +29829 -0
  81. package/lib/pika-svelte/easing/index.js +158 -0
  82. package/lib/pika-svelte/index.js +72 -0
  83. package/lib/pika-svelte/internal/index.js +1926 -0
  84. package/lib/pika-svelte/motion/index.js +210 -0
  85. package/lib/pika-svelte/package.json +145 -0
  86. package/lib/pika-svelte/register.js +57 -0
  87. package/lib/pika-svelte/rollup.config.js +126 -0
  88. package/lib/pika-svelte/store/index.js +123 -0
  89. package/lib/pika-svelte/transition/index.js +185 -0
  90. package/lib/preact-router.js +395 -0
  91. package/lib/preact.js +4355 -0
  92. package/lib/preact.tq.js +4385 -0
  93. package/lib/react-window/src/FixedSizeGrid.js +172 -0
  94. package/lib/react-window/src/FixedSizeList.js +91 -0
  95. package/lib/react-window/src/VariableSizeGrid.js +329 -0
  96. package/lib/react-window/src/VariableSizeList.js +231 -0
  97. package/lib/react-window/src/__tests__/FixedSizeGrid.js +942 -0
  98. package/lib/react-window/src/__tests__/FixedSizeList.js +749 -0
  99. package/lib/react-window/src/__tests__/VariableSizeGrid.js +598 -0
  100. package/lib/react-window/src/__tests__/VariableSizeList.js +345 -0
  101. package/lib/react-window/src/__tests__/__snapshots__/FixedSizeGrid.js.snap +912 -0
  102. package/lib/react-window/src/__tests__/__snapshots__/FixedSizeList.js.snap +568 -0
  103. package/lib/react-window/src/__tests__/__snapshots__/VariableSizeGrid.js.snap +542 -0
  104. package/lib/react-window/src/__tests__/__snapshots__/VariableSizeList.js.snap +331 -0
  105. package/lib/react-window/src/__tests__/areEqual.js +28 -0
  106. package/lib/react-window/src/__tests__/shouldComponentUpdate.js +32 -0
  107. package/lib/react-window/src/areEqual.js +13 -0
  108. package/lib/react-window/src/createGridComponent.js +657 -0
  109. package/lib/react-window/src/createListComponent.js +574 -0
  110. package/lib/react-window/src/domHelpers.js +69 -0
  111. package/lib/react-window/src/index.js +9 -0
  112. package/lib/react-window/src/shallowDiffers.js +17 -0
  113. package/lib/react-window/src/shouldComponentUpdate.js +11 -0
  114. package/lib/react-window/src/test.js.flow +382 -0
  115. package/lib/react-window/src/timer.js +36 -0
  116. package/lib/svelte-tab/Tab.svelte +31 -0
  117. package/lib/svelte-tab/TabList.svelte +10 -0
  118. package/lib/svelte-tab/TabPanel.svelte +13 -0
  119. package/lib/svelte-tab/Tabs.svelte +68 -0
  120. package/lib/svelte-tab/tabs.js +4 -0
  121. package/lib/types/css.d.ts +7476 -0
  122. package/lib/types/dom.ts +17 -0
  123. package/lib/types/ext.d.ts +81 -0
  124. package/lib/types/internal.d.ts +94 -0
  125. package/lib/types/jsx.d.ts +309 -0
  126. package/lib/types/preact.d.ts +340 -0
  127. package/package.json +111 -0
  128. package/tsconfig.json +30 -0
@@ -0,0 +1,542 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`VariableSizeGrid onScroll scrolling should report partial items correctly in onItemsRendered 1`] = `
4
+ Array [
5
+ Array [
6
+ Object {
7
+ "overscanColumnStartIndex": 0,
8
+ "overscanColumnStopIndex": 3,
9
+ "overscanRowStartIndex": 0,
10
+ "overscanRowStopIndex": 5,
11
+ "visibleColumnStartIndex": 0,
12
+ "visibleColumnStopIndex": 2,
13
+ "visibleRowStartIndex": 0,
14
+ "visibleRowStopIndex": 4,
15
+ },
16
+ ],
17
+ Array [
18
+ Object {
19
+ "overscanColumnStartIndex": 0,
20
+ "overscanColumnStopIndex": 4,
21
+ "overscanRowStartIndex": 0,
22
+ "overscanRowStopIndex": 6,
23
+ "visibleColumnStartIndex": 1,
24
+ "visibleColumnStopIndex": 3,
25
+ "visibleRowStartIndex": 1,
26
+ "visibleRowStopIndex": 5,
27
+ },
28
+ ],
29
+ Array [
30
+ Object {
31
+ "overscanColumnStartIndex": 1,
32
+ "overscanColumnStopIndex": 4,
33
+ "overscanRowStartIndex": 1,
34
+ "overscanRowStopIndex": 6,
35
+ "visibleColumnStartIndex": 2,
36
+ "visibleColumnStopIndex": 3,
37
+ "visibleRowStartIndex": 2,
38
+ "visibleRowStopIndex": 5,
39
+ },
40
+ ],
41
+ Array [
42
+ Object {
43
+ "overscanColumnStartIndex": 0,
44
+ "overscanColumnStopIndex": 4,
45
+ "overscanRowStartIndex": 0,
46
+ "overscanRowStopIndex": 6,
47
+ "visibleColumnStartIndex": 1,
48
+ "visibleColumnStopIndex": 3,
49
+ "visibleRowStartIndex": 1,
50
+ "visibleRowStopIndex": 5,
51
+ },
52
+ ],
53
+ Array [
54
+ Object {
55
+ "overscanColumnStartIndex": 96,
56
+ "overscanColumnStopIndex": 99,
57
+ "overscanRowStartIndex": 94,
58
+ "overscanRowStopIndex": 99,
59
+ "visibleColumnStartIndex": 97,
60
+ "visibleColumnStopIndex": 99,
61
+ "visibleRowStartIndex": 95,
62
+ "visibleRowStopIndex": 99,
63
+ },
64
+ ],
65
+ Array [
66
+ Object {
67
+ "overscanColumnStartIndex": 97,
68
+ "overscanColumnStopIndex": 99,
69
+ "overscanRowStartIndex": 95,
70
+ "overscanRowStopIndex": 99,
71
+ "visibleColumnStartIndex": 98,
72
+ "visibleColumnStopIndex": 99,
73
+ "visibleRowStartIndex": 96,
74
+ "visibleRowStopIndex": 99,
75
+ },
76
+ ],
77
+ Array [
78
+ Object {
79
+ "overscanColumnStartIndex": 96,
80
+ "overscanColumnStopIndex": 99,
81
+ "overscanRowStartIndex": 94,
82
+ "overscanRowStopIndex": 99,
83
+ "visibleColumnStartIndex": 97,
84
+ "visibleColumnStopIndex": 99,
85
+ "visibleRowStartIndex": 95,
86
+ "visibleRowStopIndex": 99,
87
+ },
88
+ ],
89
+ ]
90
+ `;
91
+
92
+ exports[`VariableSizeGrid scrollToItem method scroll with align = "auto" should work with partially-visible items 1`] = `
93
+ Array [
94
+ Array [
95
+ Object {
96
+ "overscanColumnStartIndex": 0,
97
+ "overscanColumnStopIndex": 3,
98
+ "overscanRowStartIndex": 0,
99
+ "overscanRowStopIndex": 4,
100
+ "visibleColumnStartIndex": 0,
101
+ "visibleColumnStopIndex": 2,
102
+ "visibleRowStartIndex": 0,
103
+ "visibleRowStopIndex": 3,
104
+ },
105
+ ],
106
+ Array [
107
+ Object {
108
+ "overscanColumnStartIndex": 7,
109
+ "overscanColumnStopIndex": 11,
110
+ "overscanRowStartIndex": 6,
111
+ "overscanRowStopIndex": 11,
112
+ "visibleColumnStartIndex": 8,
113
+ "visibleColumnStopIndex": 10,
114
+ "visibleRowStartIndex": 7,
115
+ "visibleRowStopIndex": 10,
116
+ },
117
+ ],
118
+ Array [
119
+ Object {
120
+ "overscanColumnStartIndex": 96,
121
+ "overscanColumnStopIndex": 99,
122
+ "overscanRowStartIndex": 95,
123
+ "overscanRowStopIndex": 99,
124
+ "visibleColumnStartIndex": 97,
125
+ "visibleColumnStopIndex": 99,
126
+ "visibleRowStartIndex": 96,
127
+ "visibleRowStopIndex": 99,
128
+ },
129
+ ],
130
+ Array [
131
+ Object {
132
+ "overscanColumnStartIndex": 0,
133
+ "overscanColumnStopIndex": 4,
134
+ "overscanRowStartIndex": 0,
135
+ "overscanRowStopIndex": 5,
136
+ "visibleColumnStartIndex": 1,
137
+ "visibleColumnStopIndex": 3,
138
+ "visibleRowStartIndex": 1,
139
+ "visibleRowStopIndex": 4,
140
+ },
141
+ ],
142
+ Array [
143
+ Object {
144
+ "overscanColumnStartIndex": 0,
145
+ "overscanColumnStopIndex": 3,
146
+ "overscanRowStartIndex": 0,
147
+ "overscanRowStopIndex": 4,
148
+ "visibleColumnStartIndex": 0,
149
+ "visibleColumnStopIndex": 2,
150
+ "visibleRowStartIndex": 0,
151
+ "visibleRowStopIndex": 3,
152
+ },
153
+ ],
154
+ ]
155
+ `;
156
+
157
+ exports[`VariableSizeGrid scrollToItem method should not set invalid offsets when the list contains few items 1`] = `[Function]`;
158
+
159
+ exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "auto" 1`] = `
160
+ Array [
161
+ Array [
162
+ Object {
163
+ "overscanColumnStartIndex": 0,
164
+ "overscanColumnStopIndex": 4,
165
+ "overscanRowStartIndex": 0,
166
+ "overscanRowStopIndex": 4,
167
+ "visibleColumnStartIndex": 0,
168
+ "visibleColumnStopIndex": 3,
169
+ "visibleRowStartIndex": 0,
170
+ "visibleRowStopIndex": 3,
171
+ },
172
+ ],
173
+ Array [
174
+ Object {
175
+ "overscanColumnStartIndex": 1,
176
+ "overscanColumnStopIndex": 6,
177
+ "overscanRowStartIndex": 1,
178
+ "overscanRowStopIndex": 6,
179
+ "visibleColumnStartIndex": 2,
180
+ "visibleColumnStopIndex": 5,
181
+ "visibleRowStartIndex": 2,
182
+ "visibleRowStopIndex": 5,
183
+ },
184
+ ],
185
+ Array [
186
+ Object {
187
+ "overscanColumnStartIndex": 1,
188
+ "overscanColumnStopIndex": 6,
189
+ "overscanRowStartIndex": 7,
190
+ "overscanRowStopIndex": 11,
191
+ "visibleColumnStartIndex": 2,
192
+ "visibleColumnStopIndex": 5,
193
+ "visibleRowStartIndex": 8,
194
+ "visibleRowStopIndex": 10,
195
+ },
196
+ ],
197
+ Array [
198
+ Object {
199
+ "overscanColumnStartIndex": 0,
200
+ "overscanColumnStopIndex": 4,
201
+ "overscanRowStartIndex": 7,
202
+ "overscanRowStopIndex": 11,
203
+ "visibleColumnStartIndex": 0,
204
+ "visibleColumnStopIndex": 3,
205
+ "visibleRowStartIndex": 8,
206
+ "visibleRowStopIndex": 10,
207
+ },
208
+ ],
209
+ ]
210
+ `;
211
+
212
+ exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "center" 1`] = `
213
+ Array [
214
+ Array [
215
+ Object {
216
+ "overscanColumnStartIndex": 0,
217
+ "overscanColumnStopIndex": 4,
218
+ "overscanRowStartIndex": 0,
219
+ "overscanRowStopIndex": 4,
220
+ "visibleColumnStartIndex": 0,
221
+ "visibleColumnStopIndex": 3,
222
+ "visibleRowStartIndex": 0,
223
+ "visibleRowStopIndex": 3,
224
+ },
225
+ ],
226
+ Array [
227
+ Object {
228
+ "overscanColumnStartIndex": 2,
229
+ "overscanColumnStopIndex": 8,
230
+ "overscanRowStartIndex": 2,
231
+ "overscanRowStopIndex": 8,
232
+ "visibleColumnStartIndex": 3,
233
+ "visibleColumnStopIndex": 7,
234
+ "visibleRowStartIndex": 3,
235
+ "visibleRowStopIndex": 7,
236
+ },
237
+ ],
238
+ Array [
239
+ Object {
240
+ "overscanColumnStartIndex": 1,
241
+ "overscanColumnStopIndex": 7,
242
+ "overscanRowStartIndex": 1,
243
+ "overscanRowStopIndex": 7,
244
+ "visibleColumnStartIndex": 2,
245
+ "visibleColumnStopIndex": 6,
246
+ "visibleRowStartIndex": 2,
247
+ "visibleRowStopIndex": 6,
248
+ },
249
+ ],
250
+ Array [
251
+ Object {
252
+ "overscanColumnStartIndex": 0,
253
+ "overscanColumnStopIndex": 5,
254
+ "overscanRowStartIndex": 0,
255
+ "overscanRowStopIndex": 5,
256
+ "visibleColumnStartIndex": 0,
257
+ "visibleColumnStopIndex": 4,
258
+ "visibleRowStartIndex": 0,
259
+ "visibleRowStopIndex": 4,
260
+ },
261
+ ],
262
+ Array [
263
+ Object {
264
+ "overscanColumnStartIndex": 5,
265
+ "overscanColumnStopIndex": 9,
266
+ "overscanRowStartIndex": 16,
267
+ "overscanRowStopIndex": 19,
268
+ "visibleColumnStartIndex": 6,
269
+ "visibleColumnStopIndex": 9,
270
+ "visibleRowStartIndex": 17,
271
+ "visibleRowStopIndex": 19,
272
+ },
273
+ ],
274
+ Array [
275
+ Object {
276
+ "overscanColumnStartIndex": 5,
277
+ "overscanColumnStopIndex": 9,
278
+ "overscanRowStartIndex": 8,
279
+ "overscanRowStopIndex": 12,
280
+ "visibleColumnStartIndex": 6,
281
+ "visibleColumnStopIndex": 9,
282
+ "visibleRowStartIndex": 9,
283
+ "visibleRowStopIndex": 11,
284
+ },
285
+ ],
286
+ Array [
287
+ Object {
288
+ "overscanColumnStartIndex": 0,
289
+ "overscanColumnStopIndex": 6,
290
+ "overscanRowStartIndex": 8,
291
+ "overscanRowStopIndex": 12,
292
+ "visibleColumnStartIndex": 1,
293
+ "visibleColumnStopIndex": 5,
294
+ "visibleRowStartIndex": 9,
295
+ "visibleRowStopIndex": 11,
296
+ },
297
+ ],
298
+ ]
299
+ `;
300
+
301
+ exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "end" 1`] = `
302
+ Array [
303
+ Array [
304
+ Object {
305
+ "overscanColumnStartIndex": 0,
306
+ "overscanColumnStopIndex": 4,
307
+ "overscanRowStartIndex": 0,
308
+ "overscanRowStopIndex": 4,
309
+ "visibleColumnStartIndex": 0,
310
+ "visibleColumnStopIndex": 3,
311
+ "visibleRowStartIndex": 0,
312
+ "visibleRowStopIndex": 3,
313
+ },
314
+ ],
315
+ Array [
316
+ Object {
317
+ "overscanColumnStartIndex": 1,
318
+ "overscanColumnStopIndex": 6,
319
+ "overscanRowStartIndex": 1,
320
+ "overscanRowStopIndex": 6,
321
+ "visibleColumnStartIndex": 2,
322
+ "visibleColumnStopIndex": 5,
323
+ "visibleRowStartIndex": 2,
324
+ "visibleRowStopIndex": 5,
325
+ },
326
+ ],
327
+ Array [
328
+ Object {
329
+ "overscanColumnStartIndex": 0,
330
+ "overscanColumnStopIndex": 5,
331
+ "overscanRowStartIndex": 0,
332
+ "overscanRowStopIndex": 5,
333
+ "visibleColumnStartIndex": 1,
334
+ "visibleColumnStopIndex": 4,
335
+ "visibleRowStartIndex": 1,
336
+ "visibleRowStopIndex": 4,
337
+ },
338
+ ],
339
+ Array [
340
+ Object {
341
+ "overscanColumnStartIndex": 0,
342
+ "overscanColumnStopIndex": 4,
343
+ "overscanRowStartIndex": 0,
344
+ "overscanRowStopIndex": 4,
345
+ "visibleColumnStartIndex": 0,
346
+ "visibleColumnStopIndex": 3,
347
+ "visibleRowStartIndex": 0,
348
+ "visibleRowStopIndex": 3,
349
+ },
350
+ ],
351
+ Array [
352
+ Object {
353
+ "overscanColumnStartIndex": 0,
354
+ "overscanColumnStopIndex": 4,
355
+ "overscanRowStartIndex": 7,
356
+ "overscanRowStopIndex": 11,
357
+ "visibleColumnStartIndex": 0,
358
+ "visibleColumnStopIndex": 3,
359
+ "visibleRowStartIndex": 8,
360
+ "visibleRowStopIndex": 10,
361
+ },
362
+ ],
363
+ Array [
364
+ Object {
365
+ "overscanColumnStartIndex": 5,
366
+ "overscanColumnStopIndex": 9,
367
+ "overscanRowStartIndex": 7,
368
+ "overscanRowStopIndex": 11,
369
+ "visibleColumnStartIndex": 6,
370
+ "visibleColumnStopIndex": 9,
371
+ "visibleRowStartIndex": 8,
372
+ "visibleRowStopIndex": 10,
373
+ },
374
+ ],
375
+ ]
376
+ `;
377
+
378
+ exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "smart" 1`] = `
379
+ Array [
380
+ Array [
381
+ Object {
382
+ "overscanColumnStartIndex": 0,
383
+ "overscanColumnStopIndex": 4,
384
+ "overscanRowStartIndex": 0,
385
+ "overscanRowStopIndex": 4,
386
+ "visibleColumnStartIndex": 0,
387
+ "visibleColumnStopIndex": 3,
388
+ "visibleRowStartIndex": 0,
389
+ "visibleRowStopIndex": 3,
390
+ },
391
+ ],
392
+ Array [
393
+ Object {
394
+ "overscanColumnStartIndex": 5,
395
+ "overscanColumnStopIndex": 9,
396
+ "overscanRowStartIndex": 8,
397
+ "overscanRowStopIndex": 12,
398
+ "visibleColumnStartIndex": 6,
399
+ "visibleColumnStopIndex": 9,
400
+ "visibleRowStartIndex": 9,
401
+ "visibleRowStopIndex": 11,
402
+ },
403
+ ],
404
+ Array [
405
+ Object {
406
+ "overscanColumnStartIndex": 0,
407
+ "overscanColumnStopIndex": 5,
408
+ "overscanRowStartIndex": 0,
409
+ "overscanRowStopIndex": 5,
410
+ "visibleColumnStartIndex": 1,
411
+ "visibleColumnStopIndex": 4,
412
+ "visibleRowStartIndex": 1,
413
+ "visibleRowStopIndex": 4,
414
+ },
415
+ ],
416
+ Array [
417
+ Object {
418
+ "overscanColumnStartIndex": 0,
419
+ "overscanColumnStopIndex": 5,
420
+ "overscanRowStartIndex": 8,
421
+ "overscanRowStopIndex": 12,
422
+ "visibleColumnStartIndex": 1,
423
+ "visibleColumnStopIndex": 4,
424
+ "visibleRowStartIndex": 9,
425
+ "visibleRowStopIndex": 11,
426
+ },
427
+ ],
428
+ Array [
429
+ Object {
430
+ "overscanColumnStartIndex": 0,
431
+ "overscanColumnStopIndex": 4,
432
+ "overscanRowStartIndex": 8,
433
+ "overscanRowStopIndex": 12,
434
+ "visibleColumnStartIndex": 0,
435
+ "visibleColumnStopIndex": 3,
436
+ "visibleRowStartIndex": 9,
437
+ "visibleRowStopIndex": 11,
438
+ },
439
+ ],
440
+ Array [
441
+ Object {
442
+ "overscanColumnStartIndex": 1,
443
+ "overscanColumnStopIndex": 6,
444
+ "overscanRowStartIndex": 2,
445
+ "overscanRowStopIndex": 8,
446
+ "visibleColumnStartIndex": 2,
447
+ "visibleColumnStopIndex": 5,
448
+ "visibleRowStartIndex": 3,
449
+ "visibleRowStopIndex": 7,
450
+ },
451
+ ],
452
+ Array [
453
+ Object {
454
+ "overscanColumnStartIndex": 5,
455
+ "overscanColumnStopIndex": 9,
456
+ "overscanRowStartIndex": 8,
457
+ "overscanRowStopIndex": 12,
458
+ "visibleColumnStartIndex": 6,
459
+ "visibleColumnStopIndex": 9,
460
+ "visibleRowStartIndex": 9,
461
+ "visibleRowStopIndex": 11,
462
+ },
463
+ ],
464
+ ]
465
+ `;
466
+
467
+ exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "start" 1`] = `
468
+ Array [
469
+ Array [
470
+ Object {
471
+ "overscanColumnStartIndex": 0,
472
+ "overscanColumnStopIndex": 4,
473
+ "overscanRowStartIndex": 0,
474
+ "overscanRowStopIndex": 4,
475
+ "visibleColumnStartIndex": 0,
476
+ "visibleColumnStopIndex": 3,
477
+ "visibleRowStartIndex": 0,
478
+ "visibleRowStopIndex": 3,
479
+ },
480
+ ],
481
+ Array [
482
+ Object {
483
+ "overscanColumnStartIndex": 4,
484
+ "overscanColumnStopIndex": 9,
485
+ "overscanRowStartIndex": 4,
486
+ "overscanRowStopIndex": 9,
487
+ "visibleColumnStartIndex": 5,
488
+ "visibleColumnStopIndex": 8,
489
+ "visibleRowStartIndex": 5,
490
+ "visibleRowStopIndex": 8,
491
+ },
492
+ ],
493
+ Array [
494
+ Object {
495
+ "overscanColumnStartIndex": 3,
496
+ "overscanColumnStopIndex": 8,
497
+ "overscanRowStartIndex": 3,
498
+ "overscanRowStopIndex": 8,
499
+ "visibleColumnStartIndex": 4,
500
+ "visibleColumnStopIndex": 7,
501
+ "visibleRowStartIndex": 4,
502
+ "visibleRowStopIndex": 7,
503
+ },
504
+ ],
505
+ Array [
506
+ Object {
507
+ "overscanColumnStartIndex": 5,
508
+ "overscanColumnStopIndex": 9,
509
+ "overscanRowStartIndex": 16,
510
+ "overscanRowStopIndex": 19,
511
+ "visibleColumnStartIndex": 6,
512
+ "visibleColumnStopIndex": 9,
513
+ "visibleRowStartIndex": 17,
514
+ "visibleRowStopIndex": 19,
515
+ },
516
+ ],
517
+ Array [
518
+ Object {
519
+ "overscanColumnStartIndex": 5,
520
+ "overscanColumnStopIndex": 9,
521
+ "overscanRowStartIndex": 9,
522
+ "overscanRowStopIndex": 13,
523
+ "visibleColumnStartIndex": 6,
524
+ "visibleColumnStopIndex": 9,
525
+ "visibleRowStartIndex": 10,
526
+ "visibleRowStopIndex": 12,
527
+ },
528
+ ],
529
+ Array [
530
+ Object {
531
+ "overscanColumnStartIndex": 0,
532
+ "overscanColumnStopIndex": 4,
533
+ "overscanRowStartIndex": 9,
534
+ "overscanRowStopIndex": 13,
535
+ "visibleColumnStartIndex": 0,
536
+ "visibleColumnStopIndex": 3,
537
+ "visibleRowStartIndex": 10,
538
+ "visibleRowStopIndex": 12,
539
+ },
540
+ ],
541
+ ]
542
+ `;