{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/renderers/panel.renderer.ts",
          "name": "panelId",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-panel-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/panel.renderer.ts",
            "label": "presentation/renderers/panel.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/panel.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-panel-renderer-ts"
          }
        },
        {
          "file": "presentation/renderers/panel.renderer.ts",
          "name": "panelMark",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-panel-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/panel.renderer.ts",
            "label": "presentation/renderers/panel.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/panel.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-panel-renderer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "panelLetter",
      "signature": "const panelLetter = function panelLetter(index: number): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "presentation/renderers/panel.renderer.ts",
          "name": "markTitle",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-panel-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/panel.renderer.ts",
            "label": "presentation/renderers/panel.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/panel.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-panel-renderer-ts"
          }
        },
        {
          "file": "presentation/renderers/panel.renderer.ts",
          "name": "tagOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-panel-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/panel.renderer.ts",
            "label": "presentation/renderers/panel.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/panel.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-panel-renderer-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "presentation/renderers/chapter.renderer.ts",
          "name": "renderPanels",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-chapter-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/chapter.renderer.ts",
            "label": "presentation/renderers/chapter.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/chapter.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-chapter-renderer-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "renderChapterPanel",
      "signature": "export const renderChapterPanel = function renderChapterPanel("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/factories/element.factory.ts",
          "name": "createElement",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-factories-element-factory-ts",
            "json": "https://banes-lab.com/json/source/tree/core/factories/element.factory.ts",
            "label": "core/factories/element.factory.ts",
            "markdown": "https://banes-lab.com/source/tree/core/factories/element.factory.ts.md",
            "ref": "anatomy:file-core-factories-element-factory-ts"
          }
        },
        {
          "file": "presentation/components/link.component.ts",
          "name": "createLink",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-link-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/link.component.ts",
            "label": "presentation/components/link.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/link.component.ts.md",
            "ref": "anatomy:file-presentation-components-link-component-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "presentation/renderers/chapter.renderer.ts",
          "name": "renderChapterSection",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-chapter-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/chapter.renderer.ts",
            "label": "presentation/renderers/chapter.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/chapter.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-chapter-renderer-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 85,
      "name": "resolveCitations",
      "signature": "export const resolveCitations = function resolveCitations(prose: Element, panels: readonly PanelReference[]): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/factories/element.factory.ts",
          "name": "createElement",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-factories-element-factory-ts",
            "json": "https://banes-lab.com/json/source/tree/core/factories/element.factory.ts",
            "label": "core/factories/element.factory.ts",
            "markdown": "https://banes-lab.com/source/tree/core/factories/element.factory.ts.md",
            "ref": "anatomy:file-core-factories-element-factory-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "presentation/renderers/panel.renderer.ts",
          "name": "renderChapterPanel",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-panel-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/panel.renderer.ts",
            "label": "presentation/renderers/panel.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/panel.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-panel-renderer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 55,
      "name": "markTitle",
      "signature": "const markTitle = function markTitle(panel: Element, mark: string): void {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/renderers/panel.renderer.ts",
          "name": "renderChapterPanel",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-panel-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/panel.renderer.ts",
            "label": "presentation/renderers/panel.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/panel.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-panel-renderer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "tagOf",
      "signature": "const tagOf = function tagOf(block: Block): string | null {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "presentation/renderers/panel.renderer.ts",
          "name": "panelLetter",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-panel-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/panel.renderer.ts",
            "label": "presentation/renderers/panel.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/panel.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-panel-renderer-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "panelMark",
      "signature": "const panelMark = function panelMark(sectionLabel: string, index: number): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "presentation/renderers/panel.renderer.ts",
          "name": "panelLetter",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-panel-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/panel.renderer.ts",
            "label": "presentation/renderers/panel.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/panel.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-panel-renderer-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "panelId",
      "signature": "const panelId = function panelId(sectionId: string, index: number): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "isFigure",
      "signature": "const isFigure = function isFigure(block: Block): block is FigureBlock {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "isWide",
      "signature": "const isWide = function isWide(block: Block): boolean {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "base",
      "signature": "const base = LETTERS.length;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "trailing",
      "signature": "const trailing = LETTERS.charAt(index % base);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "title",
      "signature": "const title = panel.querySelector(selector);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 72,
      "name": "inner",
      "signature": "const inner = isFigure(block) ? renderFigure(block) : renderBlock(block);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 73,
      "name": "mark",
      "signature": "const mark = panelMark(sectionLabel, index);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 74,
      "name": "id",
      "signature": "const id = panelId(sectionId, index);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 75,
      "name": "wide",
      "signature": "const wide = isWide(block);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 76,
      "name": "element",
      "signature": "const element = createElement(\"div\", {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 86,
      "name": "byTag",
      "signature": "const byTag = new Map(panels.flatMap((panel) => (panel.tag === null ? [] : [[panel.tag, panel] as const])));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 88,
      "name": "panel",
      "signature": "const panel = byTag.get(placeholder.getAttribute(CITE_ATTRIBUTE) ?? \"\");"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-panel-renderer-ts",
  "language": "typescript",
  "layer": "product",
  "name": "panel.renderer.ts",
  "path": "presentation/renderers/panel.renderer.ts",
  "ref": "anatomy:file-presentation-renderers-panel-renderer-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-presentation-renderers",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-presentation-renderers",
          "label": "presentation/renderers",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-presentation-renderers.md",
          "ref": "chapter:/anatomy/tree#folder-presentation-renderers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#file-core-factories-element-factory-ts",
          "json": "https://banes-lab.com/json/source/tree/core/factories/element.factory.ts",
          "label": "core/factories/element.factory.ts",
          "markdown": "https://banes-lab.com/source/tree/core/factories/element.factory.ts.md",
          "ref": "anatomy:file-core-factories-element-factory-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-link-component-ts",
          "json": "https://banes-lab.com/json/source/tree/presentation/components/link.component.ts",
          "label": "presentation/components/link.component.ts",
          "markdown": "https://banes-lab.com/source/tree/presentation/components/link.component.ts.md",
          "ref": "anatomy:file-presentation-components-link-component-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-chapter-renderer-ts",
          "json": "https://banes-lab.com/json/source/tree/presentation/renderers/chapter.renderer.ts",
          "label": "presentation/renderers/chapter.renderer.ts",
          "markdown": "https://banes-lab.com/source/tree/presentation/renderers/chapter.renderer.ts.md",
          "ref": "anatomy:file-presentation-renderers-chapter-renderer-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-factories",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-factories",
          "label": "core/factories",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-factories.md",
          "ref": "chapter:/anatomy/tree#folder-core-factories"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-presentation-components",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-presentation-components",
          "label": "presentation/components",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-presentation-components.md",
          "ref": "chapter:/anatomy/tree#folder-presentation-components"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-presentation-renderers",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-presentation-renderers",
          "label": "presentation/renderers",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-presentation-renderers.md",
          "ref": "chapter:/anatomy/tree#folder-presentation-renderers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "renderer",
    "subject": "panel",
    "variant": null
  },
  "stats": {
    "bytes": 3657,
    "callable": 9,
    "definitions": 19,
    "edges": 7,
    "exported": 9,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 2,
      "relay": 3,
      "entry": 2,
      "isolated": 12
    },
    "lines": {
      "blank": 9,
      "code": 90,
      "total": 99
    }
  },
  "summary": "90 lines of code and 19 definitions.",
  "text": "https://banes-lab.com/source/tree/presentation/renderers/panel.renderer.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-record-renderer-ts",
      "json": "https://banes-lab.com/json/source/tree/presentation/renderers/record.renderer.ts",
      "label": "presentation/renderers/record.renderer.ts",
      "markdown": "https://banes-lab.com/source/tree/presentation/renderers/record.renderer.ts.md",
      "ref": "anatomy:file-presentation-renderers-record-renderer-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-page-shell-renderer-ts",
      "json": "https://banes-lab.com/json/source/tree/presentation/renderers/page.shell.renderer.ts",
      "label": "presentation/renderers/page.shell.renderer.ts",
      "markdown": "https://banes-lab.com/source/tree/presentation/renderers/page.shell.renderer.ts.md",
      "ref": "anatomy:file-presentation-renderers-page-shell-renderer-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/tree/presentation/renderers",
    "label": "presentation/renderers",
    "markdown": "https://banes-lab.com/api/source/tree/presentation/renderers.md",
    "ref": "api:source/tree/presentation/renderers"
  }
}
