{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/formatters/diagram.formatter.ts",
          "name": "accLines",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-formatters-diagram-formatter-ts",
            "json": "https://banes-lab.com/json/source/docs/core/formatters/diagram.formatter.ts",
            "label": "core/formatters/diagram.formatter.ts",
            "markdown": "https://banes-lab.com/source/docs/core/formatters/diagram.formatter.ts.md",
            "ref": "anatomy:file-docs-core-formatters-diagram-formatter-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/formatters/system.formatter.ts",
          "name": "dataEntityDiagram",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-formatters-system-formatter-ts",
            "json": "https://banes-lab.com/json/source/docs/core/formatters/system.formatter.ts",
            "label": "core/formatters/system.formatter.ts",
            "markdown": "https://banes-lab.com/source/docs/core/formatters/system.formatter.ts.md",
            "ref": "anatomy:file-docs-core-formatters-system-formatter-ts"
          }
        },
        {
          "file": "core/plugins/diagram.definition.plugin.ts",
          "name": "render",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-plugins-diagram-definition-plugin-ts",
            "json": "https://banes-lab.com/json/source/docs/core/plugins/diagram.definition.plugin.ts",
            "label": "core/plugins/diagram.definition.plugin.ts",
            "markdown": "https://banes-lab.com/source/docs/core/plugins/diagram.definition.plugin.ts.md",
            "ref": "anatomy:file-docs-core-plugins-diagram-definition-plugin-ts"
          }
        },
        {
          "file": "core/plugins/diagram.structure.plugin.ts",
          "name": "render",
          "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": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "emitClassDiagram",
      "signature": "export const emitClassDiagram = function emitClassDiagram(model: ClassModel): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/normalizers/diagram.normalizer.ts",
          "name": "idSanitize",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-normalizers-diagram-normalizer-ts",
            "json": "https://banes-lab.com/json/source/docs/core/normalizers/diagram.normalizer.ts",
            "label": "core/normalizers/diagram.normalizer.ts",
            "markdown": "https://banes-lab.com/source/docs/core/normalizers/diagram.normalizer.ts.md",
            "ref": "anatomy:file-docs-core-normalizers-diagram-normalizer-ts"
          }
        },
        {
          "file": "core/normalizers/diagram.normalizer.ts",
          "name": "idSanitize",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-normalizers-diagram-normalizer-ts",
            "json": "https://banes-lab.com/json/source/docs/core/normalizers/diagram.normalizer.ts",
            "label": "core/normalizers/diagram.normalizer.ts",
            "markdown": "https://banes-lab.com/source/docs/core/normalizers/diagram.normalizer.ts.md",
            "ref": "anatomy:file-docs-core-normalizers-diagram-normalizer-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "relationLine",
      "signature": "const relationLine = function relationLine(relation: ClassRelation): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "INDENT",
      "signature": "const INDENT = \"    \";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "RELATION_SYMBOLS",
      "signature": "const RELATION_SYMBOLS: ReadonlyMap<ClassRelationKind, string> = new Map<ClassRelationKind, string>(["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "byBoxId",
      "signature": "const byBoxId = byString<ClassBox>((box) => box.id);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "byMemberName",
      "signature": "const byMemberName = byString<ClassMember>((member) => member.name);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "byRelation",
      "signature": "const byRelation = byString<ClassRelation>((relation) => `${relation.from} ${relation.to} ${relation.kind}`);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "memberLines",
      "signature": "const memberLines = function memberLines(box: ClassBox): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "id",
      "signature": "const id = idSanitize(box.id);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "suffix",
      "signature": "const suffix = typeof relation.label === \"string\" ? ` : ${label(relation.label)}` : \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "symbol",
      "signature": "const symbol = RELATION_SYMBOLS.get(relation.kind) ?? \"\";"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/docs#file-docs-core-formatters-diagram-structure-formatter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "diagram.structure.formatter.ts",
  "path": "core/formatters/diagram.structure.formatter.ts",
  "ref": "anatomy:file-docs-core-formatters-diagram-structure-formatter-ts",
  "relations": [
    {
      "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"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-formatters-diagram-formatter-ts",
          "json": "https://banes-lab.com/json/source/docs/core/formatters/diagram.formatter.ts",
          "label": "core/formatters/diagram.formatter.ts",
          "markdown": "https://banes-lab.com/source/docs/core/formatters/diagram.formatter.ts.md",
          "ref": "anatomy:file-docs-core-formatters-diagram-formatter-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-normalizers-diagram-normalizer-ts",
          "json": "https://banes-lab.com/json/source/docs/core/normalizers/diagram.normalizer.ts",
          "label": "core/normalizers/diagram.normalizer.ts",
          "markdown": "https://banes-lab.com/source/docs/core/normalizers/diagram.normalizer.ts.md",
          "ref": "anatomy:file-docs-core-normalizers-diagram-normalizer-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-formatters-system-formatter-ts",
          "json": "https://banes-lab.com/json/source/docs/core/formatters/system.formatter.ts",
          "label": "core/formatters/system.formatter.ts",
          "markdown": "https://banes-lab.com/source/docs/core/formatters/system.formatter.ts.md",
          "ref": "anatomy:file-docs-core-formatters-system-formatter-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-plugins-diagram-definition-plugin-ts",
          "json": "https://banes-lab.com/json/source/docs/core/plugins/diagram.definition.plugin.ts",
          "label": "core/plugins/diagram.definition.plugin.ts",
          "markdown": "https://banes-lab.com/source/docs/core/plugins/diagram.definition.plugin.ts.md",
          "ref": "anatomy:file-docs-core-plugins-diagram-definition-plugin-ts"
        },
        {
          "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"
        }
      ],
      "relation": "used-by"
    },
    {
      "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-normalizers",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-normalizers",
          "label": "core/normalizers",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-normalizers.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-normalizers"
        },
        {
          "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": "formatter",
    "subject": "diagram",
    "variant": "structure"
  },
  "stats": {
    "bytes": 1712,
    "callable": 3,
    "definitions": 11,
    "edges": 3,
    "exported": 1,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "entry": 1,
      "isolated": 9
    },
    "lines": {
      "blank": 6,
      "code": 34,
      "total": 40
    }
  },
  "summary": "34 lines of code and 11 definitions.",
  "text": "https://banes-lab.com/source/docs/core/formatters/diagram.structure.formatter.ts.txt",
  "tree": "docs",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-formatters-document-formatter-ts",
      "json": "https://banes-lab.com/json/source/docs/core/formatters/document.formatter.ts",
      "label": "core/formatters/document.formatter.ts",
      "markdown": "https://banes-lab.com/source/docs/core/formatters/document.formatter.ts.md",
      "ref": "anatomy:file-docs-core-formatters-document-formatter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-formatters-diagram-sequence-formatter-ts",
      "json": "https://banes-lab.com/json/source/docs/core/formatters/diagram.sequence.formatter.ts",
      "label": "core/formatters/diagram.sequence.formatter.ts",
      "markdown": "https://banes-lab.com/source/docs/core/formatters/diagram.sequence.formatter.ts.md",
      "ref": "anatomy:file-docs-core-formatters-diagram-sequence-formatter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/docs/core/formatters",
    "label": "core/formatters",
    "markdown": "https://banes-lab.com/api/source/docs/core/formatters.md",
    "ref": "api:source/docs/core/formatters"
  }
}
