# presentation/views/anatomy.view.ts

> 46 lines of code and 4 definitions.

Tree: Site tree
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/tree#file-presentation-views-anatomy-view-ts
Source text: https://banes-lab.com/assets/sources/source.382607e4b81e7cec45fa2e20b94306c63d8328e4a31ea0d149a0815098810aef.generated.txt

## Definitions

- `renderAnatomy` (lexical_declaration, line 31)
- `ANATOMY_ENTITY` (lexical_declaration, line 13)
- `DEFINITION` (lexical_declaration, line 23)
- `PAGE` (lexical_declaration, line 37, exported)

## Uses

- [presentation/widgets/tab.widget.ts](https://banes-lab.com/source/tree/presentation/widgets/tab.widget.ts.md)

## Source

```typescript
import { ANATOMY_DESCRIPTION, ANATOMY_TITLE, CREATIVE_COMMONS_LICENSE } from "#configuration/strings/page.strings";
import { CREATIVE_COMMONS, SITE_URL, pagePath } from "#assets/link.assets";
import { mountTabSwitching, renderTabbedPage } from "#presentation/widgets/tab.widget";
import { ANATOMY_META } from "#configuration/strings/anatomy.strings";
import { ANATOMY_PAGE } from "#core/ids/page.ids";
import { ANATOMY_TABS } from "#configuration/strings/anatomy.fragment.strings";
import { ANATOMY_TONE } from "#configuration/constants/tab.constants";
import { METHODOLOGY_AUTHOR } from "#configuration/strings/methodology.strings";
import type { PageDefinition } from "#types/page.types";
import type { SchemaEntity } from "#types/schema.types";
import type { TabbedPage } from "#types/tab.types";

const ANATOMY_ENTITY: SchemaEntity = {
    "@type": "Dataset",
    author: { "@type": "Person", name: METHODOLOGY_AUTHOR },
    description: ANATOMY_DESCRIPTION,
    license: CREATIVE_COMMONS,
    name: ANATOMY_META.title,
    url: SITE_URL + pagePath(ANATOMY_PAGE),
    version: ANATOMY_META.version,
};

const DEFINITION: TabbedPage = {
    layout: "chapter",
    meta: ANATOMY_META,
    page: ANATOMY_PAGE,
    tabs: ANATOMY_TABS,
    tone: ANATOMY_TONE,
};

const renderAnatomy = function renderAnatomy(): Element {
    return renderTabbedPage(DEFINITION);
};

void mountTabSwitching(DEFINITION);

export const PAGE: PageDefinition = {
    content: {
        kind: "tabbed",
        layout: DEFINITION.layout,
        meta: ANATOMY_META,
        tabs: ANATOMY_TABS,
        tone: DEFINITION.tone,
    },
    description: ANATOMY_DESCRIPTION,
    entities: [ANATOMY_ENTITY],
    id: ANATOMY_PAGE,
    license: CREATIVE_COMMONS_LICENSE,
    render: renderAnatomy,
    title: ANATOMY_TITLE,
};
```
