Expand description
Plan items as data (the editor thin slice’s stream S2): each item’s typed State, the
edit that fixes a problem (Op), and one label formatter (items, label), so a
caller (the editor, an MCP client) never reads an item’s state from its basis sentence or
formats its text again. The basis stays, for a person (ADR R1 invariant 4).
Every plan item carries its state: on the sheet (State::Shown); left out by the spec
(State::OmittedByUser, State::NotAuthored); stated by another item
(State::Covered); or kept in the plan undrawn, with the code of the problem that says why
(State::NotDrawable: R1 invariant 3). Each is set where the plan decides it.
Structs§
- Item
- A plan item, as a caller lists it.
- Op
- One edit operation, as
crate::model::edittakes it: a problem’sfixis a list of them, applied together.
Enums§
- State
- What became of a plan item.
Functions§
- frame_
label - A feature control frame’s compartments as one line.
- items
- Every item of plan, once each by its ID, in the plan’s order: the sheet (ID
sheet), the views, the dimensions (drawn, then omitted), the GD&T items, the drawing-wide requirements (one carried by a general note is listed as that note), the notes, the tables, the hole table and the balloons. - key
- id as one key of an edit path:
~written~0and/written~1(RFC 6901). - label
- The text draftwright draws for the item id of plan (
Item::label); none for an item that draws no one line of text, or an ID the plan does not have.