Skip to content

@graphty/graphty-element / session / TimeWindow

Interface: TimeWindow ​

Defined in: graphty-element/src/session/visibility/filter.ts:86

A stretch of a timeline, as the second producer of the visibility masks.

HALF-OPEN: an element is inside when its instant is at or after from and strictly before to. A range filter is inclusive at both ends because a slider's maximum is a value a person can pick; a window is half-open because consecutive windows have to tile a timeline without counting an event in two of them, and a temporal series built on overlapping windows reports changes that never happened.

Properties ​

attribute ​

readonly attribute: string

Defined in: graphty-element/src/session/visibility/filter.ts:88

The attribute carrying the instant, such as data.timestamp.


from ​

readonly from: string | number

Defined in: graphty-element/src/session/visibility/filter.ts:90

The first instant inside the window: a number, or a string Date.parse understands.


step? ​

readonly optional step?: TimeStep

Defined in: graphty-element/src/session/visibility/filter.ts:94

How far a caller advancing the window moves it. Carried, not applied.


to ​

readonly to: string | number

Defined in: graphty-element/src/session/visibility/filter.ts:92

The first instant past the window, in the same form as from.