{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/plugins/diagram.structure.plugin.ts",
          "name": "structRelations",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-plugins-diagram-structure-plugin-ts",
            "json": "https://banes-lab.com/json/source/docs/core/plugins/diagram.structure.plugin.ts",
            "label": "core/plugins/diagram.structure.plugin.ts",
            "markdown": "https://banes-lab.com/source/docs/core/plugins/diagram.structure.plugin.ts.md",
            "ref": "anatomy:file-docs-core-plugins-diagram-structure-plugin-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "isStructEdge",
      "signature": "const isStructEdge = function isStructEdge(edge: CodeEdge, ids: ReadonlySet<string>): boolean {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/plugins/diagram.structure.plugin.ts",
          "name": "isStructEdge",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-plugins-diagram-structure-plugin-ts",
            "json": "https://banes-lab.com/json/source/docs/core/plugins/diagram.structure.plugin.ts",
            "label": "core/plugins/diagram.structure.plugin.ts",
            "markdown": "https://banes-lab.com/source/docs/core/plugins/diagram.structure.plugin.ts.md",
            "ref": "anatomy:file-docs-core-plugins-diagram-structure-plugin-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "structRelations",
      "signature": "const structRelations = function structRelations("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/formatters/diagram.structure.formatter.ts",
          "name": "emitClassDiagram",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-formatters-diagram-structure-formatter-ts",
            "json": "https://banes-lab.com/json/source/docs/core/formatters/diagram.structure.formatter.ts",
            "label": "core/formatters/diagram.structure.formatter.ts",
            "markdown": "https://banes-lab.com/source/docs/core/formatters/diagram.structure.formatter.ts.md",
            "ref": "anatomy:file-docs-core-formatters-diagram-structure-formatter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 43,
      "name": "render",
      "signature": "render(context) {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "STRUCT_KINDS",
      "signature": "const STRUCT_KINDS: ReadonlySet<CodeNodeKind> = new Set<CodeNodeKind>([\"entry\", \"factory\", \"collaborator\", \"registry\"]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "STRUCT_EDGE_KINDS",
      "signature": "const STRUCT_EDGE_KINDS: ReadonlySet<CodeEdge[\"kind\"]> = new Set<CodeEdge[\"kind\"]>([\"call\", \"data-flow\"]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "MIN_STRUCT_NODES",
      "signature": "const MIN_STRUCT_NODES = 2;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "byKey",
      "signature": "const byKey = new Map<string, ClassRelation>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "key",
      "signature": "const key = `${edge.from} ${edge.to}`;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "diagram",
      "signature": "export const diagram: DiagramKind = {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 36,
      "name": "appliesTo",
      "signature": "appliesTo(context) {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "graph",
      "signature": "const graph = collapseByLabel(context.codeGraph);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "structNodes",
      "signature": "const structNodes = graph.nodes.filter((node) => STRUCT_KINDS.has(node.kind));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "ids",
      "signature": "const ids = new Set(structNodes.map((node) => node.id));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "classes",
      "signature": "const classes: ClassBox[] = structNodes.map((node) => ({ id: node.id, label: node.label, members: [] }));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "model",
      "signature": "const model: ClassModel = {"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/docs#file-docs-core-plugins-diagram-structure-plugin-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "diagram.structure.plugin.ts",
  "path": "core/plugins/diagram.structure.plugin.ts",
  "ref": "anatomy:file-docs-core-plugins-diagram-structure-plugin-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-plugins",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-plugins",
          "label": "core/plugins",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-plugins.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-plugins"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-formatters-diagram-structure-formatter-ts",
          "json": "https://banes-lab.com/json/source/docs/core/formatters/diagram.structure.formatter.ts",
          "label": "core/formatters/diagram.structure.formatter.ts",
          "markdown": "https://banes-lab.com/source/docs/core/formatters/diagram.structure.formatter.ts.md",
          "ref": "anatomy:file-docs-core-formatters-diagram-structure-formatter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-formatters",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-formatters",
          "label": "core/formatters",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-formatters.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-formatters"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-plugins",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-plugins",
          "label": "core/plugins",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-plugins.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-plugins"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "plugin",
    "subject": "diagram",
    "variant": "structure"
  },
  "stats": {
    "bytes": 2581,
    "callable": 4,
    "definitions": 15,
    "edges": 2,
    "exported": 8,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 2,
      "isolated": 12
    },
    "lines": {
      "blank": 4,
      "code": 60,
      "total": 64
    }
  },
  "summary": "60 lines of code and 15 definitions.",
  "text": "https://banes-lab.com/source/docs/core/plugins/diagram.structure.plugin.ts.txt",
  "tree": "docs",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-plugins-manifest-agent-plugin-ts",
      "json": "https://banes-lab.com/json/source/docs/core/plugins/manifest.agent.plugin.ts",
      "label": "core/plugins/manifest.agent.plugin.ts",
      "markdown": "https://banes-lab.com/source/docs/core/plugins/manifest.agent.plugin.ts.md",
      "ref": "anatomy:file-docs-core-plugins-manifest-agent-plugin-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-plugins-diagram-shell-plugin-ts",
      "json": "https://banes-lab.com/json/source/docs/core/plugins/diagram.shell.plugin.ts",
      "label": "core/plugins/diagram.shell.plugin.ts",
      "markdown": "https://banes-lab.com/source/docs/core/plugins/diagram.shell.plugin.ts.md",
      "ref": "anatomy:file-docs-core-plugins-diagram-shell-plugin-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/docs/core/plugins",
    "label": "core/plugins",
    "markdown": "https://banes-lab.com/api/source/docs/core/plugins.md",
    "ref": "api:source/docs/core/plugins"
  }
}
