The node kind (spec/04 §5.2): a diagram's node, the shape at the box a layout
assigned and its label inside it, new in the second cut.
| Channel | Role, family | Types | |
|---|---|---|---|
x, y | position: the box's center, the layout's pixels | number | req |
width, height | the box's size, pixels | number | req |
label | text | text, category, number | req |
shape | text: a shape's spelling | category, text | |
series | series | category, text, number |
Options: shape (rect; round, stadium, circle, diamond, hexagon,
parallelogram, cylinder, actor, note), the shape a row without its own draws;
padding (8), the space inside the box around the label. Parts: stroke (the
outline in the layer's paint), font. Paint: stroke; the shape is filled with the
theme's background and its label inked in text. One node per row: the shape
centered at (x, y), width × height, and its label's lines inside it, each wrapped
to the box's width less the padding by the text estimate (Macaw.Draw.Text.width/2) and
cut with an ellipsis past the lines the box holds. A label of several lines is
compartmented: a rule under its first line, the rest set from the box's left edge (a
class's members, an entity's attributes). An actor's label sits below its figure. A
spelling the vocabulary lacks draws the option's shape; nothing is made an atom. Not
bent. Anchor: the center, and its box the bounds the edge anchors (x0, x1, y0, y1)
place a label by. Budget: w. Summary: "diagram", counting the nodes.
The node's identity is the diagram's: a layer over the nodes slot keeps its declared
identity through the layout step, so a pick on a node writes selection with its id.