Protected
debugReadonly
idReturns the elapsed time, in milliseconds since the initial value
Returns the oldest value in the buffer
Last seen value. If no values have been added, it will return the initial value
Returns the total length of accumulated points. Returns 0 if points were not saved, or there's only one
Returns number of recorded values (includes the initial value in the count)
Returns the last x coord
Returns the last y coord
Returns the last z coord (or undefined if not available)
Tracks a point, returning data on its relation to the initial point and the last received point.
Use seenEvent to track a raw PointerEvent
.
Point
Notification that buffer has been knocked down to sampleLimit
.
This will reset the initialRelation
, which will use the new oldest value.
Adds a value, returning computed result.
At this point, we check if the buffer is larger than resetAfterSamples
. If so, reset()
is called.
If not, we check sampleLimit
. If the buffer is twice as large as sample limit, trimStore()
is
called to take it down to sample limit, and onTrimmed()
is called.
Rest
...p: Point[]Adds a PointerEvent along with its coalesced events, if available.
Point tracker. Create via
Trackers.point()
.