arrow
A relation between two boxes in a flowchart, drawn as a line the environment routes.
arrowOn this page


#Attributes
fromThe
#id of the box the arrow leaves.Can be written as shorthand:
arrow:valuetoThe
#id of the box the arrow enters.headWhich ends carry an arrowhead.
endnonebothstartDefault
endlabelText in a chip on the arrow's line.
from-labelText beside the line where it leaves
from.to-labelText beside the line where it meets
to.colourThe colour of the stroke, its head, its chip's edge and its label.
paintAlso written:
colordashedA dashed stroke, the conventional weaker or conditional relation.
Default
falsehiddenDeclared but not drawn, and taking no room while hidden.
Default
false#Allowed in
#Examples


flowchart{
box#dna{DNA}
box#rna{RNA}
arrow(from: #dna; to: #rna; label: transcription)
}(
direction: right
)

flowchart{
box#pcr{PCR amplify}
box#check:decision{Enough DNA?}
arrow(from: #pcr; to: #check)
cue.draw{
arrow(from: #check; to: #pcr; label: no)
}(
in: 2
)
}(
direction: right
)#Notes
- The endpoints are
#ids of boxes in the same environment; an id no box declares is a compile error:'arrow.to' names '#qc', but no box in this environment declares that id. - A forward arrow leaves the front of its source and lands on the back of its target: straight where the two line up, and turning once, on a track of its own, where they do not.
- An arrow never crosses a box or runs along another arrow.
- An arrow back against the flow, or to its own box, leaves by the side and lands on the target's back.
cue.drawstrokes an arrow in along its length; several arrows and boxes in one draw follow the flow.- A
dashed:arrow fades in undercue.drawinstead of being stroked. - The endpoints are
#ids of boxes in the same environment; an id no box declares is a compile error.