Skip to content

@eightkk/vue-weave / core / WindowedDataOptions

Interface: WindowedDataOptions<T, L> ​

Defined in: src/core/windowedData.ts:45

Extended by ​

Type Parameters ​

T ​

T

L ​

L = never

Properties ​

chunkSize ​

chunkSize: number

Defined in: src/core/windowedData.ts:47

Length of one chunk in time units; requests and cells are aligned to chunks. A positive finite number. Required.


itemId? ​

optional itemId?: (item) => string

Defined in: src/core/windowedData.ts:57

ID of an item. Default item.id.

Parameters ​

item ​

T

Returns ​

string


itemRange? ​

optional itemRange?: (item) => TimeRange | undefined

Defined in: src/core/windowedData.ts:61

Half-open interval of an item, used to tell loaded from loaded-empty per chunk. Default item.start and item.end; undefined counts for every requested chunk.

Parameters ​

item ​

T

Returns ​

TimeRange | undefined


itemRow? ​

optional itemRow?: (item) => string | undefined

Defined in: src/core/windowedData.ts:59

Row of an item, used to tell loaded from loaded-empty per row. Default item.rowId; undefined counts for every requested row.

Parameters ​

item ​

T

Returns ​

string | undefined


linkId? ​

optional linkId?: (link) => string

Defined in: src/core/windowedData.ts:63

ID of a link (WindowedDataPage.links). Default link.id.

Parameters ​

L

Returns ​

string


maxCells? ​

optional maxCells?: number

Defined in: src/core/windowedData.ts:55

Most cells one view may need; a larger view throws RangeError. Default 100000.


maxChunksPerRequest? ​

optional maxChunksPerRequest?: number

Defined in: src/core/windowedData.ts:53

Most chunks one request may span. Default Infinity (adjacent chunks with the same missing rows share one request).


origin? ​

optional origin?: number

Defined in: src/core/windowedData.ts:49

Time at which chunk 0 starts. Default 0. Chunk k is [origin + k * chunkSize, origin + (k + 1) * chunkSize).


padding? ​

optional padding?: number

Defined in: src/core/windowedData.ts:51

Time units added before and after the view before it is aligned to chunks, so small scrolls do not refetch. Default 0.

Released under the MIT License.