# Prompt Version 3: UML State Diagram Endpoint and Rotation Delta

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

## Append Lines

- Validate endpoint distance from source to target, so every connector visibly
  touches both the origin and destination edges.
- For each connector, confirm the line starts at the visual boundary of the
  source element and ends at the visual boundary of the intended target element.
- If a label such as `Radio`, `CD`, `on`, or `off` implies a specific target
  state, the arrow must reach that state instead of stopping at the parent
  container.
- Route arrows so they do not cover state labels or transition labels unless the
  source diagram explicitly does so.
- Preserve rotated labels from the source diagram. When the source uses Lucid
  style rotation values such as `270` or `-90`, map the same intent into draw.io
  with `rotation=<degrees>` for rotated cells or `textRotation=<degrees>` when
  only the label axis should rotate.

## Modify Lines

- Change `arrows terminating at the intended connection edge, not deep inside
shapes` to `arrows visibly starting at the source edge and terminating at the
intended target edge, not floating near shapes or ending deep inside them`.
- Change `typography, label placement, and text wrapping` to `typography, label
placement, text wrapping, and source-matched text rotation`.

## Validation Additions

- Perform a connector-by-connector source-to-target audit on the rendered
  screenshot.
- Verify each transition label maps to the element it semantically references.
- Verify vertical or diagonal labels use explicit rotation values instead of
  simulated line breaks or spacing.
