const Data: LiveComponent<DataProps<DataSchema>>
Aggregate array-of-structs with fields T | T[] | T[][]
into grouped storage sources.
S
WGSL schema of input data + accessors
Record<string, any> | (Record)[]
Input data, array of structs of values/arrays, or 1 struct, if data is not virtualized
Record<string, ( i: number, ) => any>
Input data accessors, if data is virtualized
number
Input length, if data is virtualized
number
Input items to skip
number
Input version, if data is virtualized. Controls re-upload if set.
boolean
Resample data on every animation frame.
boolean
Data will never change
boolean | boolean[] | ( i: number, ) => boolean
Global flag or per item isLoop
accessor
boolean | boolean[] | ( i: number, ) => boolean
Global flag or per item hasStart
accessor
boolean | boolean[] | ( i: number, ) => boolean
Global flag or per item hasEnd
accessor
SegmentDecorator
Segment decorator(s)
number[]
Segments from tensor dimensions render?
(
sources: FromSchema<S, StorageSource | LambdaSource>,
) => LiveElement
children?
(
sources: FromSchema<S, StorageSource | LambdaSource>,
) => LiveElement
packages / workbench / src / data / data.ts