pivotick / GraphUI / EmptyStateContext
Interface: EmptyStateContext
Defined in: interfaces/GraphUI.ts:349
Handed to EmptyStateOptions.render.
Extends
Methods
isStale()
isStale():
boolean
Defined in: interfaces/AsyncContent.ts:71
true once this render has been superseded. A cheap guard for consumers doing non-abortable work, so they can bail out between steps without touching RenderContext.signal.
Returns
boolean
Inherited from
Properties
graph
graph:
Pivotick
Defined in: interfaces/GraphUI.ts:350
initial
initial:
boolean
Defined in: interfaces/GraphUI.ts:356
true while the graph has never held a node since it was built; false once it has, so an analyst emptying a full canvas can be told something other than what an empty source is told.
signal
readonlysignal:AbortSignal
Defined in: interfaces/AsyncContent.ts:65
Aborted when this render is superseded — the tooltip hid or reopened for another element, the selection changed, the panel was refreshed or removed, the graph was destroyed. Forward it to fetch and in-flight requests are cancelled instead of leaked.