Skip to content

feat(renderer): source-line to segment mapping (G-code debugger surface) #184

Description

@sobechestnut-dev

Backlog candidate (2026-07-23 research pass) · developer-facing differentiator.

Expose source-line to segment mapping in the viewer: click a rendered segment to jump to / highlight its G-code source line, and the reverse.

Data: already parsed — ir.sourceIndex provides byte to segment lookups (built in E1/E2, known capability); segmentAtByte exists.

Why: nobody expects a toolpath viewer to double as a G-code debugger — this is a cheap, genuinely differentiating feature for a library aimed at developers/integrators (AnyBridge, tooling), not just end-user eye candy.

Approach: a small API/UI to resolve a picked segment to its source line (and a line to segment highlight). Picking may need per-segment hit-testing; the index math is done.

Implementation gated by DD triage per project governance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions