{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/components/stage.component.ts",
          "name": "apply",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-stage-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/stage.component.ts",
            "label": "presentation/components/stage.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/stage.component.ts.md",
            "ref": "anatomy:file-presentation-components-stage-component-ts"
          }
        },
        {
          "file": "presentation/components/stage.component.ts",
          "name": "reset",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-stage-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/stage.component.ts",
            "label": "presentation/components/stage.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/stage.component.ts.md",
            "ref": "anatomy:file-presentation-components-stage-component-ts"
          }
        },
        {
          "file": "presentation/components/stage.component.ts",
          "name": "zoomAtCenter",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-stage-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/stage.component.ts",
            "label": "presentation/components/stage.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/stage.component.ts.md",
            "ref": "anatomy:file-presentation-components-stage-component-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "extentOf",
      "signature": "export const extentOf = function extentOf(element: Element): Extent {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/analyzers/panel.analyzer.ts",
          "name": "boundedView",
          "source": {
            "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"
          }
        },
        {
          "file": "core/analyzers/panel.analyzer.ts",
          "name": "boundedView",
          "source": {
            "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"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "clamp",
      "signature": "const clamp = function clamp(value: number, low: number, high: number): number {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/components/stage.component.ts",
          "name": "apply",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-stage-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/stage.component.ts",
            "label": "presentation/components/stage.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/stage.component.ts.md",
            "ref": "anatomy:file-presentation-components-stage-component-ts"
          }
        },
        {
          "file": "presentation/components/stage.component.ts",
          "name": "reset",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-stage-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/stage.component.ts",
            "label": "presentation/components/stage.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/stage.component.ts.md",
            "ref": "anatomy:file-presentation-components-stage-component-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "contentExtentOf",
      "signature": "export const contentExtentOf = function contentExtentOf(stage: Element, scale: number): Extent {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/analyzers/panel.analyzer.ts",
          "name": "clamp",
          "source": {
            "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"
          }
        },
        {
          "file": "core/analyzers/panel.analyzer.ts",
          "name": "clamp",
          "source": {
            "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"
          }
        }
      ],
      "callers": [
        {
          "file": "presentation/components/stage.component.ts",
          "name": "apply",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-stage-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/stage.component.ts",
            "label": "presentation/components/stage.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/stage.component.ts.md",
            "ref": "anatomy:file-presentation-components-stage-component-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "boundedView",
      "signature": "export const boundedView = function boundedView(view: PanelView, viewport: Extent, content: Extent): PanelView {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/components/stage.component.ts",
          "name": "zoomBy",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-stage-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/stage.component.ts",
            "label": "presentation/components/stage.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/stage.component.ts.md",
            "ref": "anatomy:file-presentation-components-stage-component-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "zoomedView",
      "signature": "export const zoomedView = function zoomedView(view: PanelView, factor: number, anchor: Point): PanelView {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/components/stage.component.ts",
          "name": "reset",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-stage-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/stage.component.ts",
            "label": "presentation/components/stage.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/stage.component.ts.md",
            "ref": "anatomy:file-presentation-components-stage-component-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "fittedView",
      "signature": "export const fittedView = function fittedView(viewport: Extent, content: Extent, ceiling = 1): PanelView {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/components/stage.component.ts",
          "name": "zoomAtCenter",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-stage-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/stage.component.ts",
            "label": "presentation/components/stage.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/stage.component.ts.md",
            "ref": "anatomy:file-presentation-components-stage-component-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "centerOf",
      "signature": "export const centerOf = function centerOf(extent: Extent): Point {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/components/stage.component.ts",
          "name": "pairDistance",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-stage-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/stage.component.ts",
            "label": "presentation/components/stage.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/stage.component.ts.md",
            "ref": "anatomy:file-presentation-components-stage-component-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "distanceBetween",
      "signature": "export const distanceBetween = function distanceBetween(a: Point, b: Point): number {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/components/stage.component.ts",
          "name": "pinch",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-stage-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/stage.component.ts",
            "label": "presentation/components/stage.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/stage.component.ts.md",
            "ref": "anatomy:file-presentation-components-stage-component-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 61,
      "name": "midpointOf",
      "signature": "export const midpointOf = function midpointOf(a: Point, b: Point): Point {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "ORIGIN_VIEW",
      "signature": "export const ORIGIN_VIEW: PanelView = { scale: 1, x: 0, y: 0 };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "rect",
      "signature": "const rect = extentOf(stage);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "spanX",
      "signature": "const spanX = viewport.width - content.width * view.scale;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "spanY",
      "signature": "const spanY = viewport.height - content.height * view.scale;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "ratio",
      "signature": "const ratio = scale / view.scale;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "scale",
      "signature": "const scale = clamp("
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-panel-analyzer-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "panel.analyzer.ts",
  "path": "core/analyzers/panel.analyzer.ts",
  "ref": "anatomy:file-core-analyzers-panel-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/anatomy/tree#file-presentation-components-stage-component-ts",
          "json": "https://banes-lab.com/json/source/tree/presentation/components/stage.component.ts",
          "label": "presentation/components/stage.component.ts",
          "markdown": "https://banes-lab.com/source/tree/presentation/components/stage.component.ts.md",
          "ref": "anatomy:file-presentation-components-stage-component-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "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"
        },
        {
          "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"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "analyzer",
    "subject": "panel",
    "variant": null
  },
  "stats": {
    "bytes": 2536,
    "callable": 9,
    "definitions": 15,
    "edges": 2,
    "exported": 14,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 8,
      "relay": 1,
      "isolated": 6
    },
    "lines": {
      "blank": 10,
      "code": 53,
      "total": 63
    }
  },
  "summary": "53 lines of code and 15 definitions.",
  "text": "https://banes-lab.com/source/tree/core/analyzers/panel.analyzer.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-search-analyzer-ts",
      "json": "https://banes-lab.com/json/source/tree/core/analyzers/search.analyzer.ts",
      "label": "core/analyzers/search.analyzer.ts",
      "markdown": "https://banes-lab.com/source/tree/core/analyzers/search.analyzer.ts.md",
      "ref": "anatomy:file-core-analyzers-search-analyzer-ts"
    },
    "previous": {
      "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"
    }
  },
  "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"
  }
}
