manifest/order#
Type Aliases#
BandOrderEntry#
BandOrderEntry = typeof
LINE|Facet
Defined in: manifest/order.ts:35
An entry of a band order: a timeline’s own line or one of its facets.
Variables#
DEFAULT_BAND_ORDER#
constDEFAULT_BAND_ORDER: readonlyBandOrderEntry[]
Defined in: manifest/order.ts:42
The default band order (drawing.md section 4), which a root without an
entry in graphical.order follows: its children and conversion maps
above its line, its markers, regions and flow control below.
LINE#
constLINE:"line"="line"
Defined in: manifest/order.ts:32
A band order’s entry for a timeline’s own line, beside its five facets.
Functions#
bandOrderOf()#
bandOrderOf(
manifest,timelineId): readonlystring[]
Defined in: manifest/order.ts:107
The band order the timeline timelineId is drawn with, line and all
five facets: its own entry in graphical.order completed against the
order it inherits (inheritedBandOrder), else that order. A virtual
timeline, which lies in no tree, completes its own entry against the
default band order, as a root does (drawing.md section 8.10). Any other
ID gets the default band order.
Parameters#
manifest#
timelineId#
string
Returns#
readonly string[]
bandOrderProblem()#
bandOrderProblem(
manifest,timelineId,value):string|null
Defined in: manifest/order.ts:136
The first problem of value as the band order of the timeline
timelineId, its entry in graphical.order, in the terms and the order
of TimeToShare’s README and validators, IDs and entries in single quotes;
null for a band order. The schema’s problems about the value’s shape
and its repeats come first, then the identity rules’:
a value that is not an array of strings:
the band order of '<id>' is not an array of strings;an entry repeating an earlier one:
'<entry>' is repeated in the band order of '<id>';an ID no timeline and no virtual timeline carries (a group’s ID is a display order’s key, never asked here):
'<id>' names no group, timeline or virtual timeline of this manifest;the first entry that is neither
linenor a facet:'<entry>' is not 'line' or a facet, in the band order of '<id>';a value without
line:'line' is missing from the band order of '<id>'. A facet the value leaves out is no problem: it takes its place from the order the timeline follows without an entry (bandOrderOf).
Parameters#
manifest#
timelineId#
string
value#
unknown
Returns#
string | null
displayOrder()#
displayOrder(
manifest,group): readonlystring[]
Defined in: manifest/order.ts:25
The display order of the group group: its entry in graphical.order,
else its members; empty for an id no group carries.
Parameters#
manifest#
group#
string
Returns#
readonly string[]
inheritedBandOrder()#
inheritedBandOrder(
manifest,timelineId): readonlystring[]
Defined in: manifest/order.ts:81
The band order the timeline timelineId follows without an entry of its
own in graphical.order: a root the default band order, every other
timeline its parent’s band order (bandOrderOf), completed. A member that
is a child timeline follows its parent so too. An ID no timeline carries
gets the default band order, as a root would.
Parameters#
manifest#
timelineId#
string
Returns#
readonly string[]