Function
focusNode
(layoutState: LayoutTreeState, action: LayoutTreeFocusNodeAction)
Source from the content-addressed store, hash-verified
| 391 | } |
| 392 | |
| 393 | export 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 | |
| 402 | export function magnifyNodeToggle(layoutState: LayoutTreeState, action: LayoutTreeMagnifyNodeToggleAction) { |
| 403 | if (!action.nodeId) { |
Tested by
no test coverage detected