MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / graphAnchor

Function graphAnchor

deployments/desktop/static/desktop.js:3241–3247  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

3239 }
3240
3241 function graphAnchor(node) {
3242 const type = graphType(node);
3243 if (type === "method") return { x: 64, y: 42 };
3244 if (type === "paper") return { x: 46, y: 74 };
3245 if (type === "frontier") return { x: 74, y: 30 };
3246 return { x: 34, y: 42 };
3247 }
3248
3249 function graphDegreeMap(nodes, edges) {
3250 const degree = Object.fromEntries(nodes.map((node) => [graphId(node), 0]));

Callers

nothing calls this directly

Calls 1

graphTypeFunction · 0.85

Tested by

no test coverage detected