MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / buildPositionsMap

Function buildPositionsMap

yaml-flow-editor/src/utils/layout.ts:295–299  ·  view source on GitHub ↗
(nodeList: FlowNode[])

Source from the content-addressed store, hash-verified

293 });
294
295 const buildPositionsMap = (nodeList: FlowNode[]): Map<string, { x: number; y: number }> => {
296 const m = new Map<string, { x: number; y: number }>();
297 nodeList.forEach((n) => m.set(n.id, n.position));
298 return m;
299 };
300
301 const hasAnyOverlapInFlow = (nodeList: FlowNode[], positions?: Map<string, { x: number; y: number }>): boolean => {
302 const inFlow = nodeList.filter((n) => inSameFlow.has(n.id));

Callers 1

hasAnyOverlapInFlowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected