MCPcopy Index your code
hub / github.com/markmap/markmap / highlightNode

Function highlightNode

packages/markmap-cli/src/client/index.ts:99–107  ·  view source on GitHub ↗
(node?: INode)

Source from the content-addressed store, hash-verified

97}
98
99async function highlightNode(node?: INode) {
100 await mm.setHighlight(node);
101 if (!node) return;
102 await mm[
103 activeNodeOptions.placement === 'center' ? 'centerNode' : 'ensureVisible'
104 ](node, {
105 bottom: cliOptions.toolbar ? 80 : 0,
106 });
107}

Callers 1

setCursorFunction · 0.85

Calls 1

setHighlightMethod · 0.80

Tested by

no test coverage detected