MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / clearTree

Function clearTree

frontend/layout/lib/layoutTree.ts:419–424  ·  view source on GitHub ↗
(layoutState: LayoutTreeState)

Source from the content-addressed store, hash-verified

417}
418
419export function clearTree(layoutState: LayoutTreeState) {
420 layoutState.rootNode = undefined;
421 layoutState.leafOrder = undefined;
422 layoutState.focusedNodeId = undefined;
423 layoutState.magnifiedNodeId = undefined;
424}
425
426export function replaceNode(layoutState: LayoutTreeState, action: LayoutTreeReplaceNodeAction) {
427 const { targetNodeId, newNode } = action;

Callers 1

treeReducerMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected