Skip to content

Drawing W35a: detail view boundary, frame and labels as geometry (part of #860) #9718

Closed

Description

@PaddleStroke

Part of #860 (W35, detail/crop views). This is the first child. It is geometry and data only, in crates/geom (L0), and targets drawings.

Scope (W35a)

A new geom::drawing_detail module, next to W17a's drawing_view:

  • Detail boundary in the parent view's plane coordinates (the same coordinates as ViewFrame's centre and paper_map): a circle (centre, radius) or a rectangle (box). Validated: finite, positive size, and sizes bounded so nothing overflows on paper.
  • Detail frame: the detail view's ViewFrame built from its parent's frame. It has the same basis, its own Scale, and the boundary's centre at a chosen paper position. Every point of the parent's plane maps through it, so view curves already produced for the parent (Seg2) move onto the detail with ViewFrame::seg_to_paper.
  • Boundary outline on the parent (the circle or rectangle marked on the parent view), as Seg2 on the parent's paper.
  • Window on the detail's paper: the same boundary in the detail's paper millimetres (circle or rectangle), which is the shape a clip takes. Also conservative boxes of the boundary in plane, parent-paper and detail-paper coordinates, for culling.
  • Labels: validated detail identifiers (capital letters A to Z, then AA, AB and so on), and the next free one given those already in use. I, O and Q are skipped (a common drafting convention, since they read as digits). Also a label anchor point outside the parent's outline, in a chosen direction and at a chosen gap.
  • Exhaustive tests: hand-worked mappings at several scales and view orientations, outline closure, agreement between the window and the frame, hostile numbers (NaN, infinities, zero/negative/huge sizes, off-paper positions), and the label sequence and its caps.

Not in this slice

Dependencies

W17a ViewFrame/Scale (integrated, #4817). No unfinished provider.

Activity

  1. added
    needs-triage
    in progress
    on Oct 30, 2026
  2. github-actions commented on Oct 30, 2026

    @github-actions
    Contributor

    Claimed by @PaddleStroke through #9720. The claim lapses after 14 days without pushes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in progressneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions