gradum-kit - v0.1.0
    Preparing search index...

    Type Alias ReifectAppliedOptions<State, ClassType>

    Options controlling one application of a reifect — how widely it reaches, and how much of its cached per-object data it recomputes first.

    type ReifectAppliedOptions<
        State extends KeyType = any,
        ClassType extends object = Element,
    > = {
        attachObjects?: boolean;
        executeForAll?: boolean;
        recomputeIndices?: boolean;
        recomputeProperties?: boolean;
        applyStylesInstantly?: boolean;
        propertiesOverride?: StatefulReifectCoreProperties<State, ClassType>;
    }

    Type Parameters

    • State extends KeyType = any

      The set of states the reifect can switch between.

    • ClassType extends object = Element

      The type of the attached object.

    Index
    attachObjects?: boolean

    Attach any object passed in that is not attached yet.

    executeForAll?: boolean

    Apply to every attached object rather than only the one given.

    recomputeIndices?: boolean

    Recompute each object's index and total before applying.

    recomputeProperties?: boolean

    Re-resolve interpolated values before applying.

    applyStylesInstantly?: boolean

    Set styles directly instead of on the next frame, skipping any CSS transition.

    Values to use for this application in place of the reifect's own.