children#

Interfaces#

ChildrenFit#

Defined in: layout/src/children.ts:13

The first fit of one children band (sections 6.3 and 6.4, Children).

Properties#

count#

readonly count: number

Defined in: layout/src/children.ts:17

The number C of rows its children fill; 0 for an absent band.

row#

readonly row: ReadonlyMap<Entry, number>

Defined in: layout/src/children.ts:15

The row of each child line the band places, from 1.


Fitted#

Defined in: layout/src/children.ts:37

One timeline drawn with a line of its own after the first pass (section 6.4).

Properties#

extent#

readonly extent: Extent

Defined in: layout/src/children.ts:45

The extent by which its parent’s first fit places it (section 6.4, Children), from the root’s start: Unplaced.lineOnly where aligned bands place it, else Unplaced.whole, the root’s whole. Its band records span it.

fit#

readonly fit: ChildrenFit

Defined in: layout/src/children.ts:47

Its children band’s first fit.

prepared#

readonly prepared: PreparedTimeline

Defined in: layout/src/children.ts:39

Its bands with their first fits placed: alone, or together in a row of one band order.


Unplaced#

Defined in: layout/src/children.ts:21

One timeline drawn with a line of its own, prepared alone, with its two extents (section 6.4, Children).

Properties#

lineOnly#

readonly lineOnly: Extent

Defined in: layout/src/children.ts:33

Its extent where aligned bands place it: the smallest interval holding its line’s extent and this extent of every child its children band places, at any depth.

prepared#

readonly prepared: PreparedTimeline

Defined in: layout/src/children.ts:23

Its bands with their first fits placed alone (prepareTimeline).

whole#

readonly whole: Extent

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

Its extent where bands that are not aligned place it: the smallest interval holding its own extent and the whole extent of every child its children band places, at any depth.

Functions#

fitChildren()#

fitChildren(lines, extentOf): ChildrenFit

Defined in: layout/src/children.ts:57

The first fit of a children band (section 6.4, Children): the child lines lines, in the order PreparedTimeline.children gives them, each placed as a whole by its extent extentOf into the lowest row holding no child whose extent conflicts with it (section 6.3). Each band fills its own rows, from 1, whatever the rows of its timeline’s parent.

Parameters#

lines#

readonly Entry[]

extentOf#

(line) => Extent

Returns#

ChildrenFit


prepareTimelines()#

prepareTimelines(scope): ReadonlyMap<Entry, Unplaced>

Defined in: layout/src/children.ts:73

Every timeline of a member drawing drawn with a line of its own, from the root down through PreparedTimeline.children, prepared alone (prepareTimeline), and, from the deepest up, its two extents (wholeExtent). Keyed by each line’s entry, the root’s included; uses no distance.

Parameters#

scope#

Scope

Returns#

ReadonlyMap<Entry, Unplaced>