Skip to content

feat: add ARC command with multi-input construction flows and i18n#193

Merged
mlightcad merged 1 commit intomainfrom
feat/arc
Apr 8, 2026
Merged

feat: add ARC command with multi-input construction flows and i18n#193
mlightcad merged 1 commit intomainfrom
feat/arc

Conversation

@mlightcad
Copy link
Copy Markdown
Owner

@mlightcad mlightcad commented Apr 8, 2026

Summary

This PR introduces a new ARC command in cad-simple-viewer, including interactive jig preview, multiple arc-construction workflows, and localized prompts/messages in English and Chinese.

What Changed

  • Added AcApArcCmd and registered arc in the command manager.
  • Exported the new command from src/command/index.ts.
  • Implemented arc creation flows in AcApArcCmd:
    • Start -> Second -> End (3-point arc)
    • Start -> Center -> End/Angle/Chord Length
    • Start -> End -> Center/Angle/Direction/Radius
    • Center -> Start -> End/Angle/Chord Length
  • Added dynamic preview jig behavior for arc creation.
  • Added invalid-geometry warnings for unsupported/degenerate inputs.
  • Added direction-flip handling via input toggle (Ctrl) for preview and final commit consistency.
  • Added i18n entries:
    • Command description (en / zh)
    • Arc prompts, keywords, and validation messages (en / zh)

@mlightcad mlightcad self-assigned this Apr 8, 2026
@mlightcad mlightcad added the enhancement New feature or request label Apr 8, 2026
@mlightcad mlightcad merged commit df7e657 into main Apr 8, 2026
2 checks passed
@mlightcad mlightcad deleted the feat/arc branch April 9, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant