@jsenv/navi 0.29.422 → 0.29.423
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.
- package/dist/dev/jsenv_navi.js +18 -8
- package/dist/dev/jsenv_navi.js.map +2 -2
- package/dist/jsenv_navi.js +18 -8
- package/dist/jsenv_navi.js.map +2 -2
- package/docs/scroll.md +40 -5
- package/package.json +1 -1
package/dist/dev/jsenv_navi.js
CHANGED
|
@@ -75640,9 +75640,12 @@ const readRoomAround = ({
|
|
|
75640
75640
|
// too — and an item not drawn is taken to weigh what the drawn items at that
|
|
75641
75641
|
// edge of the window weigh. Items of one kind come together (the one-line
|
|
75642
75642
|
// items of the past, the cards ahead), and an item misjudged is weighed again
|
|
75643
|
-
// once it is drawn (see "after slide"):
|
|
75644
|
-
//
|
|
75645
|
-
//
|
|
75643
|
+
// once it is drawn (see "after slide"): a window that came up short is
|
|
75644
|
+
// extended on the next frame, from what it measured. Weighing an item not drawn
|
|
75645
|
+
// at the average of all items, or at the smallest an item can be so that the
|
|
75646
|
+
// window never comes up short, walks into the cards at the one-line size,
|
|
75647
|
+
// several at a time — the latter measured in wematch: no blank spared, 50–65 ms
|
|
75648
|
+
// tasks while reading down through the cards.
|
|
75646
75649
|
const EDGE_SAMPLE_ITEM_COUNT = 8;
|
|
75647
75650
|
const createItemSizeReader = (items, start, end, itemSize) => {
|
|
75648
75651
|
const sizeByIndex = new Map();
|
|
@@ -78127,11 +78130,18 @@ const ListResolved = /*#__PURE__*/createComponentResolver([ListFirstResolver, Li
|
|
|
78127
78130
|
* source for is a page (see `<List.Items pageSize>`), whatever either says,
|
|
78128
78131
|
* so the first picture costs no second request.
|
|
78129
78132
|
* @param {number} [props.virtualItemSize]
|
|
78130
|
-
* The
|
|
78131
|
-
*
|
|
78132
|
-
*
|
|
78133
|
-
*
|
|
78134
|
-
*
|
|
78133
|
+
* The room an item not drawn is held at, in px along the scroll axis: what
|
|
78134
|
+
* the fillers hold for each item outside the render window, what a scroll
|
|
78135
|
+
* position inside them is read with, and the least an item on its way takes
|
|
78136
|
+
* (see `renderSkeleton`). Left out, it is the average of the items measured
|
|
78137
|
+
* so far — once when the list mounts, again when a popup around it opens,
|
|
78138
|
+
* and after each commit while items are held off screen. Given, it is the
|
|
78139
|
+
* worst case: the size every item has, or, in a list whose items differ, the
|
|
78140
|
+
* smallest an item can be (a thread of one-line items and cards: the
|
|
78141
|
+
* one-line size) — an item guessed too small builds one more, an item
|
|
78142
|
+
* guessed too big leaves a blank (see docs/scroll.md, "What the list knows,
|
|
78143
|
+
* and what it guesses"). The items drawn are measured either way: the render
|
|
78144
|
+
* window is sized on them.
|
|
78135
78145
|
* @param {"self"|"parent"|"document"|Element|{current: Element}} [props.scroller="self"]
|
|
78136
78146
|
* Which box scrolls — and with it, which box the render window follows and
|
|
78137
78147
|
* which box a scroll position is read from (`onScrolledChange`). `"self"`
|