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#
readonlya:Real
Defined in: manifest/switched.ts:105
b#
readonlyb:Real
Defined in: manifest/switched.ts:106
closed#
readonlyclosed:boolean
Defined in: manifest/switched.ts:108
P#
readonlyP: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#
readonlyend:Real
Defined in: manifest/switched.ts:131
endCut#
readonlyendCut:boolean
Defined in: manifest/switched.ts:133
start#
readonlystart:Real
Defined in: manifest/switched.ts:130
startCut#
readonlystartCut: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#
readonlyflowMap:string
Defined in: manifest/switched.ts:62
The FlowMap’s ID.
name#
readonlyname:string
Defined in: manifest/switched.ts:66
The name of what flow names (section 5.3): its name, else its whole ID.
named#
readonlynamed: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#
readonlylength:Real
Defined in: manifest/switched.ts:119
pieces#
readonlypieces: readonlyPiece[]
Defined in: manifest/switched.ts:118
Methods#
carry()#
carry(
value):Real
Defined in: manifest/switched.ts:120
Parameters#
value#
Returns#
uncarry()#
uncarry(
value):Real
Defined in: manifest/switched.ts:121
Parameters#
value#
Returns#
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#
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#
value#
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#
start#
end#
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#
piece#
value#
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#
piece#
start#
end#
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#
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#
flowMap#
string