Skip to content

frontend-web-editor


Function: FaultTreeState()

FaultTreeState(state): FaultTreeGraph

Defined in: utils/treeUtils.ts:89

Generate the fault tree state with the provided list of nodes and edges, for a particular fault tree id.

Parameters

state

FaultTreeStateType

Object containing faultTreeId, nodes, and edges.

Returns

FaultTreeGraph

A normalized FaultTreeGraph snapshot.