Coverage for app / documents / visuals / __init__.py: 100%
2 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-10-31 11:23 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-10-31 11:23 +0000
1"""Visuals drawn in a document's PDF: charts, plots, network graphs, maps and
2diagrams, the fences the render tools return.
4A visual fence in a document's body printed as its JSON or Mermaid source
5(scenario run 6): the PDF renderer turned every fence into monospaced text.
6fe-core's card drew the same fences as visuals, so the page and its PDF
7disagreed. Now each kind is one registered class (``registry.Visual``) that
8reads its fence as fe-core reads it and lays it out as vector graphics
9(reportlab's ``Drawing``), and ``render.prepare`` hands the PDF a figure or
10a short note saying why one could not be drawn — never the source.
12This package's top level holds only the vocabulary (``kinds``): the document
13spec imports it, and reportlab stays out of that import.
14"""
16from .kinds import VisualKind, kind_of
18__all__ = ["VisualKind", "kind_of"]