# Prompt Version 6: UML State Diagram Connector Anchor Aesthetics Delta

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

## Append Lines

- Validate connector anchor-point aesthetics after rendering.
- Choose the source edge and target edge that create the shortest readable
  orthogonal path with the fewest bend points.
- Prefer side midpoints when a side connection avoids extra turns that would be
  required by a top or bottom connection.
- Do not force a connector to start from a top or bottom edge when the left or
  right side of the source element produces a cleaner route.
- When two connector options both preserve semantic correctness, choose the one
  with fewer 90-degree bends and less line travel.
- Arrowheads should land on a clean boundary point, commonly the midpoint of the
  relevant side, without entering the target element interior.
- Re-render after anchor changes and verify the result against all previous
  quality gates: endpoint, label clearance, z-order, text rotation, and
  container overlap.

## Modify Lines

- Change `connector routing, bend points, and post-render adjustment against the
source reference` to `connector routing, source/target anchor choice, bend
points, and post-render adjustment against the source reference`.
- Change `Visual endpoint and z-order QA for every connector in the rendered
screenshot` to `Visual endpoint, anchor-point, and z-order QA for every
connector in the rendered screenshot`.

## Validation Additions

- Count bend points for each connector and compare against a cleaner route from
  another edge.
- Check whether moving the source point to the nearest side midpoint reduces
  bends without changing the semantic target.
- Check whether the target arrowhead lands at a side midpoint or other clean
  boundary point instead of a corner or shape interior.
