ixfx
    Preparing search index...

    Class PointsTracker

    A TrackedValueMap for points. Uses PointTracker to track added values.

    Hierarchy (View Summary)

    Index

    Accessors

    Constructors

    Methods

    • Returns a tracked value by id, or undefined if not found

      Parameters

      • id: string

      Returns
          | undefined
          | TrackerBase<
              Point,
              Readonly<
                  {
                      fromInitial: PointRelationResult;
                      fromLast: PointRelationResult;
                      fromMark: undefined
                      | PointRelationResult;
                      values: readonly Point[];
                  },
              >,
          >

    • Enumerate last received values

      Returns Generator<undefined | Point, void, unknown>

      const pointers = pointTracker();
      const c = Points.centroid(...Array.from(pointers.lastPoints()));
    • For a given id, note that we have seen one or more values.

      Parameters

      • id: string

        Id

      • ...values: Point[]

        Values(s)

      Returns Promise<
          Readonly<
              {
                  fromInitial: PointRelationResult;
                  fromLast: PointRelationResult;
                  fromMark: undefined
                  | PointRelationResult;
                  values: readonly Point[];
              },
          >,
      >

      Information about start to last value

    • 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>