Commit Graph

1 Commits

Author SHA1 Message Date
NiJingzhe 6c0f9ee3a6 feat(dxf): 1-DOF annotation model, rad inner-arc variant, auto-diag loop
- Direction-first placement: once at/side is fixed the text has exactly
  one DOF (slide along the line); rad candidates run outer (s=3..27)
  then inner-arc (s<0, line through center, arrow flips to point at the
  arc from the center side, deepening ladder for tight centers)
- Linear dims gain slide; dimension line auto-extends (derived, never
  hand-placed) to cover text that leaves the measured span; narrow
  spans place outside with elongation directly; _lin_geometry is the
  single derivation shared by solver and apply
- rad action surface reduced to at(+s); rot is line direction only (R2),
  out removed; dia/rad split insert (baseline-left anchor, matches
  set_placement rendering) from anchor (OBB center, collision/eval) —
  fixes text rendered half-width off its registered OBB
- Leader fixes: multiline elbow moved above the text box (old elbow
  crossed line 2), no-space fallback no longer crashes unpacking None,
  seg-over-text check references the right loop variable
- SheetDecl.diag_png: solve()/apply() auto-refresh the annotated
  conflict image and return a must-read instruction — visual feedback
  is the first-class agent-in-the-loop channel
- test/test_dxf_engine.py: 18 tests covering the above contracts plus
  render determinism; API pages regenerated
2026-09-01 19:10:33 +08:00