# `scripts.render_knowledge_foundation_svg`
<!-- generated by `orchestrator understand`; the PKG is source of truth, edits here are advisory -->

[← Episteme](../README.md) · [Architecture](../architecture.md)

**Source:** [`scripts/render_knowledge_foundation_svg.py`](../../scripts/render_knowledge_foundation_svg.py)

2 types · 14 functions · python

## Changing this safely

**No test module imports this.**

**Most depended-upon here** — a change to these reaches the most code (call graph, ≤4 hops):

- [`text_w`](../../scripts/render_knowledge_foundation_svg.py#L89) — reaches **8** symbols · **no test path visible**
- [`_n`](../../scripts/render_knowledge_foundation_svg.py#L273) — reaches **6** symbols · **no test path visible**
- [`wrap`](../../scripts/render_knowledge_foundation_svg.py#L97) — reaches **6** symbols · **no test path visible**
- [`col_x`](../../scripts/render_knowledge_foundation_svg.py#L156) — reaches **4** symbols · **no test path visible**
- [`_provenance_band`](../../scripts/render_knowledge_foundation_svg.py#L725) — reaches **3** symbols · **no test path visible**
- [`esc`](../../scripts/render_knowledge_foundation_svg.py#L278) — reaches **3** symbols · **no test path visible**
- [`note`](../../scripts/render_knowledge_foundation_svg.py#L389) — reaches **3** symbols · **no test path visible**
- [`titled_card`](../../scripts/render_knowledge_foundation_svg.py#L353) — reaches **3** symbols · **no test path visible**

_15 of the symbols other code depends on here have no test path the graph can see — worth a second look before changing them. Absence of a path is not proof of absence of a test: calls through an attribute chain (`obj.method()`) are skipped rather than guessed at, so indirect coverage is invisible._

## Types

### `Box`

[`scripts/render_knowledge_foundation_svg.py:171`](../../scripts/render_knowledge_foundation_svg.py#L171)

- **Called by** (2): [`rect`](../../scripts/render_knowledge_foundation_svg.py#L216), [`text`](../../scripts/render_knowledge_foundation_svg.py#L239)
- **Fields**: `h`, `owner`, `w`, `what`, `x`, `y`

### `Canvas`

[`scripts/render_knowledge_foundation_svg.py:209`](../../scripts/render_knowledge_foundation_svg.py#L209)

- **Called by** (1): [`render`](../../scripts/render_knowledge_foundation_svg.py#L852)
- **Fields**: `cards`, `parts`, `texts`

## Functions

### `_n`

[`scripts/render_knowledge_foundation_svg.py:273`](../../scripts/render_knowledge_foundation_svg.py#L273)

- **Called by** (5): [`build`](../../scripts/render_knowledge_foundation_svg.py#L405), [`curve`](../../scripts/render_knowledge_foundation_svg.py#L762), [`rect`](../../scripts/render_knowledge_foundation_svg.py#L216), [`render`](../../scripts/render_knowledge_foundation_svg.py#L852), [`text`](../../scripts/render_knowledge_foundation_svg.py#L239)

### `_provenance_band`

[`scripts/render_knowledge_foundation_svg.py:725`](../../scripts/render_knowledge_foundation_svg.py#L725)

- **Called by** (1): [`build`](../../scripts/render_knowledge_foundation_svg.py#L405)
- **Calls** (2): [`text_w`](../../scripts/render_knowledge_foundation_svg.py#L89), [`wrap`](../../scripts/render_knowledge_foundation_svg.py#L97)

### `_rasterise`

[`scripts/render_knowledge_foundation_svg.py:929`](../../scripts/render_knowledge_foundation_svg.py#L929)

- **Called by** (1): [`main`](../../scripts/render_knowledge_foundation_svg.py#L912)
- **Calls** (2): `run`, `which`

### `build`

[`scripts/render_knowledge_foundation_svg.py:405`](../../scripts/render_knowledge_foundation_svg.py#L405)

- **Called by** (1): [`render`](../../scripts/render_knowledge_foundation_svg.py#L852)
- **Calls** (7): [`_n`](../../scripts/render_knowledge_foundation_svg.py#L273), [`_provenance_band`](../../scripts/render_knowledge_foundation_svg.py#L725), [`col_x`](../../scripts/render_knowledge_foundation_svg.py#L156), [`note`](../../scripts/render_knowledge_foundation_svg.py#L389), [`text_w`](../../scripts/render_knowledge_foundation_svg.py#L89), [`titled_card`](../../scripts/render_knowledge_foundation_svg.py#L353), [`wrap`](../../scripts/render_knowledge_foundation_svg.py#L97)

### `col_x`

[`scripts/render_knowledge_foundation_svg.py:156`](../../scripts/render_knowledge_foundation_svg.py#L156)

- **Called by** (3): [`build`](../../scripts/render_knowledge_foundation_svg.py#L405), [`render`](../../scripts/render_knowledge_foundation_svg.py#L852), [`verify`](../../scripts/render_knowledge_foundation_svg.py#L804)

### `esc`

[`scripts/render_knowledge_foundation_svg.py:278`](../../scripts/render_knowledge_foundation_svg.py#L278)

- **Called by** (2): [`render`](../../scripts/render_knowledge_foundation_svg.py#L852), [`text`](../../scripts/render_knowledge_foundation_svg.py#L239)

### `flows`

[`scripts/render_knowledge_foundation_svg.py:761`](../../scripts/render_knowledge_foundation_svg.py#L761)

- **Called by** (1): [`render`](../../scripts/render_knowledge_foundation_svg.py#L852)

### `main`

[`scripts/render_knowledge_foundation_svg.py:912`](../../scripts/render_knowledge_foundation_svg.py#L912)

- **Calls** (2): [`_rasterise`](../../scripts/render_knowledge_foundation_svg.py#L929), [`render`](../../scripts/render_knowledge_foundation_svg.py#L852)

### `note`

[`scripts/render_knowledge_foundation_svg.py:389`](../../scripts/render_knowledge_foundation_svg.py#L389)

- **Called by** (1): [`build`](../../scripts/render_knowledge_foundation_svg.py#L405)
- **Calls** (1): [`wrap`](../../scripts/render_knowledge_foundation_svg.py#L97)

### `render`

[`scripts/render_knowledge_foundation_svg.py:852`](../../scripts/render_knowledge_foundation_svg.py#L852)

- **Called by** (1): [`main`](../../scripts/render_knowledge_foundation_svg.py#L912)
- **Calls** (7): [`Canvas`](../../scripts/render_knowledge_foundation_svg.py#L209), [`_n`](../../scripts/render_knowledge_foundation_svg.py#L273), [`build`](../../scripts/render_knowledge_foundation_svg.py#L405), [`col_x`](../../scripts/render_knowledge_foundation_svg.py#L156), [`esc`](../../scripts/render_knowledge_foundation_svg.py#L278), [`flows`](../../scripts/render_knowledge_foundation_svg.py#L761), [`verify`](../../scripts/render_knowledge_foundation_svg.py#L804)

### `text_w`

[`scripts/render_knowledge_foundation_svg.py:89`](../../scripts/render_knowledge_foundation_svg.py#L89)

- **Called by** (4): [`_provenance_band`](../../scripts/render_knowledge_foundation_svg.py#L725), [`build`](../../scripts/render_knowledge_foundation_svg.py#L405), [`text`](../../scripts/render_knowledge_foundation_svg.py#L239), [`wrap`](../../scripts/render_knowledge_foundation_svg.py#L97)

### `titled_card`

[`scripts/render_knowledge_foundation_svg.py:353`](../../scripts/render_knowledge_foundation_svg.py#L353)

- **Called by** (1): [`build`](../../scripts/render_knowledge_foundation_svg.py#L405)
- **Calls** (1): [`wrap`](../../scripts/render_knowledge_foundation_svg.py#L97)

### `verify`

[`scripts/render_knowledge_foundation_svg.py:804`](../../scripts/render_knowledge_foundation_svg.py#L804)

- **Called by** (1): [`render`](../../scripts/render_knowledge_foundation_svg.py#L852)
- **Calls** (1): [`col_x`](../../scripts/render_knowledge_foundation_svg.py#L156)

### `wrap`

[`scripts/render_knowledge_foundation_svg.py:97`](../../scripts/render_knowledge_foundation_svg.py#L97)

- **Called by** (4): [`_provenance_band`](../../scripts/render_knowledge_foundation_svg.py#L725), [`build`](../../scripts/render_knowledge_foundation_svg.py#L405), [`note`](../../scripts/render_knowledge_foundation_svg.py#L389), [`titled_card`](../../scripts/render_knowledge_foundation_svg.py#L353)
- **Calls** (1): [`text_w`](../../scripts/render_knowledge_foundation_svg.py#L89)

## Imports

`__future__.annotations`, `dataclasses.dataclass`, `dataclasses.field`, `pathlib.Path`, `shutil`, `subprocess`, `sys`
