@graphty/graphty-element / session / VisibilityChange
Interface: VisibilityChange ​
Defined in: graphty-element/src/session/visibility/VisibilityApi.ts:156
What one visibility change was, as an event carries it.
filterKind names WHAT PRODUCED THIS CHANGE, not what state the model is in: the filter's kind for a filter, "window" for a time window, "context" for the context flag, and "none" when the producer was cleared.
Extends ​
Properties ​
cause ​
readonlycause:HistoryCause
Defined in: graphty-element/src/session/visibility/VisibilityApi.ts:160
Whether an edit, an undo, a redo, a restore or a rolled-back transaction made it.
durationMs ​
readonlydurationMs:number
Defined in: graphty-element/src/session/visibility/VisibilityApi.ts:146
How long the pass took, in milliseconds.
Inherited from ​
filterKind ​
readonlyfilterKind:string
Defined in: graphty-element/src/session/visibility/VisibilityApi.ts:158
What produced this change.
total ​
readonlytotal:object
Defined in: graphty-element/src/session/visibility/VisibilityApi.ts:131
How many elements the graph holds.
edges ​
readonlyedges:number
Edges in the graph.
nodes ​
readonlynodes:number
Nodes in the graph.
Inherited from ​
unresolvedPaths ​
readonlyunresolvedPaths: readonlystring[]
Defined in: graphty-element/src/session/visibility/VisibilityApi.ts:144
The paths nothing in this session answered.
Matching nothing is a LEGITIMATE answer for a filter, so an unanswerable path is reported beside the counts instead of thrown: a consumer can say "0 matched -- data.rank is not an attribute on this graph" rather than showing a confident empty screen.
Inherited from ​
visible ​
readonlyvisible:object
Defined in: graphty-element/src/session/visibility/VisibilityApi.ts:124
How many elements are visible now.
edges ​
readonlyedges:number
Visible edges.
nodes ​
readonlynodes:number
Visible nodes.