videx-3d
    Preparing search index...

    Type Alias DistanceProps

    Distance props

    type DistanceProps = {
        children: ReactNode;
        max: number;
        min?: number;
        onDemand?: boolean;
    }
    Index

    Properties

    children: ReactNode

    the elements that should be rendered when in visible range (min, max)

    max: number

    the maximum distance for which the child elements of this component is rendered

    min?: number

    the minimal distance for which the child elements of this component is rendered

    onDemand?: boolean

    if enabled, the child elements will only be loaded when within visible range, and will be unloaded/unmounted once it falls out of visible range