ancestors#

Interfaces#

AncestorBands#

Defined in: layout/src/ancestors.ts:270

The ancestor bands laid out: where each ancestor’s line lies, and each side’s outer edge.

Properties#

count#

readonly count: number

Defined in: layout/src/ancestors.ts:281

The number of ancestor bands: 0, 1 or 2.

distances#

readonly distances: readonly number[]

Defined in: layout/src/ancestors.ts:272

The distance of each drawn ancestor’s line from the root’s line, outwards on its side, from A1.

edges#

readonly edges: Readonly<Record<Side, number>>

Defined in: layout/src/ancestors.ts:277

The outer edge of each side: the outer edge of its ancestor band where it has one, else the outer edge Ea or Eb of the root’s side.

outermost#

readonly outermost: Readonly<Partial<Record<Side, number>>>

Defined in: layout/src/ancestors.ts:279

The distance of the outermost ancestor line on each side that has an ancestor band.


AncestorPiece#

Defined in: layout/src/ancestors.ts:383

One drawing of an ancestor line: its element and, on a carried card of a switched frame (section 8.10), the stretch of the ancestor’s own axis it draws, from the coordinate at its drawn start xStart to that at its drawn end xEnd (null where the end is not known), the abscissas without its chevrons; null on a card drawn as written, whose axes read the line whole.

Properties#

axis#

readonly axis: { drawnEnd: Real; end: Real | null; start: Real; xEnd: number; xStart: number; } | null

Defined in: layout/src/ancestors.ts:385

element#

readonly element: LineElement

Defined in: layout/src/ancestors.ts:384

Functions#

ancestorBands()#

ancestorBands(scope, ancestors, p0, edges, aligned): AncestorBands

Defined in: layout/src/ancestors.ts:298

The ancestor bands (section 8.3), one on each side holding an ancestor line, each the outermost band of its side. On a side whose outer edge is E (Ea above, Eb below), the band starts at c0 = max(p0 / 2, max(E, wm / 2) + S), S the card spacing and wm the stroke width of the member’s line, or 0 when that line is not displayed (section 6.5), and holds one row per drawn ancestor line of that side, the nearest first, each with the pitch q of its name’s font size, an inner half q / 2 and an outer half the larger of q / 2 and the reach of the wedges and labels of its named timestamps, on the side of its line away from the member. Row 1 lies at `c0

  • i1, row r + 1the distanceΔr = or + i(r + 1)beyond rowr; on the side of the root's ancestor line where its ancestor card is drawn, Δr = max(dr, or + i(r + 1)), drthe distance of the two rows' ancestors' lines in the root's drawing alone,alignedholding their ordinates there by timeline ID. The band isi1 + Δ1 + … + Δ(C − 1) + oCwide. A side without a drawn ancestor line has no band, and its edge staysE`.

Parameters#

scope#

Scope

ancestors#

readonly AncestorLine[]

p0#

number

edges#

Readonly<Record<Side, number>>

aligned#

ReadonlyMap<string, number> | undefined

Returns#

AncestorBands


ancestorCentred()#

ancestorCentred(scope, ancestors): Centred[]

Defined in: layout/src/ancestors.ts:258

The drawn centred labels of the ancestor lines (section 6.7), each with its carry.

Parameters#

scope#

Scope

ancestors#

readonly AncestorLine[]

Returns#

Centred[]


ancestorCrossSections()#

ancestorCrossSections(scope, ancestors, bands, x0, yRoot, span): VerticalLineElement[]

Defined in: layout/src/ancestors.ts:610

The cross-section lines of the ancestors’ own timestamps drawn in the member’s card, from A1 to Ak, each’s in canonical order: across the card’s span span less each one’s gap.

Parameters#

scope#

Scope

ancestors#

readonly AncestorLine[]

bands#

AncestorBands

x0#

number

yRoot#

number

span#

Span

Returns#

VerticalLineElement[]


ancestorLabelElements()#

ancestorLabelElements(scope, ancestors, bands, x0, yRoot): TextElement[]

Defined in: layout/src/ancestors.ts:550

The labels of each ancestor line’s stacks, in the same order, each stack in its tier beyond its wedge’s base on the side away from the member, carried by a turned wedge (section 6.6).

