{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/analyzers/diagram.analyzer.ts",
          "name": "walkOrder",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-diagram-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/diagram.analyzer.ts",
            "label": "core/analyzers/diagram.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/diagram.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-diagram-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/diagram.analyzer.ts",
          "name": "walkOrder",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-diagram-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/diagram.analyzer.ts",
            "label": "core/analyzers/diagram.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/diagram.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-diagram-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/diagram.analyzer.ts",
          "name": "walkOrder",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-diagram-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/diagram.analyzer.ts",
            "label": "core/analyzers/diagram.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/diagram.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-diagram-analyzer-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "visit",
      "signature": "const visit = function visit(name: string): void {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/analyzers/diagram.analyzer.ts",
          "name": "diagramDigest",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-diagram-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/diagram.analyzer.ts",
            "label": "core/analyzers/diagram.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/diagram.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-diagram-analyzer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "hexOf",
      "signature": "const hexOf = function hexOf(bytes: ArrayBuffer): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/analyzers/diagram.analyzer.ts",
          "name": "visit",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-diagram-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/diagram.analyzer.ts",
            "label": "core/analyzers/diagram.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/diagram.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-diagram-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/diagram.analyzer.ts",
          "name": "visit",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-diagram-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/diagram.analyzer.ts",
            "label": "core/analyzers/diagram.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/diagram.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-diagram-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/diagram.analyzer.ts",
          "name": "visit",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-diagram-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/diagram.analyzer.ts",
            "label": "core/analyzers/diagram.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/diagram.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-diagram-analyzer-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "walkOrder",
      "signature": "export const walkOrder = function walkOrder("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/analyzers/diagram.analyzer.ts",
          "name": "hexOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-diagram-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/diagram.analyzer.ts",
            "label": "core/analyzers/diagram.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/diagram.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-diagram-analyzer-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "diagramDigest",
      "signature": "export const diagramDigest = async function diagramDigest(source: string): Promise<string> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "DIGEST_ALGORITHM",
      "signature": "const DIGEST_ALGORITHM = \"SHA-256\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "HEX_RADIX",
      "signature": "const HEX_RADIX = 16;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "HEX_WIDTH",
      "signature": "const HEX_WIDTH = 2;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "HEX_PAD",
      "signature": "const HEX_PAD = \"0\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "nodeNameOf",
      "signature": "export const nodeNameOf = function nodeNameOf(id: string): string | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "rest",
      "signature": "const rest = id.slice(at + FLOWCHART_MARK.length);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "cut",
      "signature": "const cut = rest.lastIndexOf(NODE_COUNT_MARK);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "edgeEndsOf",
      "signature": "export const edgeEndsOf = function edgeEndsOf("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "body",
      "signature": "const body = id.slice(EDGE_PREFIX.length, id.lastIndexOf(EDGE_PART_MARK));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "at",
      "signature": "for (let at = body.indexOf(EDGE_PART_MARK); at !== -1; at = body.indexOf(EDGE_PART_MARK, at + 1)) {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "from",
      "signature": "const from = body.slice(0, at);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "to",
      "signature": "const to = body.slice(at + EDGE_PART_MARK.length);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "byName",
      "signature": "const byName = new Map("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "name",
      "signature": "const name = nodeNameOf(id);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "names",
      "signature": "const names = new Set(byName.keys());"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 64,
      "name": "steps",
      "signature": "const steps: WalkStep[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 65,
      "name": "seen",
      "signature": "const seen = new Set<string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "id",
      "signature": "const id = byName.get(name);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 74,
      "name": "ends",
      "signature": "const ends = edgeEndsOf(edge, names);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 87,
      "name": "walkAttributeOf",
      "signature": "export const walkAttributeOf = function walkAttributeOf(svg: ParentNode): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 88,
      "name": "ids",
      "signature": "const ids = function ids(selector: string): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 91,
      "name": "order",
      "signature": "const order = walkOrder(ids(DIAGRAM_NODE_SELECTOR), ids(DIAGRAM_EDGE_SELECTOR)).map((step) => step.id);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-diagram-analyzer-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "diagram.analyzer.ts",
  "path": "core/analyzers/diagram.analyzer.ts",
  "ref": "anatomy:file-core-analyzers-diagram-analyzer-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-analyzers",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-analyzers",
          "label": "core/analyzers",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-analyzers.md",
          "ref": "chapter:/anatomy/tree#folder-core-analyzers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-caching",
          "json": "https://banes-lab.com/json/records/architecture/caching",
          "label": "Caching",
          "markdown": "https://banes-lab.com/records/architecture/caching.md",
          "ref": "architecture:caching"
        }
      ],
      "relation": "evidence-for"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-analyzers",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-analyzers",
          "label": "core/analyzers",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-analyzers.md",
          "ref": "chapter:/anatomy/tree#folder-core-analyzers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "analyzer",
    "subject": "diagram",
    "variant": null
  },
  "stats": {
    "bytes": 3040,
    "callable": 8,
    "definitions": 26,
    "edges": 4,
    "exported": 21,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 2,
      "entry": 2,
      "isolated": 22
    },
    "lines": {
      "blank": 7,
      "code": 86,
      "total": 93
    }
  },
  "summary": "86 lines of code and 26 definitions.",
  "text": "https://banes-lab.com/source/tree/core/analyzers/diagram.analyzer.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-panel-analyzer-ts",
      "json": "https://banes-lab.com/json/source/tree/core/analyzers/panel.analyzer.ts",
      "label": "core/analyzers/panel.analyzer.ts",
      "markdown": "https://banes-lab.com/source/tree/core/analyzers/panel.analyzer.ts.md",
      "ref": "anatomy:file-core-analyzers-panel-analyzer-ts"
    },
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/tree/core/analyzers",
    "label": "core/analyzers",
    "markdown": "https://banes-lab.com/api/source/tree/core/analyzers.md",
    "ref": "api:source/tree/core/analyzers"
  }
}
