fix(diagram): prevent SequenceDiagram arrows and long labels from overlapping activation bars and wrap StepsDiagram details by visual width (#487)
- SequenceDiagram: check whether source and target actors are active at each message row
yand inset endpoints to the outer edge of activation bars (plus breathing gap), including self-calls, preventing arrowheads and tails from piercing activation bars. - SequenceDiagram: dynamically compute column width from
estimateTextWidthacross adjacent and multi-span messages (capped at 320px), wrap extra-long labels up to 2 lines with adaptive row spacing, and offset even-span labels away from active intermediate bars so label backgrounds never mask activation bars. - StepsDiagram: replace
.length-based detail wrapping withestimateTextWidth-based visual-width wrapping so CJK and mixed-script step descriptions no longer clip against the right card border.