MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / setDefault

Function setDefault

ui/src/lib/map-model.ts:597–604  ·  view source on GitHub ↗
(
  map: Map<string, { top: SidePort[]; bottom: SidePort[] }>,
  key: string
)

Source from the content-addressed store, hash-verified

595}
596
597function setDefault(
598 map: Map<string, { top: SidePort[]; bottom: SidePort[] }>,
599 key: string
600): { top: SidePort[]; bottom: SidePort[] } {
601 const sides = { top: [], bottom: [] };
602 map.set(key, sides);
603 return sides;
604}
605
606function xOf(nodes: Map<string, MapNodeLayout>, id: string): number {
607 const node = nodes.get(id);

Callers 1

buildMapLayoutFunction · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected