ixfx
    Preparing search index...

    Class UserPointersTracker

    Keeps track of keyed values of type V (eg Point). It stores occurences in type T, which must extend from TrackerBase<V>, eg PointTracker.

    The creator function passed in to the constructor is responsible for instantiating the appropriate TrackerBase sub-class.

    export class PointsTracker extends TrackedValueMap<Points.Point> {
    constructor(opts:TrackOpts = {}) {
    super((key, start) => {
    if (start === undefined) throw new Error(`Requires start point`);
    const p = new PointTracker(key, opts);
    p.seen(start);
    return p;
    });
    }
    }

    Hierarchy (View Summary)

    Index

    Accessors

    Constructors

    Methods

    • Enumerate last received values

      Returns Generator<undefined | Point, void, unknown>

      const pointers = pointTracker();
      const c = Points.centroid(...Array.from(pointers.lastPoints()));
    • Iterates underlying values, ordered by age (oldest first) First the named values are sorted by their elapsed value, and then we return the last value for that group.

      Returns Generator<undefined | Point, void, unknown>

    Properties

    store: Map<string, PointTracker<Point>>