geometor.poincare.render¶
Publication-grade interactive .euclid-graphic SVG renderer for geometor.poincare.
Generates theme-adaptive SVGs directly from exact geometor.poincare.disk symbolic
constructions while preserving canonical data-ref attributes, <defs> midpoint
tick markers (#geom-tick-1..3), 3-vertex midpoint <path> arcs and segments, and
#highlights overlay groups consumed by PHOTON Publish’s geometor_interactive.js
and .. picture:: directive.
Attributes¶
Functions¶
|
Render one of the 8 canonical |
|
Generate and write all 8 standalone |
Module Contents¶
- geometor.poincare.render.EMBEDDED_SVG_STYLE: str = ''¶
- geometor.poincare.render.FIGURE_SPECS: dict[str, str]¶
- geometor.poincare.render.render_codex_figure(filename: str) str¶
Render one of the 8 canonical
.euclid-graphiccodex figures by filename.- Parameters:
filename – Key in
FIGURE_SPECS(with or without.svgsuffix).- Returns:
Complete UTF-8 SVG document string.
- Raises:
KeyError – If
filenameis not a recognized codex figure.
- geometor.poincare.render.export_all_codex_figures(output_dir: pathlib.Path) list[pathlib.Path]¶
Generate and write all 8 standalone
.euclid-graphicSVGs intooutput_dir.- Parameters:
output_dir – Target directory (e.g.
docsrc/_static/figures).- Returns:
Sorted list of written SVG file paths.
- geometor.poincare.render.render_figure_svg¶