@olvnck/ingrid 0.0.0-stage → 0.15.21

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 (220) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/LICENSE +21 -0
  3. package/README.md +5535 -2
  4. package/THIRD_PARTY_NOTICES.md +10 -0
  5. package/dist/engine/clipboard/copy.d.ts +40 -0
  6. package/dist/engine/clipboard/options.d.ts +16 -0
  7. package/dist/engine/clipboard/text.d.ts +32 -0
  8. package/dist/engine/columns/autosize.d.ts +43 -0
  9. package/dist/engine/columns/dataType.d.ts +30 -0
  10. package/dist/engine/columns/fold.d.ts +48 -0
  11. package/dist/engine/columns/layout.d.ts +150 -0
  12. package/dist/engine/columns/model.d.ts +369 -0
  13. package/dist/engine/columns/query.d.ts +16 -0
  14. package/dist/engine/columns/tooltips.d.ts +27 -0
  15. package/dist/engine/data/client/clientSource.d.ts +151 -0
  16. package/dist/engine/data/client/columnFilters.d.ts +106 -0
  17. package/dist/engine/data/client/descendants.d.ts +35 -0
  18. package/dist/engine/data/client/diff.d.ts +23 -0
  19. package/dist/engine/data/client/fields.d.ts +70 -0
  20. package/dist/engine/data/client/filter.d.ts +95 -0
  21. package/dist/engine/data/client/flatten.d.ts +141 -0
  22. package/dist/engine/data/client/groupSize.d.ts +14 -0
  23. package/dist/engine/data/client/hierarchy.d.ts +85 -0
  24. package/dist/engine/data/client/order.d.ts +32 -0
  25. package/dist/engine/data/client/pipeline.d.ts +277 -0
  26. package/dist/engine/data/client/remap.d.ts +33 -0
  27. package/dist/engine/data/client/trees.d.ts +41 -0
  28. package/dist/engine/data/client/types.d.ts +173 -0
  29. package/dist/engine/data/memory/generate.d.ts +36 -0
  30. package/dist/engine/data/memory/memoryDatasource.d.ts +46 -0
  31. package/dist/engine/data/rowKey.d.ts +15 -0
  32. package/dist/engine/data/server/contract.d.ts +64 -0
  33. package/dist/engine/data/server/expansion.d.ts +35 -0
  34. package/dist/engine/data/server/levelStore.d.ts +99 -0
  35. package/dist/engine/data/server/loader.d.ts +128 -0
  36. package/dist/engine/data/server/reader.d.ts +88 -0
  37. package/dist/engine/data/server/response.d.ts +31 -0
  38. package/dist/engine/data/server/serverSource.d.ts +130 -0
  39. package/dist/engine/data/shared/aggregate.d.ts +12 -0
  40. package/dist/engine/data/shared/columnFilter.d.ts +19 -0
  41. package/dist/engine/data/shared/compare.d.ts +12 -0
  42. package/dist/engine/data/shared/dateParts.d.ts +19 -0
  43. package/dist/engine/data/shared/distinct.d.ts +30 -0
  44. package/dist/engine/data/shared/filterRecord.d.ts +7 -0
  45. package/dist/engine/data/shared/keys.d.ts +17 -0
  46. package/dist/engine/data/shared/quickFilter.d.ts +17 -0
  47. package/dist/engine/data/shared/sourceUtils.d.ts +11 -0
  48. package/dist/engine/data/shared/splice.d.ts +9 -0
  49. package/dist/engine/detail/builds.d.ts +26 -0
  50. package/dist/engine/detail/content.d.ts +24 -0
  51. package/dist/engine/detail/controller.d.ts +176 -0
  52. package/dist/engine/detail/events.d.ts +11 -0
  53. package/dist/engine/detail/follow.d.ts +56 -0
  54. package/dist/engine/detail/layer.d.ts +119 -0
  55. package/dist/engine/detail/live.d.ts +96 -0
  56. package/dist/engine/detail/options.d.ts +53 -0
  57. package/dist/engine/detail/state.d.ts +140 -0
  58. package/dist/engine/edit/clear.d.ts +20 -0
  59. package/dist/engine/edit/editing.d.ts +4 -0
  60. package/dist/engine/edit/editors/date.d.ts +3 -0
  61. package/dist/engine/edit/editors/index.d.ts +23 -0
  62. package/dist/engine/edit/editors/internals.d.ts +25 -0
  63. package/dist/engine/edit/editors/largeText.d.ts +2 -0
  64. package/dist/engine/edit/editors/number.d.ts +4 -0
  65. package/dist/engine/edit/editors/select.d.ts +2 -0
  66. package/dist/engine/edit/editors/text.d.ts +15 -0
  67. package/dist/engine/edit/fill.d.ts +47 -0
  68. package/dist/engine/edit/fillHandle.d.ts +66 -0
  69. package/dist/engine/edit/fillValues.d.ts +15 -0
  70. package/dist/engine/edit/operations.d.ts +68 -0
  71. package/dist/engine/edit/paste.d.ts +23 -0
  72. package/dist/engine/edit/pastePlan.d.ts +17 -0
  73. package/dist/engine/edit/popupHost.d.ts +63 -0
  74. package/dist/engine/edit/session.d.ts +52 -0
  75. package/dist/engine/edit/types.d.ts +234 -0
  76. package/dist/engine/edit/undo.d.ts +38 -0
  77. package/dist/engine/edit/validation.d.ts +10 -0
  78. package/dist/engine/edit/values.d.ts +38 -0
  79. package/dist/engine/export/columns.d.ts +19 -0
  80. package/dist/engine/export/deliver.d.ts +47 -0
  81. package/dist/engine/export/dsv.d.ts +2 -0
  82. package/dist/engine/export/expanded.d.ts +69 -0
  83. package/dist/engine/export/export.d.ts +25 -0
  84. package/dist/engine/export/headers.d.ts +15 -0
  85. package/dist/engine/export/options.d.ts +19 -0
  86. package/dist/engine/export/plan.d.ts +43 -0
  87. package/dist/engine/export/values.d.ts +33 -0
  88. package/dist/engine/export/walk.d.ts +31 -0
  89. package/dist/engine/export/writer.d.ts +62 -0
  90. package/dist/engine/export/xlsx/cells.d.ts +31 -0
  91. package/dist/engine/export/xlsx/index.d.ts +12 -0
  92. package/dist/engine/export/xlsx/parts.d.ts +36 -0
  93. package/dist/engine/export/xlsx/sheet.d.ts +30 -0
  94. package/dist/engine/export/xlsx/styles.d.ts +15 -0
  95. package/dist/engine/export/xlsx/table.d.ts +8 -0
  96. package/dist/engine/export/xlsx/zip.d.ts +24 -0
  97. package/dist/engine/filter/groupFilter.d.ts +28 -0
  98. package/dist/engine/filter/model.d.ts +235 -0
  99. package/dist/engine/filter/shorthand.d.ts +36 -0
  100. package/dist/engine/filter/state.d.ts +76 -0
  101. package/dist/engine/filter/summary.d.ts +16 -0
  102. package/dist/engine/filter/values.d.ts +40 -0
  103. package/dist/engine/find/index.d.ts +94 -0
  104. package/dist/engine/find/match.d.ts +38 -0
  105. package/dist/engine/find/model.d.ts +115 -0
  106. package/dist/engine/grid.d.ts +42 -0
  107. package/dist/engine/i18n/numbers.d.ts +34 -0
  108. package/dist/engine/i18n/texts.d.ts +306 -0
  109. package/dist/engine/interact/autoScroll.d.ts +11 -0
  110. package/dist/engine/interact/body.d.ts +41 -0
  111. package/dist/engine/interact/focus.d.ts +158 -0
  112. package/dist/engine/interact/header.d.ts +216 -0
  113. package/dist/engine/interact/host.d.ts +400 -0
  114. package/dist/engine/interact/keyboard.d.ts +20 -0
  115. package/dist/engine/interact/menuKey.d.ts +7 -0
  116. package/dist/engine/interact/own.d.ts +2 -0
  117. package/dist/engine/interact/ranges.d.ts +68 -0
  118. package/dist/engine/interact/rowSelection.d.ts +53 -0
  119. package/dist/engine/interact/shortcut.d.ts +21 -0
  120. package/dist/engine/interact/tooltips.d.ts +63 -0
  121. package/dist/engine/measure.d.ts +30 -0
  122. package/dist/engine/render/cells.d.ts +322 -0
  123. package/dist/engine/render/columns.d.ts +28 -0
  124. package/dist/engine/render/dom.d.ts +24 -0
  125. package/dist/engine/render/flash.d.ts +74 -0
  126. package/dist/engine/render/groupCell.d.ts +50 -0
  127. package/dist/engine/render/groupPanel.d.ts +21 -0
  128. package/dist/engine/render/header.d.ts +162 -0
  129. package/dist/engine/render/overlay.d.ts +15 -0
  130. package/dist/engine/render/pinnedRows.d.ts +106 -0
  131. package/dist/engine/render/rowPool.d.ts +3 -0
  132. package/dist/engine/render/scrollbars.d.ts +77 -0
  133. package/dist/engine/render/strategy.d.ts +397 -0
  134. package/dist/engine/reportError.d.ts +7 -0
  135. package/dist/engine/rowdrag/controller.d.ts +80 -0
  136. package/dist/engine/rowdrag/events.d.ts +17 -0
  137. package/dist/engine/rowdrag/gesture.d.ts +33 -0
  138. package/dist/engine/rowdrag/keys.d.ts +21 -0
  139. package/dist/engine/rowdrag/model.d.ts +67 -0
  140. package/dist/engine/rowdrag/options.d.ts +34 -0
  141. package/dist/engine/rowdrag/rows.d.ts +61 -0
  142. package/dist/engine/rowdrag/target.d.ts +59 -0
  143. package/dist/engine/rowdrag/zones.d.ts +79 -0
  144. package/dist/engine/schedule.d.ts +29 -0
  145. package/dist/engine/selection/aggregate.d.ts +30 -0
  146. package/dist/engine/selection/options.d.ts +7 -0
  147. package/dist/engine/selection/rangeRows.d.ts +19 -0
  148. package/dist/engine/selection/ranges.d.ts +114 -0
  149. package/dist/engine/selection/rows.d.ts +207 -0
  150. package/dist/engine/source.d.ts +225 -0
  151. package/dist/engine/synthetic.d.ts +28 -0
  152. package/dist/engine/table/cells.d.ts +52 -0
  153. package/dist/engine/table/headers.d.ts +20 -0
  154. package/dist/engine/table/host.d.ts +65 -0
  155. package/dist/engine/table/job.d.ts +21 -0
  156. package/dist/engine/table/rows.d.ts +99 -0
  157. package/dist/engine/table/slicer.d.ts +54 -0
  158. package/dist/engine/table/takes.d.ts +145 -0
  159. package/dist/engine/types.d.ts +2950 -0
  160. package/dist/engine/ui/announce.d.ts +7 -0
  161. package/dist/engine/ui/chooser.d.ts +19 -0
  162. package/dist/engine/ui/columnList.d.ts +41 -0
  163. package/dist/engine/ui/columnMenu.d.ts +96 -0
  164. package/dist/engine/ui/columnsPanel.d.ts +16 -0
  165. package/dist/engine/ui/contextMenu.d.ts +48 -0
  166. package/dist/engine/ui/controller.d.ts +295 -0
  167. package/dist/engine/ui/filters/apply.d.ts +53 -0
  168. package/dist/engine/ui/filters/custom.d.ts +3 -0
  169. package/dist/engine/ui/filters/date.d.ts +12 -0
  170. package/dist/engine/ui/filters/host.d.ts +102 -0
  171. package/dist/engine/ui/filters/multi.d.ts +6 -0
  172. package/dist/engine/ui/filters/number.d.ts +15 -0
  173. package/dist/engine/ui/filters/numberMask.d.ts +15 -0
  174. package/dist/engine/ui/filters/set.d.ts +3 -0
  175. package/dist/engine/ui/filters/simple.d.ts +52 -0
  176. package/dist/engine/ui/filters/text.d.ts +5 -0
  177. package/dist/engine/ui/filtersPanel.d.ts +18 -0
  178. package/dist/engine/ui/floating.d.ts +66 -0
  179. package/dist/engine/ui/floatingShorthand.d.ts +20 -0
  180. package/dist/engine/ui/floatingTypes.d.ts +82 -0
  181. package/dist/engine/ui/icons.d.ts +25 -0
  182. package/dist/engine/ui/menu.d.ts +45 -0
  183. package/dist/engine/ui/overlayHost.d.ts +7 -0
  184. package/dist/engine/ui/place.d.ts +37 -0
  185. package/dist/engine/ui/popup.d.ts +97 -0
  186. package/dist/engine/ui/sideBar.d.ts +26 -0
  187. package/dist/engine/ui/statusBar.d.ts +29 -0
  188. package/dist/engine/ui/toolbar/buttons.d.ts +21 -0
  189. package/dist/engine/ui/toolbar/chipState.d.ts +52 -0
  190. package/dist/engine/ui/toolbar/chips.d.ts +23 -0
  191. package/dist/engine/ui/toolbar/findBox.d.ts +10 -0
  192. package/dist/engine/ui/toolbar/quickFilterBox.d.ts +12 -0
  193. package/dist/engine/ui/toolbar/registry.d.ts +5 -0
  194. package/dist/engine/ui/toolbar/toolbar.d.ts +31 -0
  195. package/dist/engine/ui/toolbar/types.d.ts +23 -0
  196. package/dist/engine/ui/tooltip.d.ts +34 -0
  197. package/dist/engine/ui/virtualList.d.ts +35 -0
  198. package/dist/engine/viewport/heightView.d.ts +62 -0
  199. package/dist/engine/viewport/heights.d.ts +39 -0
  200. package/dist/engine/viewport/intervals.d.ts +19 -0
  201. package/dist/engine/viewport/range.d.ts +51 -0
  202. package/dist/engine/viewport/scroll.d.ts +45 -0
  203. package/dist/engine/viewport/stack.d.ts +160 -0
  204. package/dist/grid-C34VEap6.js +32310 -0
  205. package/dist/index.d.ts +19 -0
  206. package/dist/index.js +1273 -0
  207. package/dist/ingrid.css +1 -0
  208. package/dist/internal.d.ts +13 -0
  209. package/dist/internal.js +1 -0
  210. package/dist/locale/de.d.ts +4 -0
  211. package/dist/locale/de.js +222 -0
  212. package/dist/themes/primevue.css +63 -0
  213. package/dist/themes/tailwind.css +68 -0
  214. package/dist/vue/InGrid.vue.d.ts +263 -0
  215. package/dist/vue/stableOptions.d.ts +8 -0
  216. package/dist/vue/useClientSource.d.ts +28 -0
  217. package/dist/vue/useServerSource.d.ts +8 -0
  218. package/dist/vue/vueRenderer.d.ts +164 -0
  219. package/dist/xlsx-59umS_n_.js +325 -0
  220. package/package.json +78 -5
