# Prompt Version 2: UML State Diagram Visual Correction Delta

Use this as a delta over `state-uml-recreated.prompt.md` after the first rendered
SVG/draw.io pass.

## Append Lines

- Re-evaluate every container after rendering, because labels may make boxes too
  short or visually unbalanced once the diagram is assembled.
- Prefer connector bend points that keep arrows outside containers and labels.
- Avoid vertical connector stubs when a small horizontal or orthogonal route reads
  closer to the source diagram.
- Reposition arrowheads so they land on the intended shape boundary instead of
  appearing deep inside the target container.
- Re-check spacing after resizing containers; container growth must not create
  new overlaps or unclear routes.

## Modify Lines

- Change `connector routing and bend points` to `connector routing, bend points,
and post-render adjustment against the source reference`.
- Change `final resizing after the diagram is assembled` to `final resizing and
visual balance pass after the diagram is assembled and rendered`.

## Validation Additions

- Inspect the browser-rendered SVG screenshot before handoff.
- Compare each connector against the source PDF page and identify whether it
  connects to the expected source and target element.
- Record any remaining approximation if the recreated diagram is not
  pixel-perfect.
