bands#
Interfaces#
BandSpan#
Defined in: layout/src/bands.ts:272
Where a band laid out together with bands of other lines of its row lies
(section 6.4, Children and Conversion maps): its start, the common c0 of
the bands laid out together, and its width.
Properties#
start#
readonlystart:number
Defined in: layout/src/bands.ts:273
width#
readonlywidth:number
Defined in: layout/src/bands.ts:274
Centred#
Defined in: layout/src/bands.ts:41
A drawn centred label (section 6.7): its width and the distance L × u from
the root’s start of the position it is centred on, L × u − D in a card
with gaps (section 3.2), xm − x0 for an elision’s label.
Properties#
v?#
readonlyoptionalv?:number
Defined in: layout/src/bands.ts:45
Its carry v, by which a turned wedge moves it across (section 6.7); 0 where absent.
width#
readonlywidth:number
Defined in: layout/src/bands.ts:42
x#
readonlyx:number
Defined in: layout/src/bands.ts:43
LaidBand#
Defined in: layout/src/bands.ts:242
A present band laid out (section 6.4, Levels and Where a band lies).
Properties#
edge#
readonlyedge:number
Defined in: layout/src/bands.ts:254
Its outer edge: c plus its width, the width summed first; for the markers or conversion
maps band at level 1 or −1, the larger of that and the line’s reach on its side.
elements#
readonlyelements:number
Defined in: layout/src/bands.ts:256
As PreparedBand.elements.
facet#
readonlyfacet:Facet
Defined in: layout/src/bands.ts:243
level#
readonlylevel:number
Defined in: layout/src/bands.ts:246
Signed and never 0: 1, 2, … above the line, outwards; −1, −2, … below it.
side#
readonlyside:Side
Defined in: layout/src/bands.ts:244
start#
readonlystart:number
Defined in: layout/src/bands.ts:248
Its start c, a distance outwards from its timeline’s line.
width#
readonlywidth:number
Defined in: layout/src/bands.ts:249
LaidSide#
Defined in: layout/src/bands.ts:260
One side of a timeline laid out (section 6.4, Where a band lies).
Properties#
bands#
readonlybands: readonlyLaidBand[]
Defined in: layout/src/bands.ts:262
Its present bands, from level 1 or −1 outwards.
edge#
readonlyedge:number
Defined in: layout/src/bands.ts:264
The outer edge of the side: its outermost band’s, or the line’s reach when no band is present there.
LineElements#
Defined in: layout/src/bands.ts:120
What one timeline drawn with a line of its own draws (its line, and what its bands hold), by the categories of section 7.2, each category in its order within that timeline. A member drawing concatenates each category over its timelines in traversal order, so breaks, section breaks and barlines, maps, regions and jumps come band by band, and orders boundaries and segment labels by the traversal order of their segments. Ancestor lines, their marks and the row names belong to the member drawing, not to a timeline.
Properties#
boundaries#
readonlyboundaries: readonlySegmentElement<VerticalLineElement>[]
Defined in: layout/src/bands.ts:140
The boundaries of its segments, on its line.
crossSections#
readonlycrossSections: readonlyVerticalLineElement[]
Defined in: layout/src/bands.ts:172
The cross-section lines its line holds, in the order its markers band places their timestamps.
flowLineLabels#
readonlyflowLineLabels: readonlyTextElement[]
Defined in: layout/src/bands.ts:170
The labels of the stacks of its flow control band’s breaks, section breaks, barlines and jumps, element by element (the flow lines first), each stack’s from the flow row inwards.
flowLines#
readonlyflowLines: readonlyVerticalLineElement[]
Defined in: layout/src/bands.ts:126
Its flow control band’s breaks, section breaks and barlines: for the root of the member drawing, those of its whole tree, timeline by timeline in traversal order, each one’s in canonical order; none for any other timeline.
forks#
readonlyforks: readonlyForkElement[]
Defined in: layout/src/bands.ts:134
Its flow control band’s volta forks, in the order of the band’s elements.
gapLabels#
readonlygapLabels: readonly (readonly [Gap, readonlyStackLabel[]])[]
Defined in: layout/src/bands.ts:177
The labels of the gaps whose label stacks its markers band places (section 6.4, Markers), by gap, each gap’s in stack order: written with the gap, not with the band (section 8.5).
jumpLabels#
readonlyjumpLabels: readonlyTextElement[]
Defined in: layout/src/bands.ts:165
The labels of the arcs of its flow control band’s jumps, in the order of jumps.
jumpLeaders#
readonlyjumpLeaders: readonlyLeaderElement[]
Defined in: layout/src/bands.ts:161
The leader lines of its flow control band’s arc labels beyond their first tier, in the order of jumpLabels.
jumps#
readonlyjumps: readonlyJumpElement[]
Defined in: layout/src/bands.ts:132
The arcs of its flow control band’s jumps, in the order its first fit places them: sorted stably by span.
line#
readonlyline: readonlyLineElement[]
Defined in: layout/src/bands.ts:138
Its line when displayed: a timeline element for the root of the member drawing, else a child.
maps#
readonlymaps: readonlyMapElement[]
Defined in: layout/src/bands.ts:128
Its conversion maps band’s maps: its own, then each joined segment’s, each in canonical order.
markers#
readonlymarkers: readonlyLineMarker[]
Defined in: layout/src/bands.ts:182
Where a coordinate marker of its line lies, with its line (one, when its line is drawn): what
the line’s axis carries for an editor’s marks (DrawnAxis.marker).
regionLabels#
readonlyregionLabels: readonlyTextElement[]
Defined in: layout/src/bands.ts:157
The labels of its regions band’s regions, in the order of regions.
regionLeaders#
readonlyregionLeaders: readonlyLeaderElement[]
Defined in: layout/src/bands.ts:159
The leader lines of its regions band’s labels beyond their first tier, in the order of regionLabels.
regions#
readonlyregions: readonlyRegionElement[]
Defined in: layout/src/bands.ts:130
Its regions band’s braces, in the order its first fit places them.
segmentLabels#
readonlysegmentLabels: readonlySegmentElement<TextElement>[]
Defined in: layout/src/bands.ts:153
The labels of its segments, in their tiers above its line.
segmentLeaders#
readonlysegmentLeaders: readonlySegmentElement<LeaderElement>[]
Defined in: layout/src/bands.ts:155
The leader lines of its segments’ labels beyond their first tier, in the order of segmentLabels.
stackLeaders#
readonlystackLeaders: readonlyLeaderElement[]
Defined in: layout/src/bands.ts:163
The leader lines of its flow control band’s jump stacks beyond their first tier, in the order of the stacks.
symbols#
readonlysymbols: readonlySymbolElement[]
Defined in: layout/src/bands.ts:136
Its flow control band’s symbols, element by element in the order of its flow lines’ elements.
wedgeLabels#
readonlywedgeLabels: readonlyTextElement[]
Defined in: layout/src/bands.ts:151
Its markers band’s labels of named timestamps, the marker labels: timestamp by timestamp in
the order of wedges, each one’s in the order of its stack (name, ID, coordinate), whether or
not its wedge is drawn.
wedges#
readonlywedges: readonlyMarkerElement[]
Defined in: layout/src/bands.ts:145
Its markers band’s wedges in the order the band places their named timestamps: its own, then those its segments without a line join to it.
LineMarker#
Defined in: layout/src/bands.ts:186
A drawn line, where a coordinate marker of it lies, and the named timestamps it holds.
Properties#
entry#
readonlyentry:Entry
Defined in: layout/src/bands.ts:189
The entry it draws the line of: its timeline’s, or a root’s piece on a switched card.
line#
readonlyline:LineElement
Defined in: layout/src/bands.ts:187
marker#
readonlymarker:AxisMarker
Defined in: layout/src/bands.ts:190
timestamps#
readonlytimestamps: readonlyAxisTimestamp[]
Defined in: layout/src/bands.ts:191
LinePosition#
Defined in: layout/src/bands.ts:53
A timeline’s line placed in its item (sections 3.2, 3.3 and 6.4): what a band of that timeline needs to draw its elements once its start is known. Every position is in item coordinates.
Properties#
beyond#
readonlybeyond: (side,y,size) =>number
Defined in: layout/src/bands.ts:91
The baseline of a label of font size size beyond the ordinate y (section 6.6): y − d(size) above, y + a(size) below.
Parameters#
side#
y#
number
size#
number
Returns#
number
cuts#
readonlycuts: (start,end) =>Cut[]
Defined in: layout/src/bands.ts:82
The edges of the gaps a row spanning start to end crosses, from the left (end null: open
to the right), where its line or outline stops and resumes (section 6.6, Elisions).
Parameters#
start#
end#
Real | null
Returns#
Cut[]
flowLineEnd#
readonlyflowLineEnd: (side) =>number
Defined in: layout/src/bands.ts:98
The ordinate at which a break, a section break or a barline ends (section 6.4, Flow lines),
drawn by the flow control band of the root of the member drawing, lying on side: the
drawing’s top plus P + V when the band lies below the line and its top plus Hc − P − V
when above.
Parameters#
side#
Returns#
number
gap#
readonlygap: (value) =>Cut|undefined
Defined in: layout/src/bands.ts:77
The edges x(a) and x(b) of the gap a position lies in on an elided axis (sections 3.2
and 6.6, Elisions), its ends excluded; undefined for a position in no gap. An element
marking a position in a gap is not drawn.
Parameters#
value#
Returns#
Cut | undefined
x#
readonlyx: (value) =>number
Defined in: layout/src/bands.ts:60
x of an exact position on the root’s axis (section 3.2): x0 + L × u, on an elided axis
x0 + (L × u − D); a position in a gap has none (gap).
Parameters#
value#
Returns#
number
x0#
readonlyx0:number
Defined in: layout/src/bands.ts:55
The shared start x0 of the member drawing (section 8.2).
xAfter#
readonlyxAfter: (value) =>number
Defined in: layout/src/bands.ts:66
x of a position as the start of what follows it: at a seam of a root drawn once (section
8.8, Drawn once), on the run right of it, where a region starts or a jump lands; x elsewhere.
x itself reads the line’s own start so, and so its named timestamps there.
Parameters#
value#
Returns#
number
xEnd#
readonlyxEnd: (entry) =>number
Defined in: layout/src/bands.ts:71
Xe, x of a timeline’s end: x0 + L for an end that is the root’s open end (section 3.4),
x0 + (L − D) on an elided axis, D every gap’s shrink.
Parameters#
entry#
Returns#
number
y#
readonlyy:number
Defined in: layout/src/bands.ts:84
The ordinate yl of the line.
yAt#
readonlyyAt: (side,outwards) =>number
Defined in: layout/src/bands.ts:89
The ordinate of a distance outwards from the line, the distance summed whole before
(section 3.3): yl − outwards above, yl + outwards below.
Parameters#
side#
outwards#
number
Returns#
number
PreparedBand#
Defined in: layout/src/bands.ts:201
One band of a timeline once its first fits are done (section 6.4, the
first of the three passes), before any distance is known. Every kind of
band but the children band is prepared by its own module; the children
band’s width comes from its children’s layout, the conversion maps band’s
from the slots it shares with the bands of its row (JointSpans).
Extended by#
Properties#
centred#
readonlycentred: readonlyCentred[]
Defined in: layout/src/bands.ts:232
Its drawn centred labels (section 6.7): wedge, region and jump labels.
elements#
readonlyelements:number
Defined in: layout/src/bands.ts:212
The displayed elements it holds directly, those a segment without a line of its own adds to
it included (section 6.4, What a band holds and Segments without a line): wedges and the labels
of named timestamps, maps, child lines, regions, breaks, section breaks, barlines and the
jumps that draw an arc. Any other label is
held by its element and not counted; a segment without a line is no element. The band is present when this is positive (section 6.4,
Levels), and a band record’s band.elements is this number.
extents#
readonlyextents: readonlyExtent[]
Defined in: layout/src/bands.ts:230
What the band adds to its timeline’s extent (section 6.4, Children), each measured from the
root’s start as section 6.3 measures extents: the extent of every item its first fits place
(a region or a jump’s arc widened to its drawn label, a wedge, or the label of a break, a
section break or a barline), and [L × u, L × u] at every such line it draws. Empty for the children band, whose children’s
extents are added by their own layout, and for the conversion maps band: a map adds none.
facet#
readonlyfacet:Facet
Defined in: layout/src/bands.ts:203
The facet it draws; its address is {id: T, facet}, T its timeline (section 2.2).
width#
readonlywidth:number
Defined in: layout/src/bands.ts:222
Its width (section 6.4, Where a band lies), the distance its content reaches outwards from its
start, summed as its paragraph writes it: the markers band w / 2 + 13, or w / 2 + 13 + 2 + T × h(9) with label tiers (Markers); the regions band R × pr − S (Regions); the flow
control band T × h(9) + (4 + S) + (K − 1) × pj + 2 + h(9), or T × h(9) without jumps (Flow
control). 0 for an absent band, for the children band, whose width its children’s layout
gives, and for the conversion maps band, e = w / 2 + J × (g + d) by its slots (Conversion
maps).
Methods#
draw()#
draw(
start,side,at):Partial<LineElements>
Defined in: layout/src/bands.ts:238
Its elements (section 6.6), the band starting at start outwards on side of the line
placed at at: the third pass. The children band draws nothing, each child drawing its own,
nor does the conversion maps band, whose maps take the slots of its row (drawMaps).
Parameters#
start#
number
side#
at#
Returns#
Partial<LineElements>
SegmentElement#
Defined in: layout/src/bands.ts:106
One element of a segment, kept with its segment: boundaries and segment labels are ordered by the traversal order of their segments over every line of the member drawing (section 7.2), not line by line.
Type Parameters#
T#
T
Properties#
element#
readonlyelement:T
Defined in: layout/src/bands.ts:108
segment#
readonlysegment:Entry
Defined in: layout/src/bands.ts:107
Type Aliases#
JointSpans#
JointSpans =
Readonly<Partial<Record<Facet,BandSpan>>>
Defined in: layout/src/bands.ts:282
The bands of a timeline laid out together with those of other lines: their spans by facet, the children and conversion maps bands of every row, and in a row of one band order every band (section 6.4, Rows of one band order).
Side#
Side =
"above"|"below"
Defined in: layout/src/bands.ts:31
A side of a timeline’s line: up or down, whichever side of its parent’s line it lies on.
Functions#
bandSides()#
bandSides(
order):Readonly<Record<Facet,Side>>
Defined in: layout/src/bands.ts:289
The side each band of a timeline lies on (section 6.4, The band order):
above for the facets listed before line in its band order order,
below for those after it, whether present or not.
Parameters#
order#
readonly string[]
Returns#
Readonly<Record<Facet, Side>>
bandStart()#
bandStart(
facet,previous,reach,w,S):number
Defined in: layout/src/bands.ts:335
The start c of a band drawing the facet facet (section 6.4, Where a band
lies), previous the outer edge of the present band at the level before
it on its side, undefined at level 1 or −1, reach the line’s reach on
that side (Level 0), w the line’s stroke width and S the card spacing:
at level 1 or −1 the markers band and the conversion maps band start at 0,
every other band S beyond the larger of reach and w / 2; any further
band starts at previous plus S. A children band’s own start is the larger
of this and half its row’s pitch (ownStart).
Parameters#
facet#
Facet
previous#
number | undefined
reach#
number
w#
number
S#
number
Returns#
number
fillSide()#
fillSide(
side,present,reach,S,w,spans):LaidSide
Defined in: layout/src/bands.ts:365
Lay out the present bands of one side outwards from the line (section 6.4,
Where a band lies), present in level order, reach the line’s reach on
that side (Level 0), w the line’s stroke width and S the card spacing:
every band but the children band and the conversion maps band starts where
bandStartputs it;the children band and the conversion maps band, each laid out together with the bands of other lines of its row, start and are as wide as
spanssays (spansholds a span for each of them thatpresentholds), and so does every band of a row of one band order;every outer edge is the band’s start plus its width, the width summed first, and for the markers or conversion maps band at level 1 or −1 the larger of that and
reach, since it shares its room with the line’s; the side’s outer edge is its outermost band’s, orreachwhenpresentis empty.
Levels are 1, 2, … above and −1, −2, … below, in the order of present.
Parameters#
side#
present#
readonly PreparedBand[]
reach#
number
S#
number
w#
number
spans#
Returns#
levelsOf()#
levelsOf(
order,present):Readonly<Record<Side, readonlyFacet[]>>
Defined in: layout/src/bands.ts:308
The present bands of each side of a timeline, in level order (section
6.4, Levels): above, the facets listed before line in its band order
order, level 1 the one listed nearest before it, then outwards; below,
those listed after it, level −1 the one listed nearest after it, then
outwards. A band absent from present has no level.
Parameters#
order#
readonly string[]
present#
ReadonlySet<Facet>
Returns#
Readonly<Record<Side, readonly Facet[]>>
opposite()#
opposite(
side):Side
Defined in: layout/src/bands.ts:34
The other side of the line.