timeline#
Interfaces#
LaidChildren#
Defined in: layout/src/timeline.ts:154
A children band laid out together with the children bands of the other
lines of its timeline’s row on the same side (section 6.4, Children): what
rows.ts gives layoutTimeline.
Properties#
children#
readonlychildren: readonlyPlacedChild[]
Defined in: layout/src/timeline.ts:160
The children it places, in the order of PreparedTimeline.children.
start#
readonlystart:number
Defined in: layout/src/timeline.ts:156
c0, the largest of the own starts of the bands laid out together (ownStart).
width#
readonlywidth:number
Defined in: layout/src/timeline.ts:158
Its width: i1 + o1 + … + iC + oC, its own C rows with the halves they share, summed left to right.
LaidMaps#
Defined in: layout/src/timeline.ts:142
A conversion maps band laid out together with the conversion maps bands of
the other lines of its row on the same side at the same level (section
6.4, Conversion maps): what rows.ts gives layoutTimeline.
Properties#
slots#
readonlyslots:Slots
Defined in: layout/src/timeline.ts:144
The slots the bands share.
start#
readonlystart:number
Defined in: layout/src/timeline.ts:146
c0, the largest of the own starts of the bands laid out together (ownStart).
LinePlace#
Defined in: layout/src/timeline.ts:105
Where a timeline’s line lies once every distance is known (section 6.4, the third pass).
Properties#
bottom#
readonlybottom:number
Defined in: layout/src/timeline.ts:121
The bottom of the card drawing the member drawing, in item coordinates: its top top plus its
height (sections 8.4 and 8.6), which every cross-section line of the card reaches (section
6.6).
Hc#
readonlyHc:number
Defined in: layout/src/timeline.ts:115
The member drawing’s content height Hc (section 6.5), its ancestor band included (section 8.4).
size#
readonlysize:number
Defined in: layout/src/timeline.ts:111
The name size s of the row its line lies in (section 6.2): the root’s own name size for the root.
top#
readonlytop:number
Defined in: layout/src/timeline.ts:113
The member drawing’s top, in item coordinates (section 8.4).
x0#
readonlyx0:number
Defined in: layout/src/timeline.ts:107
The shared start x0 (section 8.2), in item coordinates.
y#
readonlyy:number
Defined in: layout/src/timeline.ts:109
The ordinate yl of its line, in item coordinates.
PlacedChild#
Defined in: layout/src/timeline.ts:125
A child placed in its parent’s children band (section 6.4, Children).
Properties#
distance#
readonlydistance:number
Defined in: layout/src/timeline.ts:134
lk, the distance of its row from its parent’s line, outwards on the band’s side, shared by
the rows k of every children band laid out together with its parent’s.
drawing#
readonlydrawing:TimelineDrawing
Defined in: layout/src/timeline.ts:127
The child’s own drawing, laid out at its own line.
row#
readonlyrow:number
Defined in: layout/src/timeline.ts:129
Its row k in its parent’s children band, from 1, by that band’s first fit (section 6.3).
PreparedTimeline#
Defined in: layout/src/timeline.ts:60
One timeline once every first fit of its own bands is done (section 6.4, the first pass).
Properties#
bands#
readonlybands:Readonly<Record<Facet,PreparedBand>>
Defined in: layout/src/timeline.ts:73
Its five bands, present or not; the children and conversion maps bands without their widths.
centred#
readonlycentred: readonlyCentred[]
Defined in: layout/src/timeline.ts:101
Its drawn centred labels (section 6.7): its segment labels and its bands’.
children#
readonlychildren: readonlyEntry[]
Defined in: layout/src/timeline.ts:86
The child lines its children band places, in the order its first fit takes them (section 6.4, Children and Segments without a line): its own displayed children with a line of their own (every child of a timeline that is no segment line; every segment that is a segment line) in canonical order, then the displayed children of each joined segment, segment after segment in traversal order, each one’s in canonical order. Its children band is present exactly when this is not empty.
extent#
readonlyextent:Extent
Defined in: layout/src/timeline.ts:99
Its own extent (section 6.4, Children), from the root’s start: the smallest interval holding its line’s extent and every extent its bands and its level 0 add, its children’s left out.
levels#
readonlylevels:Readonly<Record<Side, readonlyFacet[]>>
Defined in: layout/src/timeline.ts:77
The facets of its present bands on each side, from level 1 or −1 outwards (section 6.4, Levels).
levelZero#
readonlylevelZero:LevelZero
Defined in: layout/src/timeline.ts:94
Its line, its segments’ boundaries and labels.
line#
readonlyline:Entry
Defined in: layout/src/timeline.ts:67
Its entry: a timeline drawn with a line of its own.
lineExtent#
readonlylineExtent:Extent
Defined in: layout/src/timeline.ts:65
Its line’s own extent, its labels and its children’s left out (section 6.4, Children).
maps#
readonlymaps: readonlyMapMember[]
Defined in: layout/src/timeline.ts:92
The maps of its conversion maps band in the order they are taken (section 6.4, Conversion maps): its own, then those of each joined segment. Its band is present exactly when this is not empty.
markers#
readonlymarkers:MarkersBand
Defined in: layout/src/timeline.ts:75
Its markers band, bands.markers, with the cross-section lines it holds.
order#
readonlyorder: readonlystring[]
Defined in: layout/src/timeline.ts:69
Its band order (core’s bandOrderOf): line and its five facets, top to bottom.
scope#
readonlyscope:Scope
Defined in: layout/src/timeline.ts:61
sides#
readonlysides:Readonly<Record<Facet,Side>>
Defined in: layout/src/timeline.ts:71
The side of its line each of its bands lies on, by its band order (section 6.4, The band order).
stages#
readonlystages:Stages
Defined in: layout/src/timeline.ts:63
Its bands before their first fits are placed, so that a row of one band order places them together.
Stages#
Defined in: layout/src/timeline.ts:50
The bands of a timeline as its modules prepare them, those with a first fit of their own before it is placed: the markers band’s stacks, the regions band’s regions and level 0’s segment labels (section 6.4, Rows of one band order); the children, conversion maps and flow control bands as they are.
Properties#
children#
readonlychildren:PreparedBand
Defined in: layout/src/timeline.ts:54
conversion_maps#
readonlyconversion_maps:PreparedBand
Defined in: layout/src/timeline.ts:55
flow_control#
readonlyflow_control:PreparedBand
Defined in: layout/src/timeline.ts:56
markers#
readonlymarkers:StagedMarkers
Defined in: layout/src/timeline.ts:51
regions#
readonlyregions:StagedRegions
Defined in: layout/src/timeline.ts:52
zero#
readonlyzero:StagedZero
Defined in: layout/src/timeline.ts:53
TimelineDrawing#
Defined in: layout/src/timeline.ts:168
One timeline drawn with a line of its own, laid out with its bands and its children at every depth (section 6.4): the recursion’s unit. A member drawing is the tree of these from its root.
Properties#
bands#
readonlybands: readonlyLaidBand[]
Defined in: layout/src/timeline.ts:174
Its present bands, top to bottom: those above from the outermost to level 1, then those below from level −1 outwards.
children#
readonlychildren:LaidChildren|undefined
Defined in: layout/src/timeline.ts:182
Its children band laid out, undefined when it is absent.
edges#
readonlyedges:Readonly<Record<Side,number>>
Defined in: layout/src/timeline.ts:180
The outer edge of each side (section 6.4, Where a band lies): for a child, its edges, which
size the halves of its row (Children); for the root, Ea and Eb before the ancestor band
(sections 6.5 and 8.3).
prepared#
readonlyprepared:PreparedTimeline
Defined in: layout/src/timeline.ts:169
reach#
readonlyreach:Readonly<Record<Side,number>>
Defined in: layout/src/timeline.ts:184
How far its line reaches on each side (section 6.4, Level 0; reachOf).
Methods#
elements()#
elements(
place):LineElements
Defined in: layout/src/timeline.ts:189
Its own elements with its line at place: its line and what its bands hold, by the
categories of section 7.2, never its children’s, which each draw their own.
Parameters#
place#
Returns#
Functions#
layoutTimeline()#
layoutTimeline(
prepared,children,maps,aligned?):TimelineDrawing
Defined in: layout/src/timeline.ts:530
The second pass for one timeline, once its children band and its
conversion maps band are laid out with those of the other lines of its row
(children and maps, each undefined exactly when its band is absent):
its reach by its slots (reachOf), each side filled by fillSide from
its present bands in level order, the children band at children.start
and children.width wide, the conversion maps band at maps.start and as
wide as its slots make it, or every band where aligned gives the spans
of a row of one band order; its outer edges; and its elements once its
line’s place is known.
Parameters#
prepared#
children#
LaidChildren | undefined
maps#
LaidMaps | undefined
aligned?#
Readonly<Partial<Record<Facet, BandSpan>>>
Returns#
ownStart()#
ownStart(
prepared,slots,facet,spans,pl):number
Defined in: layout/src/timeline.ts:432
The own start of the children band or the conversion maps band of
prepared, facet, on its side (section 6.4, Where a band lies): the
start bandStart gives it after the present bands at lower levels of its
side, those laid out with other lines’ at spans, its line reaching as
slots makes it (reachOf); for a children band the larger of that and
pl / 2, pl the pitch of the row its line lies in (p0 for the root).
Defined only for a present band.
Parameters#
prepared#
slots#
Slots | undefined
facet#
"conversion_maps" | "children"
spans#
pl#
number
Returns#
number
prepareRow()#
prepareRow(
lines):PreparedTimeline[]
Defined in: layout/src/timeline.ts:357
The lines of a row of one band order prepared together (section 6.4, Rows
of one band order), lines in traversal order, each prepared alone
(prepareTimeline): the stacks of all their markers bands placed by one
first fit into one set of tiers, line after line; the regions of all their
regions bands by one tiered first fit, line after line, so that their
rows, label tiers and pitches are one, at the largest font size of their
drawn labels; the segment labels of their segment lines by one first fit
into one set of segment-label tiers, at one m, which counts k when any
of them draws a boundary. On each side the band of a facet is present for
every line when it is present for one, and the markers and regions bands
of each facet are as wide as the widest of them; the children and
conversion maps bands take their spans where the row’s bands are laid out
(rows.ts).
Parameters#
lines#
readonly PreparedTimeline[]
Returns#
prepareTimeline()#
prepareTimeline(
scope,line):PreparedTimeline
Defined in: layout/src/timeline.ts:267
The first pass for the timeline drawn with the line line (section 6.4):
its band order (core’s bandOrderOf over the scope’s manifest), the side
of each band, each band prepared by its module from sourcesOf (markers,
conversion maps, regions, flow control; the children band from
children), its markers stacks, regions and segment labels placed by its
own first fits alone, the present bands’ levels, its maps, its level 0,
its own extent and its centred labels. Uses no distance and no other
line’s layout, so every line of a member drawing can be prepared first;
prepareRow places the first fits of a row of one band order together.
Parameters#
scope#
line#
Returns#
reachOf()#
reachOf(
prepared,slots):Readonly<Record<Side,number>>
Defined in: layout/src/timeline.ts:245
How far the line of prepared reaches on each side (section 6.4, Level
0), slots the slots of its conversion maps band when it is present: its
map stack on a side is that band when it lies there at level 1 or −1,
reaching e, and empty otherwise.
Parameters#
prepared#
slots#
Slots | undefined
Returns#
Readonly<Record<Side, number>>
sourcesOf()#
sourcesOf(
scope,line): readonlyEntry[]
Defined in: layout/src/timeline.ts:205
The timelines whose content the bands of the line line draw (section
6.4, Segments without a line): line itself, then, when it is a segment
line, each of its displayed segments that is no segment line, in
traversal order; on a switched card’s root (section 8.10), the root and
its drawing in each stretch piece of its FlowMap, in their order. Such a
segment’s or piece’s bands lie at line’s line: what each of
its displayed bands holds joins the band of line of the same facet, after
line’s own content; its own band order places nothing. None when line
is not displayed, which hides its timeline’s whole drawing (section 2.4):
only the root is laid out so, every other line being placed only when
displayed.
Parameters#
scope#
line#
Returns#
readonly Entry[]
wholeExtent()#
wholeExtent(
own,children):Extent
Defined in: layout/src/timeline.ts:462
The smallest interval holding own and every one of children, each end
compared exactly (section 6.4, Children): a timeline’s own extent from
what its line and its bands add, and its extent from its own and its
placed children’s, once for every line in the first pass (Fitted.extent).
Parameters#
own#
children#
readonly Extent[]