Parameters#

scope#

Scope

ancestors#

readonly AncestorLine[]

bands#

AncestorBands

x0#

number

yRoot#

number

Returns#

TextElement[]


ancestorLineElements()#

ancestorLineElements(scope, ancestors, bands, x0, yRoot): AncestorPiece[][]

Defined in: layout/src/ancestors.ts:403

The ancestor lines, from A1 to Ak, each running on in chevrons or ending at the member’s ends, x0 + L' with L' = L − DG the drawn length of its frame’s members (section 8.2); on the frame’s elided axis, an end short of the member’s lying in a gap ends at the gap’s left edge without its mark, and each is cut at every gap it crosses (section 6.6, Elisions). Each is one drawing; on a carried card of a switched frame (section 8.10) one in every stretch piece its stretch of the member’s axis, 0 to te or λ, reaches into, its start and end, chevrons included, kept only where they lie in that piece and placed at their played x.

Parameters#

scope#

Scope

ancestors#

readonly AncestorLine[]

bands#

AncestorBands

x0#

number

yRoot#

number

Returns#

AncestorPiece[][]


ancestorLineMarks()#

ancestorLineMarks(ancestors, lines): Map<LineElement, AxisWedge>

Defined in: layout/src/ancestors.ts:508

The mark an editor shows at a position on each drawn ancestor line, lines the drawings of ancestors in their order (ancestorLineElements): drawn as a named timestamp’s wedge on it is (ancestorWedgeElements), in the style of a wedge held by the line that no named timestamp holds, so that no rule naming an address changes it; by each of its drawings’ element.

Parameters#

ancestors#

readonly AncestorLine[]

lines#

readonly (readonly AncestorPiece[])[]

Returns#

Map<LineElement, AxisWedge>


ancestorLines()#

ancestorLines(scope): AncestorLine[]

Defined in: layout/src/ancestors.ts:116

The drawn ancestor lines, from the root A1 down to the parent Ak, at the member’s scale.

Parameters#

scope#

Scope

Returns#

AncestorLine[]


ancestorNames()#

ancestorNames(ancestors): NameItem[]

Defined in: layout/src/ancestors.ts:360

The ancestors’ names, from A1 to Ak, each its own row of the name column.

Parameters#

ancestors#

readonly AncestorLine[]

Returns#

NameItem[]


ancestorTimestamps()#

ancestorTimestamps(scope, ancestors, lines, x0, span): Map<LineElement, AxisTimestamp[]>

Defined in: layout/src/ancestors.ts:639

The named timestamps each drawing of an ancestor line holds (DrawnAxis.timestamps), by its element, lines the drawings of ancestors in their order (ancestorLineElements): a line drawn once holds every one of its own; a line drawn once in each piece of a switched frame (section 8.10) holds each at a played x in the first of its drawings reaching it. None at a position in a gap, which has no abscissa.

Parameters#

scope#

Scope

ancestors#

readonly AncestorLine[]

lines#

readonly (readonly AncestorPiece[])[]

x0#

number

span#

Span

Returns#

Map<LineElement, AxisTimestamp[]>


ancestorWedgeElements()#

ancestorWedgeElements(scope, ancestors, bands, x0, yRoot): MarkerElement[]

Defined in: layout/src/ancestors.ts:527

The wedges of each ancestor line, from A1 to Ak, each’s in the order of its first fit (its timestamps’ coordinates), on its side away from the member, turned by each one’s rotation (markOn); none at a position in a gap (section 6.6, Elisions).

Parameters#

scope#

Scope

ancestors#

readonly AncestorLine[]

bands#

AncestorBands

x0#

number

yRoot#

number

Returns#

MarkerElement[]


ancestorY()#

ancestorY(bands, index, side, yRoot): number

Defined in: layout/src/ancestors.ts:364

The ordinate of drawn ancestor index (from A1) lying on side, yRoot the root’s line.

Parameters#

bands#

AncestorBands

index#

number

side#

Side

yRoot#

number

Returns#

number


chevrons()#

chevrons(ancestors): number[]

Defined in: layout/src/ancestors.ts:373

The stroke widths of the drawn ancestor lines that run on to the left.

Parameters#

ancestors#

readonly AncestorLine[]

Returns#

number[]