manifest/virtual#

Interfaces#

FlowVirtualTimeline#

Defined in: manifest/virtual.ts:52

A virtual timeline applying a FlowMap.

Extends#

  • VirtualAxis

Properties#

flow#

readonly flow: ResolvedFlowMap

Defined in: manifest/virtual.ts:54

id#

readonly id: string

Defined in: manifest/virtual.ts:36

The virtual timeline’s ID.

Inherited from#

VirtualAxis.id

kind#

readonly kind: "flow_map"

Defined in: manifest/virtual.ts:53

length#

readonly length: Coordinate

Defined in: manifest/virtual.ts:48

Its length: the FlowMap’s virtual length, or the conversion map’s value at its source’s length.

Inherited from#

VirtualAxis.length

map#

readonly map: string

Defined in: manifest/virtual.ts:38

The ID of the map applied.

Inherited from#

VirtualAxis.map

numberType#

readonly numberType: NumberType

Defined in: manifest/virtual.ts:46

Inherited from#

VirtualAxis.numberType

source#

readonly source: string

Defined in: manifest/virtual.ts:44

The timeline on whose axis written positions lie: the FlowMap’s root, or the timeline holding the conversion map.

Inherited from#

VirtualAxis.source

through#

readonly through: string | null

Defined in: manifest/virtual.ts:42

The group or conversion map that carries the map there, as stated; never evaluated.

Inherited from#

VirtualAxis.through

timeline#

readonly timeline: string

Defined in: manifest/virtual.ts:40

The ID of the timeline it is applied to, as stated.

Inherited from#

VirtualAxis.timeline

unit#

readonly unit: TimeUnit

Defined in: manifest/virtual.ts:45

Inherited from#

VirtualAxis.unit


MappedVirtualTimeline#

Defined in: manifest/virtual.ts:58

A virtual timeline applying a conversion map that core evaluates.

Extends#

  • VirtualAxis

Properties#

evaluator#

readonly evaluator: MapEvaluator

Defined in: manifest/virtual.ts:60

id#

readonly id: string

Defined in: manifest/virtual.ts:36

The virtual timeline’s ID.

Inherited from#

VirtualAxis.id

kind#

readonly kind: "conversion_map"

Defined in: manifest/virtual.ts:59

length#

readonly length: Coordinate

Defined in: manifest/virtual.ts:48

Its length: the FlowMap’s virtual length, or the conversion map’s value at its source’s length.

Inherited from#

VirtualAxis.length

map#

readonly map: string

Defined in: manifest/virtual.ts:38

The ID of the map applied.

Inherited from#

VirtualAxis.map

numberType#

readonly numberType: NumberType

Defined in: manifest/virtual.ts:46

Inherited from#

VirtualAxis.numberType

source#

readonly source: string

Defined in: manifest/virtual.ts:44

The timeline on whose axis written positions lie: the FlowMap’s root, or the timeline holding the conversion map.

Inherited from#

VirtualAxis.source

span#

readonly span: Stretch

Defined in: manifest/virtual.ts:62

The source’s axis, from 0 to its length, over which the map is inverted.

through#

readonly through: string | null

Defined in: manifest/virtual.ts:42

The group or conversion map that carries the map there, as stated; never evaluated.

Inherited from#

VirtualAxis.through

timeline#

readonly timeline: string

Defined in: manifest/virtual.ts:40

The ID of the timeline it is applied to, as stated.

Inherited from#

VirtualAxis.timeline

unit#

readonly unit: TimeUnit

Defined in: manifest/virtual.ts:45

Inherited from#

VirtualAxis.unit

Type Aliases#

ResolvedVirtualTimeline#

ResolvedVirtualTimeline = FlowVirtualTimeline | MappedVirtualTimeline

Defined in: manifest/virtual.ts:66

A virtual timeline resolved: through a FlowMap or a conversion map.

Functions#

foldVirtual()#

foldVirtual(resolved, played): Coordinate | null

Defined in: manifest/virtual.ts:230

The written position of its source played at played on a virtual timeline: through a FlowMap as fold (null inside a gap); through a conversion map the position where the map gives played, read over the source’s axis, null where the map is not invertible there or never gives it.

Parameters#

resolved#

ResolvedVirtualTimeline

played#

Coordinate

Returns#

Coordinate | null

Throws#

as fold through a FlowMap; unit_mismatch.


resolveVirtualTimeline()#

resolveVirtualTimeline(manifest, virtualId): ResolvedVirtualTimeline

Defined in: manifest/virtual.ts:110

The virtual timeline virtualId of manifest resolved: its unit and number type as stated, its length, and the map it rests on. A FlowMap is resolved against its root (resolveFlowMap); its length is the virtual length written in the stated number type, also where through a group carries the FlowMap to another member (its axis is the FlowMap’s root’s, as timetoalign reads it); where through names anything else (a conversion map, not evaluated), the stated length, the FlowMap’s positions staying on its root’s axis. A conversion map of a timeline’s conversion_maps is evaluated by core into the virtual timeline’s unit, its length the map’s value at the end of the timeline holding it.

Parameters#

manifest#

Manifest

virtualId#

string

Returns#

ResolvedVirtualTimeline

Throws#

unknown_virtual_timeline; as resolveFlowMap and virtual_unresolved for a FlowMap; unit_mismatch where a FlowMap applied without through or through a group lies on another unit; map_not_evaluated, naming the map, where core does not evaluate the conversion map onto the virtual timeline’s unit (a measure view, a label, named outputs, another target unit); unknown_length where its timeline’s length is unknown.


throughGroup()#

throughGroup(manifest, through): boolean

Defined in: manifest/virtual.ts:73

Whether through names a group of manifest: a FlowMap carried through it plays on its own root’s axis, as timetoalign reads it; through anything else (a conversion map) it is not evaluated.

Parameters#

manifest#

Manifest

through#

string

Returns#

boolean


unfoldVirtual()#

unfoldVirtual(resolved, written): Occurrence[]

Defined in: manifest/virtual.ts:201

Every position of a virtual timeline played at the written position written of its source (source): through a FlowMap as unfold; through a conversion map the map’s one value there, or none where it gives no number.

Parameters#

resolved#

ResolvedVirtualTimeline

written#

Coordinate

Returns#

Occurrence[]

Throws#

unit_mismatch where written is on another unit.