Expand description
Figures in the block model: listing, naming, pixels, and references (#658). Figures in the block model: listing, naming, pixels, and references.
A figure is a placed image or a drawn vector cluster that stands beside
prose. The text pass records both as boxes; this module turns those boxes
into Blocks late in extraction, names them, and
renders their pixels for embeds and written files.
Names are derived, never stored: figure-<page>-<ordinal>.png with the
page and the figure’s number on that page, both counted from one, in the
order the blocks list them. Every renderer – markers, embeds, files –
enumerates the same way, so one figure has one name everywhere.
Structs§
- Figure
- One figure of the document, with its rendered pixels: a placed image or a drawn vector cluster, unified – a drawing beside prose is a figure the way a photograph is.
Constants§
- FIGURE_
DPI - Resolution figure boxes are rendered at, in dots per inch.
- MAX_
GRAPHICS_ SCAN_ PAGES - How many pages the standalone graphics scan reads before it stops.
Functions§
- figure_
name - The file name of a figure:
figure-<page>-<ordinal>.png.