MCPcopy
hub / github.com/markmap/markmap / setCursor

Function setCursor

packages/markmap-cli/src/client/index.ts:93–97  ·  view source on GitHub ↗
(options: { line: number; autoExpand?: boolean })

Source from the content-addressed store, hash-verified

91}
92
93async function setCursor(options: { line: number; autoExpand?: boolean }) {
94 if (!state.content.value) return;
95 const node = findActiveNode(options);
96 await highlightNode(node);
97}
98
99async function highlightNode(node?: INode) {
100 await mm.setHighlight(node);

Callers 1

checkDataFunction · 0.85

Calls 2

findActiveNodeFunction · 0.85
highlightNodeFunction · 0.85

Tested by

no test coverage detected