regions#

Interfaces#

StagedRegions#

Defined in: layout/src/regions.ts:25

A regions band before its tiered first fit (section 6.4, Regions): its regions with their drawn labels’ extents in the order its first fit takes them, the largest font size of its drawn labels, and the band once they are placed by fit, its labels’ tiers size high: its own first fit alone, or one first fit over the regions bands of a row of one band order.

Properties#

items#

readonly items: readonly TieredItem[]

Defined in: layout/src/regions.ts:26

size#

readonly size: number

Defined in: layout/src/regions.ts:27

Methods#

band()#

band(fit, size): PreparedBand

Defined in: layout/src/regions.ts:28

Parameters#
fit#

Tiered

size#

number

Returns#

PreparedBand

Functions#

regionsAlone()#

regionsAlone(staged): PreparedBand

Defined in: layout/src/regions.ts:32

A staged regions band placed by its own tiered first fit alone.

Parameters#

staged#

StagedRegions

Returns#

PreparedBand


regionsBand()#

regionsBand(scope, sources): StagedRegions

Defined in: layout/src/regions.ts:55

The regions band of the timeline drawn with the line line (section 6.4, Regions and Segments without a line): the displayed regions of each timeline of sources, the line first and then each joined segment, each one’s in canonical order, placed in that order by one tiered first fit (tieredFit): each region into a row by its extent alone, from the smaller to the larger of its start and end, so that no label moves it, and its drawn label by its label extent into the label tiers of that row. Row k with Tk tiers has the pitch prk = 6 + 2 + Tk × h(9) + S, S the card spacing, 9 the largest font size of the band’s drawn labels; the band is pr1 + … + prR − S wide. Drawn from its start r0, row k has its brace’s arms r0 + pr1 + … + pr(k − 1) out, the tip 6 further, and a label in tier j its ordinate 2 + (j − 1) × h(9) beyond the tip, each distance summed whole first (section 6.6, Regions); a label beyond tier 1 is joined to the tip by a leader from the tip to where its tier begins. A region whose start, end or midpoint lies in a gap is not drawn, nor is its label; another is drawn at their elided x, its brace cut at every gap it spans (section 6.6, Elisions). Its extents, which its timeline’s extent holds, are its regions’ and their drawn labels’.

Parameters#

scope#

Scope

sources#

readonly Entry[]

Returns#

StagedRegions