virtual#

Interfaces#

ChunkSpan#

Defined in: layout/src/virtual.ts:336

A chunk of a line’s FlowMap as its line draws it: the chunk and its drawn span.

Properties#

chunk#

readonly chunk: DrawnChunk

Defined in: layout/src/virtual.ts:337

end#

readonly end: Real

Defined in: layout/src/virtual.ts:339

start#

readonly start: Real

Defined in: layout/src/virtual.ts:338


DrawnRoots#

Defined in: layout/src/virtual.ts:54

What the block draws as roots (section 8.1): core’s member drawings with the virtual members of each group in their frames, in display order, and the placed virtual timelines, those no group names whose ID places holds, in canonical order.

Properties#

frames#

readonly frames: readonly GroupFrame[]

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

placed#

readonly placed: readonly MemberDrawing[]

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

ungrouped#

readonly ungrouped: readonly MemberDrawing[]

Defined in: layout/src/virtual.ts:56

Functions#

chunkSpans()#

chunkSpans(scope): ChunkSpan[]

Defined in: layout/src/virtual.ts:348

The drawn chunks of the FlowMap the root’s line of scope draws (section 8.10), each over its span; on a card carried through a switched frame, a virtual member’s, each once in every piece it reaches into, over its played stretch there, piece after piece. None where the line draws none.

Parameters#

scope#

Scope

Returns#

ChunkSpan[]


chunkStarts()#

chunkStarts(scope): object[]

Defined in: layout/src/virtual.ts:366

The positions of the boundaries at the drawn starts of the chunks of scope’s FlowMap (section 8.10), each with its chunk; on a carried card at each played position of the start, piece after piece.

Parameters#

scope#

Scope

Returns#

object[]


drawnRoots()#

drawnRoots(manifest, places): DrawnRoots

Defined in: layout/src/virtual.ts:155

What the block of manifest draws as roots (section 8.1), places its placement’s places: every group’s frame with its members, virtual ones included, in display order; the ungrouped roots; and the placed virtual timelines, in canonical order.

Parameters#

manifest#

Manifest

places#

Places

Returns#

DrawnRoots


flowOf()#

flowOf(manifest, flowMapId, timeline, once): DrawnFlow | null

Defined in: layout/src/virtual.ts:209

The chunks of the FlowMap flowMapId of manifest as a line whose chunk addresses carry timeline draws them (section 8.10), its runs drawn once where once; null where the FlowMap does not resolve. Every entry lies at its span: a gap’s label is the pretty text of its length on its root’s axis, every other entry’s the name of its source (a region’s name, else its whole ID; a timeline’s or virtual timeline’s name), a run drawn once labelled by its first entry’s text, a space, × (U+00D7), a space and its count, a run being one of ResolvedFlowMap.runs of two or more entries.

Parameters#

manifest#

Manifest

flowMapId#

string

timeline#

string

once#

boolean

Returns#

DrawnFlow | null


isVirtualMember()#

isVirtualMember(manifest, member): boolean

Defined in: layout/src/virtual.ts:145

Whether member draws a virtual timeline of manifest.

Parameters#

manifest#

Manifest

member#

MemberDrawing

Returns#

boolean


virtualFlow()#

virtualFlow(manifest, member, once): DrawnFlow | null

Defined in: layout/src/virtual.ts:186

The chunks the line of the virtual timeline drawn by member draws (section 8.10), its runs drawn once where once (a card that is an item of the block): null where member draws no virtual timeline or it does not resolve, its map no FlowMap that resolves, its timeline not that FlowMap’s or a through stated.

Parameters#

manifest#

Manifest

member#

MemberDrawing

once#

boolean

Returns#

DrawnFlow | null


virtualTimelineOf()#

virtualTimelineOf(manifest, id): { } | undefined

Defined in: layout/src/virtual.ts:64

The virtual timeline id of manifest, or undefined.

Parameters#

manifest#

Manifest

id#

string

Returns#

{ } | undefined


withRuns()#

withRuns(scope): Scope

Defined in: layout/src/virtual.ts:282

scope on the axis of its runs drawn once (section 8.10, Runs), where its flow has run gaps: each a gap of section 3.2 over [a, b] whose drawn width is 0, its natural width L × ub − L × ua all its shrink. A position t before the first run gap lies at L × u; one at or after the end b of a run gap, and before the next one’s start, at x(a) + (L × u − L × ub), x(a) that gap’s start’s, the two products formed first, so that t = b lies exactly at x(a); a position inside one is not drawn. A run gap has no address, draws nothing and cuts no row; every first fit of the card measures the drawn x, D at a position being L × u less it. scope itself where it has none.

Parameters#

scope#

Scope

Returns#

Scope