manifest/flow#
Interfaces#
ElementBelief#
Defined in: manifest/flow.ts:128
An actor’s belief to record: who, what, and the day (YYYY-MM-DD).
Properties#
actor#
readonlyactor:string
Defined in: manifest/flow.ts:129
belief#
readonlybelief:"true"|"unlikely"|"false"
Defined in: manifest/flow.ts:130
date#
readonlydate:string
Defined in: manifest/flow.ts:131
FlowReading#
Defined in: manifest/flow.ts:65
Whose beliefs decide which flow-control elements are read: the
believer’s state in each element (believer’s belief, the most
critical of several, undecided where the believer holds none) is read
when it is one of beliefs, as timetoalign’s flow engine reads the
elements for a believer and the states it keeps.
Properties#
beliefs#
readonlybeliefs: readonlyBeliefState[]
Defined in: manifest/flow.ts:68
The states read, each once, in the order of BELIEF_STATES.
believer#
readonlybeliever:string
Defined in: manifest/flow.ts:66
Type Aliases#
DestinationPlace#
DestinationPlace = {
at:Coordinate;kind:"by"; } | {at:Coordinate;element:FlowControlElement;kind:"jump_target"; } | {at:Coordinate;kind:"region";region:Region; } | {at:Coordinate;kind:"timeline";timeline:TimelineManifest; } | {at:Coordinate;child:ChildTimeline;kind:"child"; } | {at:Coordinate;holder:TimelineManifest|null;kind:"section";start:FlowControlElement|null; } | {kind:"nowhere";to:string; }
Defined in: manifest/flow.ts:246
What the place of a destination of a jump names, on the own axis of the
timeline listing the jump, with at the coordinate it reaches there:
by, that distance from the jump’s coordinate; to, the jump target
(rejected or not: a rejected target is still what the destination names),
the region (its start), the timeline itself (0) or the child timeline (its
offset) with that ID; neither, the start of the jump’s section
(sectionStart): the nearest section break before the jump that the
reading in force reads (isRead), among those of the root’s whole tree, never before the start of the
timeline listing the jump (start, held by holder), else that start, 0,
with start and holder null. nowhere for a to naming none of these,
which a valid manifest never holds.
ElementProvenance#
ElementProvenance =
NonNullable<FlowControlElement["provenance"]>
Defined in: manifest/flow.ts:39
The provenance of a flow-control element: its entries, each about the element itself.
ElementProvenanceEntry#
ElementProvenanceEntry =
ElementProvenance[number]
Defined in: manifest/flow.ts:42
One entry of a flow-control element’s provenance.
FlowLineRole#
FlowLineRole = typeof
FLOW_LINE_ROLES[number]
Defined in: manifest/flow.ts:36
A role drawn as a vertical line.
Variables#
FLOW_LINE_ROLES#
constFLOW_LINE_ROLES: readonly ["break","section_break","barline"]
Defined in: manifest/flow.ts:29
The roles drawn as a vertical line at the element’s coordinate, in no order of their own.
Functions#
beliefStateOf()#
beliefStateOf(
element,believer,context):BeliefState
Defined in: manifest/flow.ts:97
The state of believer in a flow-control element: their belief, the
most critical where they hold several (two entries, or two actors that
stand for their IRI under context, the manifest’s @context);
undecided where they hold none.
Parameters#
element#
Pick<FlowControlElement, "provenance">
believer#
string
context#
unknown
Returns#
BeliefState
destinationPlace()#
destinationPlace(
manifest,timeline,jump,destination,reading?,context?):DestinationPlace
Defined in: manifest/flow.ts:336
The place the destination destination of the jump jump, listed by
timeline of manifest, names (DestinationPlace), a destination
without a place landing at a section break that reading reads under
context, the manifest’s @context (isRead; without a reading, one
no actor believes false).
Parameters#
manifest#
timeline#
{ }
jump#
{ }
destination#
{ }
reading?#
FlowReading | null = null
context?#
unknown = undefined
Returns#
flowReading()#
flowReading(
believer,kept):FlowReading
Defined in: manifest/flow.ts:82
The reading of the flow-control elements for the user believer under
the belief filter kept (the states a block’s MatchClaim filter keeps):
where the user recorded a belief in an element, that belief decides, so
the element is read unless it is false; where they recorded none, the
filter decides as it does for a MatchClaim the user holds no belief in,
so the element is read when the filter keeps undecided.
Parameters#
believer#
string
kept#
readonly BeliefState[]
Returns#
flowSymbols()#
flowSymbols(
element): readonlystring[]
Defined in: manifest/flow.ts:195
The symbols a flow-control element draws on the flow row (section 6.6,
Symbols): a jump one per destination whose manifestation has one, in the
order of its targets; a section break the final barline 𝄂; any other
element the symbol of its manifestation, or none where it has no
manifestation or one without a symbol.
Parameters#
element#
{ }
Returns#
readonly string[]
isRead()#
isRead(
element,reading,context):boolean
Defined in: manifest/flow.ts:118
Whether a flow played under reading reads the element: without a
reading, unless it is rejected (isRejected); with one, when the
believer’s state in it (beliefStateOf) is one of the reading’s states.
Parameters#
element#
Pick<FlowControlElement, "provenance">
reading#
FlowReading | null
context#
unknown
Returns#
boolean
isRejected()#
isRejected(
element):boolean
Defined in: manifest/flow.ts:52
Whether a flow-control element is rejected, as TimeToShare reads it: an
entry of its provenance holds a belief false, whoever holds it. A
rejected element is left out of every flow and is drawn faded.
Parameters#
element#
Pick<FlowControlElement, "provenance">
Returns#
boolean
passesText()#
passesText(
passes):string
Defined in: manifest/flow.ts:224
The text of a branch of a volta fork (section 6.4, Forks): its passes as
printed, each number followed by a full stop and the numbers joined by a
comma and a space (1., 1., 3.); {from: n} as n.–.
Parameters#
passes#
NonNullable<readonly JsonNumber[] | { } | undefined>
Returns#
string
withElementBelief()#
withElementBelief(
provenance,context,__namedParameters): readonly [{ }, { }]
Defined in: manifest/flow.ts:143
The provenance of a flow-control element with actor’s belief recorded:
every belief an entry holds of the actor (actors compared as the IRIs they
stand for under context, the manifest’s @context) is replaced in
place, its note dropped with it; where no entry holds one, the belief is
appended to the first entry’s; an element without provenance gains one
entry holding the belief alone. Every other entry and every other actor’s
belief stays as it is.
Parameters#
provenance#
readonly [{ }, { }] | undefined
context#
unknown
__namedParameters#
Returns#
readonly [{ }, { }]