manifest/switched#

Interfaces#

Piece#

Defined in: manifest/switched.ts:104

One stretch piece of a FlowMap’s resolution (section 8.10, Resolution): the stretch [a, b] of its root T’s axis it plays, from P on the virtual axis, and whether t = b lies in it, as it does where it is the last piece or a gap or a stretch not starting at b follows it.

Properties#

a#

readonly a: Real

Defined in: manifest/switched.ts:105

b#

readonly b: Real

Defined in: manifest/switched.ts:106

closed#

readonly closed: boolean

Defined in: manifest/switched.ts:108

P#

readonly P: Real

Defined in: manifest/switched.ts:107


PlayedSpan#

Defined in: manifest/switched.ts:129

A span [s, e] of a card’s root’s axis drawn in one piece: its played ends, and whether each was cut at the piece’s end (the drawing then keeps no mark there).

Properties#

end#

readonly end: Real

Defined in: manifest/switched.ts:131

endCut#

readonly endCut: boolean

Defined in: manifest/switched.ts:133

start#

readonly start: Real

Defined in: manifest/switched.ts:130

startCut#

readonly startCut: boolean

Defined in: manifest/switched.ts:132


Switch#

Defined in: manifest/switched.ts:60

What a switched card is switched to: the FlowMap it unfolds and what flow names.

Properties#

flowMap#

readonly flowMap: string

Defined in: manifest/switched.ts:62

The FlowMap’s ID.

name#

readonly name: string

Defined in: manifest/switched.ts:66

The name of what flow names (section 5.3): its name, else its whole ID.

named#

readonly named: string

Defined in: manifest/switched.ts:64

The ID flow names: the FlowMap’s, or a virtual timeline’s applying it.


Unfolding#

Defined in: manifest/switched.ts:117

How a card is unfolded onto a FlowMap’s virtual axis: the FlowMap’s stretch pieces in their order, its played length Λ, and how a position on the card’s root’s axis is carried to T’s axis and back (the identity on T’s own card).

Properties#

length#

readonly length: Real

Defined in: manifest/switched.ts:119

pieces#

readonly pieces: readonly Piece[]

Defined in: manifest/switched.ts:118

Methods#

carry()#

carry(value): Real

Defined in: manifest/switched.ts:120

Parameters#
value#

Real

Returns#

Real

uncarry()#

uncarry(value): Real

Defined in: manifest/switched.ts:121

Parameters#
value#

Real

Returns#

Real

Functions#

cardFlow()#

cardFlow(manifest, timeline): string | null

Defined in: manifest/switched.ts:43

The flow the cards of the timeline timeline cascade to (section 2.4): the value of the last rule of the manifest’s own graphical layer, the one layer flow is read from, that selects {id: timeline, part: ["card"]} by addresses alone and sets flow (directly or through a named style of the layer); null, “As written”, where none does.

Parameters#

manifest#

Manifest

timeline#

string

Returns#

string | null


piecesHolding()#

piecesHolding(unfolding, value): number

Defined in: manifest/switched.ts:227

How many pieces of unfolding draw the position value (playedAt).

Parameters#

unfolding#

Unfolding

value#

Real

Returns#

number


piecesReached()#

piecesReached(unfolding, start, end): number

Defined in: manifest/switched.ts:232

How many pieces of unfolding the extent [start, end] reaches into (playedSpan).

Parameters#

unfolding#

Unfolding

start#

Real

end#

Real

Returns#

number


playedAt()#

playedAt(unfolding, piece, value): Real | undefined

Defined in: manifest/switched.ts:191

The played position of the position value of the card’s root’s axis in piece (section 8.10): t, its carry to T’s axis, lies in the piece where a ≤ t < b, or t = b in a closed piece, and is played at P + (t − a); undefined where it lies elsewhere.

Parameters#

unfolding#

Unfolding

piece#

Piece

value#

Real

Returns#

Real | undefined


playedSpan()#

playedSpan(unfolding, piece, start, end): PlayedSpan | undefined

Defined in: manifest/switched.ts:205

The span [s, e] of the card’s root’s axis drawn in piece (section 8.10): where max(s, a) < min(e, b) on T’s axis, over the played positions of those two ends, each cut where it is the piece’s and not the span’s own; undefined where the span does not reach into the piece.

Parameters#

unfolding#

Unfolding

piece#

Piece

start#

Real

end#

Real

Returns#

PlayedSpan | undefined


switchOf()#

switchOf(manifest, timeline): Switch | null

Defined in: manifest/switched.ts:75

What the card of the timeline timeline is switched to (section 8.10): its cascaded flow (cardFlow) naming a FlowMap of timeline that resolves, or a virtual timeline applying one to timeline without through; null, drawn as written, otherwise.

Parameters#

manifest#

Manifest

timeline#

string

Returns#

Switch | null


unfoldingOf()#

unfoldingOf(manifest, flowMap, carriedFrom?): Unfolding

Defined in: manifest/switched.ts:157

The unfolding of the card of T onto its FlowMap flowMap, which resolves, or, where carriedFrom gives T’s and a member M’s lengths (or reaches), of M’s card in T’s switched frame, carried through the group (section 8.10): t = (m × λT) / λM.

Parameters#

manifest#

Manifest

flowMap#

string

carriedFrom?#
lambdaM#

Real

lambdaT#

Real

Returns#

Unfolding