@@ -0,0 +1,160 @@
1
+ import type { RowRange } from './range';
2
+ /**
3
+ * The stack may take at most this share of the rows area; the deepest groups give way first. Both
4
+ * stacks together, of the area the sticking grand totals leave (`stackRoom`).
5
+ */
6
+ export declare const STACK_RATIO = 0.5;
7
+ /** The most the stack may take of a rows area of `rowsArea` px: ⌊rowsArea × `STACK_RATIO`⌋. */
8
+ export declare function stackCap(rowsArea: number): number;
9
+ /** What the rule asks of a source; the caller isolates the source and adapts it. */
10
+ export interface StackSource {
11
+ parentRow(row: number): number;
12
+ groupEnd(row: number): number;
13
+ /** `rowInfo(row).expanded`. */
14
+ open(row: number): boolean;
15
+ /** The cell part of the row's height. */
16
+ cellHeight(row: number): number;
17
+ /**
18
+ * `rowInfo(row).totalRow` of an open group — its total row right after it (`'top'`) or as its last row
19
+ * (`'bottom'`, `groupEnd − 1`); undefined = none. Absent: a source without group totals.
20
+ */
21
+ totalRow?(row: number): 'top' | 'bottom' | undefined;
22
+ }
23
+ /** A row of the top stack that sticks now (a group row, a top total, the top grand total). */
24
+ export interface StackEntry {
25
+ readonly row: number;
26
+ /** The summed cell heights stuck above it: the top grand total, its sticking ancestors and their top totals. */
27
+ readonly offset: number;
28
+ readonly height: number;
29
+ /**
30
+ * `groupEnd(row)`: one past its last displayed descendant. A top total's is its group's (it is pushed out with it),
31
+ * the top grand total's the row count (the list).
32
+ */
33
+ readonly end: number;
34
+ }
35
+ /** A row of the bottom stack that sticks now — a group's bottom total, the bottom grand total. */
36
+ export interface BottomEntry {
37
+ readonly row: number;
38
+ /** The summed cell heights stuck below it (`--_ig-stick-bottom`): the bottom grand total, its groups' outer totals. */
39
+ readonly offset: number;
40
+ readonly height: number;
41
+ /** The first row its span covers: the row right below its group row; the bottom grand total's 0 (the list). */
42
+ readonly start: number;
43
+ }
44
+ /**
45
+ * The stacks of one frame (the top one and the bottom one); `first` / `last` and the rows area it was
46
+ * built for are its cache key (the grid keeps the area).
47
+ */
48
+ export interface DrawnStack {
49
+ readonly first: number;
50
+ readonly last: number;
51
+ /** The shared cap of both stacks' group rows and group totals (`stackRoom`; `stackCap` while only groups stick). */
52
+ readonly cap: number;
53
+ /** What the bottom stack's group totals may take — `cap` less the top stack's tallest reach over this range. */
54
+ readonly bottomCap: number;
55
+ /** The sticking group rows among the ancestors of `first`, top-down. */
56
+ readonly kept: readonly StackEntry[];
57
+ /** The top stack's total rows before `first`, top-down: the top grand total, the kept ancestors' top totals. */
58
+ readonly keptTotals: readonly StackEntry[];
59
+ /** `kept`, `keptTotals` and the sticking candidates in `[first, last]` (group rows and their top totals). */
60
+ readonly byRow: ReadonlyMap<number, StackEntry>;
61
+ /** The bottom stack — the bottom grand total and the sticking bottom totals of the groups over the range. */
62
+ readonly bottomByRow: ReadonlyMap<number, BottomEntry>;
63
+ /** The bottom stack's rows after `last`, lowest first: the bottom grand total, the totals of `last`'s groups. */
64
+ readonly keptBottom: readonly BottomEntry[];
65
+ }
66
+ /** What sticks in a stack build, resolved by `stackRoom` from the options and the rows area. */
67
+ export interface StackRule {
68
+ /** Group rows and tree parents (`stickyGroupRows`). */
69
+ readonly groups: boolean;
70
+ /** Group total rows (`stickyTotalRows` `true` or `'group'`). */
71
+ readonly totals: boolean;
72
+ /** The top grand total's row (0) while it sticks; −1 = none. */
73
+ readonly grandTop: number;
74
+ /** The bottom grand total's row (the last) while it sticks; −1 = none. */
75
+ readonly grandBottom: number;
76
+ /** The source's row count: the top grand total's span ends there (the list). */
77
+ readonly rowCount: number;
78
+ }
79
+ /** Group rows only. */
80
+ export declare const GROUP_ROWS: StackRule;
81
+ /** What the options ask to stick over the rows a source shows now; `stackRoom` resolves it. */
82
+ export interface StackAsk {
83
+ /** `stickyGroupRows`. */
84
+ readonly groupRows: boolean;
85
+ /**
86
+ * `stickyTotalRows`: `true` group totals and the grand totals, `'group'` / `'grand'` only those, `false` none (also
87
+ * while the source makes no total rows).
88
+ */
89
+ readonly totalRows: boolean | 'grand' | 'group';
90
+ /** The row of the grand total the source shows first (0); −1 = none. */
91
+ readonly grandTop: number;
92
+ /** The row of the grand total the source shows last; −1 = none. */
93
+ readonly grandBottom: number;
94
+ readonly rowCount: number;
95
+ }
96
+ /** A rows area's room — what sticks and the stacks' shared cap. */
97
+ export interface StackRoom {
98
+ /** The ask, less a grand total that does not fit the rows area. */
99
+ readonly rule: StackRule;
100
+ /** `stackCap` over the rows area the sticking grand totals leave. */
101
+ readonly cap: number;
102
+ }
103
+ /**
104
+ * The room, in order. (1) The sticking grand totals take their cell heights first — level 0, they are
105
+ * the last to give way: the top one while it fits the rows area, then the bottom one while both fit. (2) The
106
+ * group rows and group totals of both stacks share `stackCap` over what the grand totals leave; `buildStack` gives the
107
+ * top stack its part first.
108
+ */
109
+ export declare function stackRoom(src: StackSource, rowsArea: number, ask: StackAsk): StackRoom;
110
+ /**
111
+ * The stacks of a render range. An empty range has no entries.
112
+ *
113
+ * - **The grand totals** that stick (`rule`, `stackRoom`) are the stacks' bases: the top one at offset 0 over the list,
114
+ * the bottom one at offset 0 under it.
115
+ * - **The groups** whose rows the range shows: the ancestors of `render.first`, then every open group with rows below it
116
+ * in the range, each after its parent.
117
+ * - **The top stack**, over `cap`: per group, top-down, its row (while group rows stick) and right under it its top total
118
+ * (while group totals stick); a group's children go on under that, and the first that does not fit ends its branch,
119
+ * so the deepest give way first.
120
+ * - **The bottom stack** gets what the top stack's tallest reach leaves of `cap` (`bottomCap`): per group, outermost
121
+ * first, its bottom total above its parent's (the outermost lowest), while it fits; a group without one passes its
122
+ * parent's place on. The group of the range's last row is left out: its rows lie past the range.
123
+ */
124
+ export declare function buildStack(src: StackSource, render: RowRange, cap: number, rule?: StackRule): DrawnStack;
125
+ /**
126
+ * The height the top stack takes over `row`'s top: the top grand total (unless `row` is it),
127
+ * then per ancestor, top-down, its row (while group rows stick) and its top total (unless `row` is it), summed until one
128
+ * does not fit `cap`; with `self`, `row` itself too when every one fits and it is an open group row with rows below it.
129
+ */
130
+ export declare function stackOver(src: StackSource, row: number, cap: number, self: boolean, rule?: StackRule): number;
131
+ /**
132
+ * The mirror of `stackOver` — the height the bottom stack takes under `row`'s bottom: the bottom grand
133
+ * total (unless `row` is it), then the bottom totals of `row`'s groups (its own excepted), outermost first, summed until
134
+ * one does not fit `room` (a drawn stack's `bottomCap`).
135
+ */
136
+ export declare function stackUnder(src: StackSource, row: number, room: number, rule: StackRule): number;
137
+ /** The scroll inset a stack of `sum` px asks for: one px less, so the row tucks under the stack's last border. */
138
+ export declare function stackInset(sum: number): number;
139
+ /**
140
+ * Whether the entry is in the stack at `modelTop`: its spot (one px tucked) has passed the row's own top
141
+ * and not yet reached the top of its group's end, where the next sibling's natural place takes over.
142
+ */
143
+ export declare function inStack(e: StackEntry, top: (row: number) => number, modelTop: number): boolean;
144
+ /** The entries of `stack` in the stack at `modelTop`, top-down: by offset, then row. */
145
+ export declare function stackAt(stack: DrawnStack, top: (row: number) => number, modelTop: number): StackEntry[];
146
+ /**
147
+ * The mirror of `inStack` — whether the bottom entry is in the bottom stack at `modelTop`, in a rows area
148
+ * `area` px tall: its spot (`offset` px above the bottom edge, no tuck at the bare edge) lies at or above the row's
149
+ * own top, and the top of its span's first row (`start`, right below its group row) has not yet reached the spot's
150
+ * bottom — the line where the lower entries begin, which paint over a row being pushed out. Unlike `inStack` the first
151
+ * bound is inclusive: the top stack's 1 px tuck keeps its rows off that boundary, the bottom has none, and a row exactly
152
+ * on its spot is both on its own place and stuck — the state an `'end'` scroll leaves (within `HALF_PX`). The
153
+ * second stays exclusive: a row whose span begins at its slot's bottom shows nothing (it needs more than `HALF_PX`).
154
+ */
155
+ export declare function inBottom(e: BottomEntry, top: (row: number) => number, modelTop: number, area: number): boolean;
156
+ /**
157
+ * The entries of `stack`'s bottom stack at `modelTop` in a rows area `area` px tall (`inBottom`), top-down:
158
+ * the highest offset first, then by row.
159
+ */
160
+ export declare function bottomAt(stack: DrawnStack, top: (row: number) => number, modelTop: number, area: number): BottomEntry[];