MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / focusNode

Function focusNode

frontend/layout/lib/layoutTree.ts:393–400  ·  view source on GitHub ↗
(layoutState: LayoutTreeState, action: LayoutTreeFocusNodeAction)

Source from the content-addressed store, hash-verified

391}
392
393export function focusNode(layoutState: LayoutTreeState, action: LayoutTreeFocusNodeAction) {
394 if (!action.nodeId) {
395 console.error("invalid focusNode operation, nodeId must be defined.");
396 return;
397 }
398
399 layoutState.focusedNodeId = action.nodeId;
400}
401
402export function magnifyNodeToggle(layoutState: LayoutTreeState, action: LayoutTreeMagnifyNodeToggleAction) {
403 if (!action.nodeId) {

Callers 1

treeReducerMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected