rows#
Interfaces#
FirstPass#
Defined in: layout/src/rows.ts:97
The first pass of a member drawing (section 6.4): its root’s row and every line fitted.
Properties#
fitted#
Defined in: layout/src/rows.ts:99
root#
readonlyroot:Row
Defined in: layout/src/rows.ts:98
Joint#
Defined in: layout/src/rows.ts:59
The present children bands of the lines of one row that lie on one side of those lines, laid out together (section 6.4, Children), also when there is only one.
Properties#
lines#
readonlylines: readonlyEntry[]
Defined in: layout/src/rows.ts:63
The lines of the row whose children band it lays out, in traversal order.
pitch#
readonlypitch:number
Defined in: layout/src/rows.ts:72
Its pitch p = max(10 + S, h(s)), the pitch of each of its rows.
rows#
readonlyrows: readonlyRow[]
Defined in: layout/src/rows.ts:65
Its rows, row k at index k − 1: every child that any of its bands places in its row k.
side#
readonlyside:Side
Defined in: layout/src/rows.ts:61
The side of their lines they lie on: the side of their rows’ outer halves.
size#
readonlysize:number
Defined in: layout/src/rows.ts:70
Its name size s (section 6.2): the largest font size of the names of the lines of its rows,
displayed or not, a row of segment lines alone counting its first line’s.
PlacedLine#
Defined in: layout/src/rows.ts:76
A timeline’s drawing with its line placed (section 6.4, the third pass).
Properties#
drawing#
readonlydrawing:TimelineDrawing
Defined in: layout/src/rows.ts:77
place#
readonlyplace:LinePlace
Defined in: layout/src/rows.ts:78
row#
readonlyrow:Row
Defined in: layout/src/rows.ts:80
The row its line lies in.
Row#
Defined in: layout/src/rows.ts:32
A row of lines at one ordinate (section 6.4, Children): the root’s row, or
row k of children bands laid out together, which holds every child that
any of them places in its row k.
Properties#
aligned#
readonlyaligned:boolean
Defined in: layout/src/rows.ts:46
Whether aligned children bands place its lines (section 6.4, Children), so that they lay out their bands together, facet by facet (Rows of one band order); false for the root’s row.
joints#
Defined in: layout/src/rows.ts:51
The present children bands of its lines on each side, laid out together; undefined for a
side where none of its lines has a present children band.
lines#
readonlylines: readonlyEntry[]
Defined in: layout/src/rows.ts:34
Its lines in traversal order.
pitch#
readonlypitch:number
Defined in: layout/src/rows.ts:41
Its pitch: p0 = max(10 + S, h(s)) for the root’s row, else the pitch p of its joint layout.
size#
readonlysize:number
Defined in: layout/src/rows.ts:39
Its name size s (section 6.2): the root’s name font size for the root’s row, else that of
the children bands laid out together whose row it is.
Functions#
layoutRow()#
layoutRow(
row,fitted,slots):ReadonlyMap<Entry,TimelineDrawing>
Defined in: layout/src/rows.ts:316
The second pass for the lines of row (section 6.4, Children: “the
distances, from the deepest rows up”), slots the slots of every present
conversion maps band (rowSlots): for each side, the rows of the joint
layout of its lines’ children bands, each laid out first; their halves
(childrenHalves); the common start of each set of bands laid out
together, the children bands and the conversion maps bands sharing slots
(resolveStarts); the children placed (placeChildren); then each line
of row laid out by layoutTimeline. Keyed by the row’s lines, each
drawing holding its subtree.
Parameters#
row#
fitted#
slots#
Returns#
ReadonlyMap<Entry, TimelineDrawing>
placeLines()#
placeLines(
root,row,place):PlacedLine[]
Defined in: layout/src/rows.ts:466
The third pass (section 6.4: “the ordinates, from the root’s line down”):
every line of the member drawing placed, in traversal order, from the
root’s drawing root in the root’s row row at place. A child in a
band above its parent’s line lies at yl − lk, one below at yl + lk,
yl its parent’s ordinate and lk its PlacedChild.distance; it shares
x0, the top, Hc and the card’s bottom of place and takes the name
size of its own row.
Parameters#
root#
row#
place#
Returns#
rowsBelow()#
rowsBelow(
row):Row[]
Defined in: layout/src/rows.ts:183
Every row of a member drawing, the root’s first, then each joint’s rows, at every depth.
Parameters#
row#
Returns#
Row[]
rowsOf()#
rowsOf(
scope,lines):FirstPass
Defined in: layout/src/rows.ts:112
The first pass’s rows (section 6.4, Children): the root’s row of the
member drawing and, top-down, every joint layout below it, with every
row’s name size and pitch, from the lines lines prepared alone. The
children bands of a joint are aligned when every child they place has
one band order; each band places its children by first fit
(fitChildren), by their line-only extents where aligned and their whole
extents otherwise. The lines of a row placed by aligned bands are prepared
together (prepareRow); every other line keeps its own preparation.