Skip to content

frontend-web-editor


Function: grayOutSubgraph() ​

grayOutSubgraph(node, currentNodes, currentEdges): OnGrayedState

Defined in: utils/treeUtils.ts:205

Grays out the entire subgraph from the given node. The given node is also grayed out. This function attaches a unique branchId to all immediate children of the given node.

Parameters ​

node ​

Node<{ branchId?: string; isGrayed?: boolean; }>

Node from which the graph beneath is to be grayed out

currentNodes ​

Node[]

Current nodes

currentEdges ​

Edge[]

Current Edges

Returns ​

OnGrayedState