{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/widgets/overlay.widget.ts",
          "name": "open",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-overlay-widget-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/widgets/overlay.widget.ts",
            "label": "presentation/widgets/overlay.widget.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/widgets/overlay.widget.ts.md",
            "ref": "anatomy:file-presentation-widgets-overlay-widget-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "reveal",
      "signature": "const reveal = function reveal(overlay: HTMLElement): void {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/widgets/overlay.widget.ts",
          "name": "close",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-overlay-widget-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/widgets/overlay.widget.ts",
            "label": "presentation/widgets/overlay.widget.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/widgets/overlay.widget.ts.md",
            "ref": "anatomy:file-presentation-widgets-overlay-widget-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "teardown",
      "signature": "const teardown = function teardown(overlay: HTMLElement): 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": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "createDialog",
      "signature": "const createDialog = function createDialog(event: OverlayRequestedEvent): HTMLElement {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/buses/base.bus.ts",
          "name": "emitEvent",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-buses-base-bus-ts",
            "json": "https://banes-lab.com/json/source/tree/core/buses/base.bus.ts",
            "label": "core/buses/base.bus.ts",
            "markdown": "https://banes-lab.com/source/tree/core/buses/base.bus.ts.md",
            "ref": "anatomy:file-core-buses-base-bus-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "createBackdrop",
      "signature": "const createBackdrop = function createBackdrop(dialog: HTMLElement): HTMLElement {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/buses/base.bus.ts",
          "name": "emitEvent",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-buses-base-bus-ts",
            "json": "https://banes-lab.com/json/source/tree/core/buses/base.bus.ts",
            "label": "core/buses/base.bus.ts",
            "markdown": "https://banes-lab.com/source/tree/core/buses/base.bus.ts.md",
            "ref": "anatomy:file-core-buses-base-bus-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "onEscape",
      "signature": "const onEscape = function onEscape(key: KeyboardEvent): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "presentation/widgets/overlay.widget.ts",
          "name": "reveal",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-overlay-widget-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/widgets/overlay.widget.ts",
            "label": "presentation/widgets/overlay.widget.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/widgets/overlay.widget.ts.md",
            "ref": "anatomy:file-presentation-widgets-overlay-widget-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "open",
      "signature": "const open = function open(event: OverlayRequestedEvent): HTMLElement {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "presentation/widgets/overlay.widget.ts",
          "name": "teardown",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-overlay-widget-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/widgets/overlay.widget.ts",
            "label": "presentation/widgets/overlay.widget.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/widgets/overlay.widget.ts.md",
            "ref": "anatomy:file-presentation-widgets-overlay-widget-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "close",
      "signature": "const close = function close(overlay: HTMLElement): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "presentation/widgets/home.widget.ts",
          "name": "dispose",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-home-widget-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/widgets/home.widget.ts",
            "label": "presentation/widgets/home.widget.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/widgets/home.widget.ts.md",
            "ref": "anatomy:file-presentation-widgets-home-widget-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 75,
      "name": "mountOverlay",
      "signature": "export const mountOverlay = function mountOverlay(): Disposer {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "header",
      "signature": "const header = createElement(\"div\", {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "body",
      "signature": "const body = createElement(\"div\", { children: [event.content], className: \"overlay-body\" });"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "backdrop",
      "signature": "const backdrop = createElement(\"div\", { children: [dialog], className: \"overlay-backdrop\" });"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "overlay",
      "signature": "const overlay = createElement(\"div\", { children: [createBackdrop(createDialog(event))], className: \"overlay\" });"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 76,
      "name": "current",
      "signature": "let current: HTMLElement | null = null;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 77,
      "name": "disposers",
      "signature": "const disposers = ["
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-overlay-widget-ts",
  "language": "typescript",
  "layer": "product",
  "name": "overlay.widget.ts",
  "path": "presentation/widgets/overlay.widget.ts",
  "ref": "anatomy:file-presentation-widgets-overlay-widget-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-presentation-widgets",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-presentation-widgets",
          "label": "presentation/widgets",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-presentation-widgets.md",
          "ref": "chapter:/anatomy/tree#folder-presentation-widgets"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#file-core-buses-base-bus-ts",
          "json": "https://banes-lab.com/json/source/tree/core/buses/base.bus.ts",
          "label": "core/buses/base.bus.ts",
          "markdown": "https://banes-lab.com/source/tree/core/buses/base.bus.ts.md",
          "ref": "anatomy:file-core-buses-base-bus-ts"
        },
        {
          "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-widgets-home-widget-ts",
          "json": "https://banes-lab.com/json/source/tree/presentation/widgets/home.widget.ts",
          "label": "presentation/widgets/home.widget.ts",
          "markdown": "https://banes-lab.com/source/tree/presentation/widgets/home.widget.ts.md",
          "ref": "anatomy:file-presentation-widgets-home-widget-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-buses",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-buses",
          "label": "core/buses",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-buses.md",
          "ref": "chapter:/anatomy/tree#folder-core-buses"
        },
        {
          "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-widgets",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-presentation-widgets",
          "label": "presentation/widgets",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-presentation-widgets.md",
          "ref": "chapter:/anatomy/tree#folder-presentation-widgets"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "widget",
    "subject": "overlay",
    "variant": null
  },
  "stats": {
    "bytes": 3347,
    "callable": 8,
    "definitions": 14,
    "edges": 6,
    "exported": 3,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 2,
      "entry": 6,
      "isolated": 6
    },
    "lines": {
      "blank": 8,
      "code": 88,
      "total": 96
    }
  },
  "summary": "88 lines of code and 14 definitions.",
  "text": "https://banes-lab.com/source/tree/presentation/widgets/overlay.widget.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-reference-widget-ts",
      "json": "https://banes-lab.com/json/source/tree/presentation/widgets/reference.widget.ts",
      "label": "presentation/widgets/reference.widget.ts",
      "markdown": "https://banes-lab.com/source/tree/presentation/widgets/reference.widget.ts.md",
      "ref": "anatomy:file-presentation-widgets-reference-widget-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-menu-widget-ts",
      "json": "https://banes-lab.com/json/source/tree/presentation/widgets/menu.widget.ts",
      "label": "presentation/widgets/menu.widget.ts",
      "markdown": "https://banes-lab.com/source/tree/presentation/widgets/menu.widget.ts.md",
      "ref": "anatomy:file-presentation-widgets-menu-widget-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/tree/presentation/widgets",
    "label": "presentation/widgets",
    "markdown": "https://banes-lab.com/api/source/tree/presentation/widgets.md",
    "ref": "api:source/tree/presentation/widgets"
  }
}
