Skip to content

pivotick v3.0.0


pivotick / GraphForecast

Interface: GraphForecast ​

Defined in: GraphRenderer.ts:51

What an action would do to the canvas, ready to paint.

A forecast leaves the graph exactly as it is — nothing dims, nothing moves — and marks only what the action would change: what would go, what would be hidden, and an outline of what would come back. That is the difference between a forecast and GraphRenderer.emphasiseElements, which reads a set out of the canvas by receding everything else.

GraphHistoryLike.preview hands one over ready-made, which is how hovering a history row shows what the click would do.

Properties ​

arriving? ​

optional arriving: object

Defined in: GraphRenderer.ts:59

Not on the canvas at all — drawn as an outline where it would land.

edges ​

edges: ForecastEdge[]

nodes ​

nodes: ForecastNode[]


hiding? ​

optional hiding: Node[]

Defined in: GraphRenderer.ts:57

Staying in the graph, but about to be hidden.


removing? ​

optional removing: (Node | Edge)[]

Defined in: GraphRenderer.ts:55

On their way out: still in place, drained.


touching? ​

optional touching: (Node | Edge)[]

Defined in: GraphRenderer.ts:53

Touched by the action and staying: ringed, otherwise left alone.