Export
Export (right chrome) opens a dialog with the current graph as DAGgity source, plus Export as PNG.
DAGgity code
The textarea is the inverse of Create Graph’s DAGgity import. Node
names become identifiers (quoted when they are not a simple
[A-Za-z_][A-Za-z0-9_]* token). Duplicate names get _2, _3, …
suffixes. Positions, exposure/outcome roles, latent (unobserved), adjusted,
selected, <->, and -- round-trip. Copy the code into another
tool, or into a new Pallium graph.
Export does not write a snapshot. It does not dirty the graph.
PNG
Export as PNG captures the current canvas view at publication resolution and downloads a PNG.
Why not a normal screenshot
The graph is drawn with WebGL. The drawing buffer is cleared after
composite, so canvas.toDataURL() is blank. Pallium asks Prodigy for a
GPU readback (request_graph_export), then encodes RGBA to PNG in the
page (downloadGraphRgba).
During capture Prodigy raises the backing-store resolution, waits a couple of frames, and doubles label size so names are not postage stamps on the finished figure. Camera, SEM, Ego, Cycles, Paths, light mode, and node/edge size all come through as you see them.
Filename
{graph}-{snapshot}.png, sanitized. If no snapshot name is active
(including some live-session states), {graph}.png.
What is not in the PNG
HTML chrome: analytics, pickers, toggles, search. Only the Bevy canvas. Zen first if you want a clean figure without having to crop.
One PNG export at a time; a 60s timeout gives up if readback never arrives.