Skip to main content

Module window

Module window 

Source
Expand description

Windows over lists of units that fill a byte budget, shared by the page and structure reads.

Traitsยง

HasId ๐Ÿ”’
An item with an id that selectors can anchor on.

Functionsยง

collapse_children ๐Ÿ”’
Replaces every child list of unit (innerBlocks, modules, chapters, pages) with a count and the path to read it from.
list_read ๐Ÿ”’
A window over a whole list, which offset and limit select. noun names what a path that through and around start from points at, e.g. โ€œa blockโ€.
reject_window ๐Ÿ”’
Errors with InvalidValue when selector has window fields, for reads of what that have none.
sibling_window ๐Ÿ”’
The [start, end) window through, around or limit select from the siblings around the one at index; None when the selector reads that sibling alone.
single_unit ๐Ÿ”’
A single requested unit; over budget, its children collapse so the agent can descend.
window ๐Ÿ”’
Fills a window [start, end) of list with whole units until the budget runs out.