meo-canvas - v8.1.0
    Preparing search index...

    Interface Sampled<T>

    Anything sampled per page and able to report how long it lasts.

    A track, a sequence, and a group built here all satisfy it, which is what lets groups nest and lets a member be swapped for a sequence without the call site changing.

    interface Sampled<T> {
        duration: number;
        at(page: PageInfo, index?: number): T;
        totalDuration(count: number): number;
    }

    Type Parameters

    • T
    Index
    duration: number

    How long one pass takes, in seconds.

    • The value at one page. index overrides the page's own position when sampling a group.

      Parameters

      Returns T

    • How long count pages take in total, in seconds — a pass plus whatever stagger separates them.

      Parameters

      • count: number

      Returns number