onAutoPan property
Callback invoked when autopan triggers during a drag.
Receives the pan delta in graph units. The parent should:
- Pan the viewport by this delta (converted to screen units with zoom)
- Move the dragged element by this delta to maintain cursor position
Required when autoPan is provided.
Implementation
final void Function(Offset delta)? onAutoPan;