Repository navigation
Closed
Labels
in progresssomeone is working on it (see comments)needs-triageno priority yet; a maintainer sorts it with /triage
Description
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 andpaper_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
ViewFramebuilt from its parent's frame. It has the same basis, its ownScale, 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 withViewFrame::seg_to_paper. - Boundary outline on the parent (the circle or rectangle marked on the parent view), as
Seg2on 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
AtoZ, thenAA,ABand so on), and the next free one given those already in use.I,OandQare 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
- Clipping view geometry to the window. Shared clipping is Drawing W10, W21, W22: the paper scene, and export to SVG, DXF, PNG and PDF #4890's A8 ("clips, resolved once"), which CamWight keeps with the export work. This slice produces the window shape that A8's clip consumes. It does not add a second clipper. W35 is A8's first consumer.
- Saved records, commands, UI and paper scene items. They depend on W12/W17c saved views (Drawing W11, W12, W15: where drawings are saved, their records and their commands (#3890) #3891, Drawings: views keep their own display settings, and can be moved, picked and deleted on a sheet (#4816) #9401) and on the paper scene. They come in later W35 children.
- Caption text ("detail A, scale 2:1"). It needs W09 formats and B1 measured text.
Dependencies
W17a ViewFrame/Scale (integrated, #4817). No unfinished provider.
Metadata
Metadata
Assignees
Labels
in progresssomeone is working on it (see comments)needs-triageno priority yet; a maintainer sorts it with /triage
Activity
github-actions commentedon Oct 30, 2026
Claimed by @PaddleStroke through #9720. The claim lapses after 14 days without pushes.
claim: tangency-labs#9718
Drawing W35a: detail view boundary, frame, outline, window and labels (…
Drawing W35a: detail view boundary, frame and labels (tangency-labs#9718