box
A thing in a flowchart, drawn as a shape holding its text.
box

#Attributes
shapeThe implicit attribute,
box#check:decision{…}. The flowchart's box (the default, a rounded rectangle), decision (a diamond: one arrow leaves by its front vertex, two by its side vertices, more by the sides with the rest spread about the front), terminal (a pill) and ellipse. Entity–relationship: entity and weak-entity (a rectangle, doubled), relationship and identifying-relationship (a diamond, doubled), attribute and multivalued-attribute (an ellipse, doubled) and key-attribute (its label underlined).boxdecisionterminalellipseentityweak-entityrelationshipidentifying-relationshipattributemultivalued-attributekey-attributebox:valueDefault
boxgroupWhat kind of thing the box is. Boxes of one group share a hue — the environment's
hues: pins it, or the next free hue is dealt — and the footer keys each group. A box's own colour: still wins.colourThe box fills with the hue's tint and its text takes the hue; unset, it sits on the environment's ground. Wins over the box's
group: hue.colourAlso written:
colorhiddenDeclared but not drawn, and taking no room while hidden: the arrangement makes room when it is revealed, the rest gliding aside. Animatable.
Default
false#Allowed content
Body { }The box's text, rich inline; one source line per line of the box — the first is the label, the rest sit smaller beneath it
#Allowed in
#Examples


flowchart{
box#sample:terminal{Sample collected}
box#pcr{
PCR amplify
30 cycles
}
arrow(from: #sample; to: #pcr)
}(
direction: right
)

flowchart{
box#pcr{PCR amplify}
box#check:decision{Enough DNA?}(colour: orange)
arrow(from: #pcr; to: #check)
}(
direction: right
)

flowchart:right{
box#positivism{Positivism}(group: Theory)
box#survey{Survey}(group: Method)
box#interpretivism{Interpretivism}(group: Theory)
box#interview{Interview}(group: Method)
arrow(from: #positivism; to: #survey)
arrow(from: #interpretivism; to: #interview)
}(
hues: Theory = purple, Method = teal
)#Notes
- The body is the box's text, rich inline: maths, bold and live
{{…}}values all work. - The first line of the text is the label; every further line is set smaller and muted beneath it.
- Text longer than the widest box wraps.
- The environment places every box, in ranks along its
direction:by what the arrows connect.