MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / copyGroups

Function copyGroups

graph-ui/src/galaxy/organic-clusters.ts:44–45  ·  view source on GitHub ↗
(groups: readonly OrganicCluster[])

Source from the content-addressed store, hash-verified

42// Counts retained node records, member IDs and edge records, not just graphs.
43const MAX_GEOMETRY_WEIGHT = 100_000;
44const copyGroups = (groups: readonly OrganicCluster[]) => groups.map(group => ({ ...group,
45 nodeIds: [...group.nodeIds], center: { ...group.center } }));
46
47function samePoint(a: Point | undefined, b: Point | undefined): boolean {
48 return a === undefined || b === undefined ? a === b : a.x === b.x && a.y === b.y && a.z === b.z;

Callers 2

cachedGeometryFunction · 0.85
rememberGeometryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected