@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/jsenv_navi.js
CHANGED
|
@@ -74162,9 +74162,12 @@ const readRoomAround = ({
|
|
|
74162
74162
|
// too — and an item not drawn is taken to weigh what the drawn items at that
|
|
74163
74163
|
// edge of the window weigh. Items of one kind come together (the one-line
|
|
74164
74164
|
// items of the past, the cards ahead), and an item misjudged is weighed again
|
|
74165
|
-
// once it is drawn (see "after slide"):
|
|
74166
|
-
//
|
|
74167
|
-
//
|
|
74165
|
+
// once it is drawn (see "after slide"): a window that came up short is
|
|
74166
|
+
// extended on the next frame, from what it measured. Weighing an item not drawn
|
|
74167
|
+
// at the average of all items, or at the smallest an item can be so that the
|
|
74168
|
+
// window never comes up short, walks into the cards at the one-line size,
|
|
74169
|
+
// several at a time — the latter measured in wematch: no blank spared, 50–65 ms
|
|
74170
|
+
// tasks while reading down through the cards.
|
|
74168
74171
|
const EDGE_SAMPLE_ITEM_COUNT = 8;
|
|
74169
74172
|
const createItemSizeReader = (items, start, end, itemSize) => {
|
|
74170
74173
|
const sizeByIndex = new Map();
|
|
@@ -76637,11 +76640,18 @@ const ListResolved = /*#__PURE__*/createComponentResolver([ListFirstResolver, Li
|
|
|
76637
76640
|
* source for is a page (see `<List.Items pageSize>`), whatever either says,
|
|
76638
76641
|
* so the first picture costs no second request.
|
|
76639
76642
|
* @param {number} [props.virtualItemSize]
|
|
76640
|
-
* The
|
|
76641
|
-
*
|
|
76642
|
-
*
|
|
76643
|
-
*
|
|
76644
|
-
*
|
|
76643
|
+
* The room an item not drawn is held at, in px along the scroll axis: what
|
|
76644
|
+
* the fillers hold for each item outside the render window, what a scroll
|
|
76645
|
+
* position inside them is read with, and the least an item on its way takes
|
|
76646
|
+
* (see `renderSkeleton`). Left out, it is the average of the items measured
|
|
76647
|
+
* so far — once when the list mounts, again when a popup around it opens,
|
|
76648
|
+
* and after each commit while items are held off screen. Given, it is the
|
|
76649
|
+
* worst case: the size every item has, or, in a list whose items differ, the
|
|
76650
|
+
* smallest an item can be (a thread of one-line items and cards: the
|
|
76651
|
+
* one-line size) — an item guessed too small builds one more, an item
|
|
76652
|
+
* guessed too big leaves a blank (see docs/scroll.md, "What the list knows,
|
|
76653
|
+
* and what it guesses"). The items drawn are measured either way: the render
|
|
76654
|
+
* window is sized on them.
|
|
76645
76655
|
* @param {"self"|"parent"|"document"|Element|{current: Element}} [props.scroller="self"]
|
|
76646
76656
|
* Which box scrolls — and with it, which box the render window follows and
|
|
76647
76657
|
* which box a scroll position is read from (`onScrolledChange`). `"self"`
|