flow#
Functions#
flowControlBand()#
flowControlBand(
scope,line):PreparedBand
Defined in: layout/src/flow.ts:312
The flow control band of the timeline drawn with the line line (section
6.4, Gathering, Flow control, Flow labels, Symbols, Forks and Arcs):
present only for the root of the member drawing, whose band draws the
band’s elements (gathered), in their order:
the flow lines, each displayed break, section break and barline;
the stacks (
stackOf) of the displayed flow lines and of every jump, placed by one first fit into the flow label tiers, each stack one item as many lines high as it has labels, with the extent[L × u + 3 − 1, L × u + 3 + w + 1],wits widest label; a tier is as many lines high as its highest stack,Tthe lines of all tiers;the symbols (core’s
flowSymbols), one text centred on its element’s position on the symbol row, its text line starting 2 beyond the flow row,Hs = 2 + h(zs) + 2wide, so that no glyph meets a line;the forks (
forkOf): one per jump with a branch, a destination whosemanifestationisvoltaand whose place resolves, the branches by their places; each at its jump’sxon the fork row, of one size on the canvas, never placed by first fit,Hf = (h(zf) / 2 + 18 × sM) + h(zf) / 2wide,sMtheskofmin(N − 1, 2),Nthe most branches a fork has;the arcs of each displayed jump, one per destination not
by0 and notvoltawhose place resolves (placeOf), in a member’s card only where its to lies on the member’s stretch, on an unfolded card only in a piece holding both its from and its to (section 8.10); sorted stably by span and placed by first fit, never widened by their labels, into theKjump rows; then each row’s labels, in the order of its arcs, by one first fit of the row into itsTklabel tiers (Tk = 1without a label), the row’s pitchpjk = 6 + S + Tk × h(9).
Outwards from the band’s start c: the flow label tiers, T × h(9); the
flow row f0 = c + T × h(9); the symbol row; the fork row; from f1 = f0 + Hs + Hf the jump rows, row k’s apex f1 + (4 + S) + (pj1 + … + pj(k − 1)). The band is T × h(9) + Hs + Hf + (4 + S) + (pj1 + … + pj(K − 1)) + 2 + TK × h(9) wide for K ≥ 1 jump rows and `T × h(9) + Hs
Hf
for none, summed left to right, the pitches summed first; 9 is the largest font size of its drawn arc and stack labels. A label in tierj ≥ 2of a jump row, and the stack of a jump whose first line is not line 1, is joined by a leader (section 6.6, Leaders). An element marking a position in a gap is not drawn (section 6.6, Elisions): a flow line with its stack, a jump's stack, a symbol, a fork whose jump's position lies in one, and an arc whose from, to or the midpoint of the two does, each with its label and its leader. A rejected element (some actor believes itfalse`) is drawn faded with everything it draws.