{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/diagram.strings.ts",
          "name": "undeclaredToken",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-configuration-strings-diagram-strings-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/configuration/strings/diagram.strings.ts",
            "label": "configuration/strings/diagram.strings.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/configuration/strings/diagram.strings.ts.md",
            "ref": "anatomy:file-build-scripts-configuration-strings-diagram-strings-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "themeVariables",
      "signature": "export const themeVariables = function themeVariables(tokens: ReadonlyMap<string, string>): Record<string, string> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "TOKEN_PREFIX",
      "signature": "const TOKEN_PREFIX = \"--\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "DECLARATION_END",
      "signature": "const DECLARATION_END = \";\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "ASSIGN",
      "signature": "const ASSIGN = \":\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "SVG_OPEN",
      "signature": "const SVG_OPEN = \"<svg\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "tokenValues",
      "signature": "export const tokenValues = function tokenValues(css: string): ReadonlyMap<string, string> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "values",
      "signature": "const values = new Map<string, string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "line",
      "signature": "const line = raw.trim();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "assign",
      "signature": "const assign = line.indexOf(ASSIGN);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "variables",
      "signature": "const variables: Record<string, string> = { background: \"transparent\" };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "value",
      "signature": "const value = tokens.get(token);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "withWalk",
      "signature": "export const withWalk = function withWalk(markup: string, walk: DiagramWalk): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "order",
      "signature": "const order = walk.orderOf(JSDOM.fragment(markup));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "at",
      "signature": "const at = markup.indexOf(SVG_OPEN);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "end",
      "signature": "const end = at + SVG_OPEN.length;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-diagram-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "diagram.converter.ts",
  "path": "core/converters/diagram.converter.ts",
  "ref": "anatomy:file-build-scripts-core-converters-diagram-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-configuration-strings-diagram-strings-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/configuration/strings/diagram.strings.ts",
          "label": "configuration/strings/diagram.strings.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/configuration/strings/diagram.strings.ts.md",
          "ref": "anatomy:file-build-scripts-configuration-strings-diagram-strings-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-configuration-strings.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-configuration-strings"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "diagram",
    "variant": null
  },
  "stats": {
    "bytes": 1693,
    "callable": 3,
    "definitions": 15,
    "edges": 1,
    "exported": 11,
    "files": 1,
    "findings": {},
    "flows": {
      "entry": 1,
      "isolated": 14
    },
    "lines": {
      "blank": 4,
      "code": 40,
      "total": 44
    }
  },
  "summary": "40 lines of code and 15 definitions.",
  "text": "https://banes-lab.com/source/build-scripts/core/converters/diagram.converter.ts.txt",
  "tree": "build-scripts",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-document-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/document.converter.ts",
      "label": "core/converters/document.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/document.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-document-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-config-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/config.converter.ts",
      "label": "core/converters/config.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/config.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-config-converter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/build-scripts/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/build-scripts/core/converters.md",
    "ref": "api:source/build-scripts/core/converters"
  }
}
