MCPcopy Create free account
hub / github.com/microsoft/SandDance / treePath

Function treePath

docs/app/js/sanddance-app.js:143073–143076  ·  view source on GitHub ↗
(name, source, target)

Source from the content-addressed store, hash-verified

143071 return tree.root && tree.root.lookup || {};
143072}
143073function treePath(name, source, target) {
143074 const nodes = treeNodes(name, this), s = nodes[source], t = nodes[target];
143075 return s && t ? s.path(t).map(datum) : undefined;
143076}
143077function treeAncestors(name, node) {
143078 const n = treeNodes(name, this)[node];
143079 return n ? n.ancestors().map(datum) : undefined;

Callers

nothing calls this directly

Calls 1

treeNodesFunction · 0.70

Tested by

no test coverage detected