manifest/elements#

Interfaces#

CardStamp#

Defined in: manifest/elements.ts:1055

A named timestamp a card draws, at its position on the axis of CardTimeline.start.

Extended by#

Properties#

position#

readonly position: Real

Defined in: manifest/elements.ts:1061

Its position: for a stamp of the frame, the position on the member that lies at the same proportion of its drawn length as the stamp’s position on its own member (section 6.6).

source#

readonly source: StampSource

Defined in: manifest/elements.ts:1062

timestamp#

readonly timestamp: object

Defined in: manifest/elements.ts:1056


CardStamps#

Defined in: manifest/elements.ts:1080

What the card of one member drawing draws of named timestamps.

Properties#

secondaries#

readonly secondaries: ReadonlyMap<string, readonly SecondaryStamp[]>

Defined in: manifest/elements.ts:1098

The secondary coordinates of the card by the ID of the timeline they lie on (section 2): every stamp of stamps whose position the span of a timeline of timelines holds, its ends included, but on the stamp’s own timeline, in the canonical order of graphical.timestamps, each with its coordinate on that timeline. A timeline without one has no entry.

stamps#

readonly stamps: readonly CardStamp[]

Defined in: manifest/elements.ts:1089

The member’s own timestamps, its tree’s in pre-order, each timeline’s in canonical order; then its ancestors’ from the root down whose position lies within the member’s span, its ends included (section 8.3); then, for a card in a frame, the groupstamps of the frame’s other members in their display order, each member’s in the order of its own.

timelines#

readonly timelines: readonly CardTimeline[]

Defined in: manifest/elements.ts:1082

Its ancestors’ lines from the root down to the parent, then its tree in pre-order.

window#

readonly window: readonly [Real, Real]

Defined in: manifest/elements.ts:1091

The member’s span on the same axis: its start and its end, at its reach where its length is not known.


CardTimeline#

Defined in: manifest/elements.ts:1038

A timeline a member drawing draws in its card: a line of the member’s tree (the root, a child, a segment, with or without a line of its own) or an ancestor line (section 8.3), with its span on the axis of the member’s outermost ancestor (the member’s root itself when it is a root), end null for an ancestor whose length is not known.

Properties#

ancestor#

readonly ancestor: boolean

Defined in: manifest/elements.ts:1043

It is drawn as an ancestor line of the member.

end#

readonly end: Real | null

Defined in: manifest/elements.ts:1041

start#

readonly start: Real

Defined in: manifest/elements.ts:1040

timeline#

readonly timeline: object

Defined in: manifest/elements.ts:1039


ElementKey#

Defined in: manifest/elements.ts:58

What a selector can test on an element.

Properties#

address#

readonly address: ElementAddress

Defined in: manifest/elements.ts:62

Its address: {} for the block.

class#

readonly class: string | null

Defined in: manifest/elements.ts:69

Its timeline’s class or a map’s type; null for a band and for what belongs to no timeline.

coordinates?#

readonly optional coordinates?: StampCoordinate

Defined in: manifest/elements.ts:87

For a wedge or a label of a named timestamp’s stack, whether it marks the timestamp’s primary coordinate or a secondary one (section 2), which the selector member coordinates tests; absent on every other element, a cross-section line included.

domain#

readonly domain: Domain | null

Defined in: manifest/elements.ts:66

null for what belongs to no timeline, a band, and a map whose target_unit is null.

facet#

readonly facet: Facet | null

Defined in: manifest/elements.ts:71

The facet a band draws; null for every other element.

inside#

readonly inside: readonly ElementType[]

Defined in: manifest/elements.ts:81

Its holder chain: the types of the elements holding it in the tree (sections 2.1 and 8.1), outermost first, which the selector member inside tests. A key’s chain is its holder’s chain followed by the holder’s type, so build keys with elementKey, textKey, bandKey and unownedKey from the holder’s key; a segment that is not a segment line (type null) adds nothing. Two drawings of one address differ here only.

modality#

readonly modality: Modality | null

Defined in: manifest/elements.ts:67

timeline#

readonly timeline: string | null

Defined in: manifest/elements.ts:64

The timeline it belongs to; null for the block, a group’s frame and a title.

type#

readonly type: ElementType | null

Defined in: manifest/elements.ts:60

null for a segment, a node of the tree that no selector naming element matches.

types?#

readonly optional types?: readonly string[]

Defined in: manifest/elements.ts:92

For a region stating a type, the classes it names (regionClasses), each in every spelling the selector member class matches (section 2.3); absent on every other element.


PlacedFlow#

Defined in: manifest/elements.ts:1379

A flow-control element of a tree with the timeline stating it and its position on an axis.

Properties#

at#

readonly at: Real

Defined in: manifest/elements.ts:1385

Where the element lies on the axis: the timeline’s start plus its coordinate.

element#

readonly element: object

Defined in: manifest/elements.ts:1380

start#

readonly start: Real

Defined in: manifest/elements.ts:1383

Where the timeline starts on the axis.

timeline#

readonly timeline: object

Defined in: manifest/elements.ts:1381


SecondaryStamp#

Defined in: manifest/elements.ts:1066

A named timestamp at a secondary coordinate on a timeline of a card (section 2).

Extends#

Properties#

position#

readonly position: Real

Defined in: manifest/elements.ts:1061

Its position: for a stamp of the frame, the position on the member that lies at the same proportion of its drawn length as the stamp’s position on its own member (section 6.6).

Inherited from#

CardStamp.position

source#

readonly source: StampSource

Defined in: manifest/elements.ts:1062

Inherited from#

CardStamp.source

timestamp#

readonly timestamp: object

Defined in: manifest/elements.ts:1056

Inherited from#

CardStamp.timestamp

value#

readonly value: Real | null

Defined in: manifest/elements.ts:1076

Its coordinate on that timeline: its exact position, every operand at its exact value (a float’s exact binary value), less the timeline’s exact start, written in the timeline’s number type as timetoalign’s express_as writes it (an int rounded half to even, held as an integral exact value). null for a stamp of the frame where the length of the card’s member or of the member it lies on is not known (section 6.6): a group maps a position by the proportion of its members’ lengths and never carries one member’s length to another, so the coordinate is not defined there; the stamp keeps its position, where its line is drawn.

Type Aliases#

Domain#

Domain = "graphical" | "logical" | "physical"

Defined in: manifest/elements.ts:53

The domain of a timeline: graphical, logical or physical time.


Modality#

Modality = "continuous" | "discrete"

Defined in: manifest/elements.ts:55

The modality of a timeline’s axis: continuous or discrete.


StampCoordinate#

StampCoordinate = "primary" | "secondary"

Defined in: manifest/elements.ts:96

Which of a named timestamp’s coordinates a wedge or a label marks (sections 2 and 2.3).


StampSource#

StampSource = "member" | "ancestor" | "frame"

Defined in: manifest/elements.ts:1052

Where a card draws a named timestamp from: on a timeline of the member’s tree, on an ancestor line of the member (section 8.3), or, a groupstamp of another member of the frame holding the card, by its line across the card (section 6.6).


TimelineClass#

TimelineClass = `${Capitalize<Modality>}${Capitalize<Domain>}Timeline`

Defined in: manifest/elements.ts:175

The name of a timeline class, which a selector’s class matches.


TimestampLabel#

TimestampLabel = typeof TIMESTAMP_LABELS[number]

Defined in: manifest/elements.ts:338

A word naming one of a named timestamp’s labels.

Variables#

BLOCK_KEY#

const BLOCK_KEY: ElementKey

Defined in: manifest/elements.ts:102

The block’s key: it draws the bundle, whose address is {}, belongs to no timeline and has no holder.


TIMESTAMP_LABELS#

const TIMESTAMP_LABELS: readonly ["name", "id", "coordinate"]

Defined in: manifest/elements.ts:335

The words of a named timestamp’s display that name its labels, in the order its stack holds them outwards from its wedge (sections 2 and 6.4, Markers): its name, its ID, its coordinate. Each is a label element addressed {id: X, part: [word]}.

Functions#

bandKey()#

bandKey(timeline, facet, holder): ElementKey

Defined in: manifest/elements.ts:316

The key of the band drawing the facet facet of the timeline timeline, held by holder, that timeline’s line or node: it belongs to the timeline, has no domain, no modality and no class, and has its facet.

Parameters#

timeline#

string

facet#

Facet

holder#

ElementKey

Returns#

ElementKey


cardStamps()#

cardStamps(manifest, member, frame?): CardStamps

Defined in: manifest/elements.ts:1219

The timelines and named timestamps of the card drawing member, in the frame frame when the card is a member card there (null for an ungrouped root’s card and an ancestor card, section 8.8, which no groupstamp line crosses). Every position is taken on the axis of the member’s outermost ancestor, the member’s start being the sum of the offsets from there down, so that no value is negated. A timeline of the member’s tree whose length is not known ends where it is drawn to (section 3.4): at its reach, or, a segment, at the next segment’s start or its segment line’s end; an ancestor whose length is not known has no end. A groupstamp of another member O of the frame, one of O’s own timestamps, lies on this card at the proportion of the member’s drawn length at which it lies on O’s (section 6.6); where the member’s length or O’s is not known, its secondary coordinates there have no value. Memoised by manifest, member and frame.

Parameters#

manifest#

Manifest

member#

MemberDrawing

frame?#

GroupFrame | null = null

Returns#

CardStamps


elementKey()#

elementKey(type, address, timeline, holder, map?): ElementKey

Defined in: manifest/elements.ts:187

The key of an element of timeline held by holder, or of its conversion map map.

Parameters#

type#

ElementType | null

address#

ElementAddress

timeline#

{ }

holder#

ElementKey

map?#

{ } | { } | { } | { } | { } | { } | { } | { } | { } | { }

Returns#

ElementKey


isAtomicSection()#

isAtomicSection(manifest, region): boolean

Defined in: manifest/elements.ts:256

Whether the region region of manifest is an atomic section: its type statement names the class tts:AtomicSection in any spelling standing for its IRI (regionClasses), as computed flows write it.

Parameters#

manifest#

Manifest

region#

{ }

Returns#

boolean


isUnit()#

isUnit(unit): unit is TimeUnit

Defined in: manifest/elements.ts:165

Whether a string is one of the schema’s units.

Parameters#

unit#

string

Returns#

unit is TimeUnit


leaderKey()#

leaderKey(label): ElementKey

Defined in: manifest/elements.ts:300

The key of the leader line joining the label label of the element X to that element (sections 2.1, 2.2 and 6.6): of type leader, at {id: X, part: ["leader"]}, of the label’s timeline, held by the label.

Parameters#

label#

ElementKey

Returns#

ElementKey


manifestElements()#

manifestElements(manifest): ElementKey[]

Defined in: manifest/elements.ts:938

Every element of a manifest’s drawing, in the order of its tree (sections 2.1 and 8.1): the block; the title of a named manifest (one with an id or a name), addressed {part: ["name"]}; the ancestor cards behind the frames (section 8.8), each an ancestor_card at {id: R, part: ["card"]} followed by the member drawing of its root R, all held by the block, whether a rule displays them or not, each followed by the gaps carried into it from the frame G it stands behind (section 8.9), one per group elision of G (groupElisions) in canonical order, each with its ellipsis and no label, keyed as the frame’s own gap of it (held by the frame), whose cascaded values it takes; each group’s frame, its title and its member drawings in display order; then the roots drawn without a frame, then the cards of the virtual timelines no group holds, by ID (section 8.10); the cards of the ancestor cards and of those roots holding the gaps of the stored card elisions of their timelines, a virtual timeline’s card those of the elisions lying on it (memberElements); then, after every item, the gaps of the frames’ group elisions, frame by frame in drawing order and each frame’s in canonical order, each {id: E} of type elision held by the frame with its ellipsis and its labels (gapElements), belonging to the elision’s timeline, a virtual member’s read as its drawing’s timeline (virtualDrawing); then the lines of the groupstamps across their groups’ frames (section 6.6), so that every drawn line has an address: timestamp by timestamp in the order of graphical.timestamps, for each groupstamp whose display lists cross_section, one cross_section at its line’s address {id: X, part: ["line"]} per frame holding a card that draws its timeline (the member itself or a descendant of it), held by that frame and belonging to the timestamp’s timeline, in the order of the frames; then the alignment anchors of the named MatchStamps (section 8.7), MatchStamp by MatchStamp and each one’s anchors in the order of its alignment_anchors: each anchor’s line {id: A}, which the block holds, and, when its display lists name, the MatchStamp’s name at it, a label addressed {id: A, part: ["name"]} that the line holds. A timeline drawn more than once, as an ancestor line and as a line of its own, or as a member of several groups, is listed at each drawing with the same address, cards included; so is an elision drawn in several cards or frames. The elisions a card derives (section 8.9) depend on the drawing’s geometry and are listed nowhere.

The list is a list of keys, each element once per drawing of it with its holder, never the order in which a drawing writes its elements (section 8.5): a card’s stored gaps stand here after the bands of their timeline, where section 8.5 writes them after the card’s whole member drawing, from the left. Read it as a set of keys wherever an order would be compared.

Parameters#

manifest#

Manifest

Returns#

ElementKey[]


memberFlow()#

memberFlow(manifest, member): readonly PlacedFlow[]

Defined in: manifest/elements.ts:1399

The flow-control elements the card of a member that is a child timeline draws (section 6.4, Flow control): those of every timeline of its root’s tree, the member’s own and its descendants’ included, each at its position on the member’s axis (offset arithmetic from the root down), kept where that position lies on [0, λ], λ the member’s length or, where that is not known, its reach (section 3.4); in the root’s traversal order (section 6.1, children by offset, then ID), each timeline’s in the order of its flow_control. None for a root, whose card draws its own tree’s.

Parameters#

manifest#

Manifest

member#

MemberDrawing

Returns#

readonly PlacedFlow[]


namedTimestamps()#

namedTimestamps(manifest, timeline): readonly object[]

Defined in: manifest/elements.ts:349

The named timestamps of the timeline timeline (section 2), in the order graphical.timestamps lists them, which is canonical (by timeline, then coordinate, then ID) in a manifest in canonical order; none when it has none. Memoised by the manifest’s identity.

Parameters#

manifest#

Manifest

timeline#

string

Returns#

readonly object[]


orderedChildren()#

orderedChildren(timeline): ChildTimeline[]

Defined in: manifest/elements.ts:399

A timeline’s children by offset, then id in code-point order, whatever their order in children.

Parameters#

timeline#

{ }

Returns#

ChildTimeline[]


reachOf()#

reachOf(timeline, manifest, reaches?): Real

Defined in: manifest/elements.ts:1154

The reach of a timeline on its own axis (section 3.4): the largest of its number type’s zero and every coordinate its content reaches, displayed or not. A child counts its offset plus its length, or plus its own reach when its length is not known; regions their start and end; every flow-control element its coordinate, and a jump the place each destination with a by reaches, its coordinate plus that distance (every other destination lands on a coordinate counted here, a region’s start, a child’s offset or 0); every named timestamp of it in manifest’s graphical object its coordinate. Maps are not content, and a measure map belongs to no timeline. reaches holds the reach of every timeline already walked, so one traversal walks each subtree once.

Parameters#

timeline#

{ }

manifest#

Manifest

reaches?#

WeakMap<{ }, Real> = ...

Returns#

Real


regionClasses()#

regionClasses(manifest, region): readonly string[] | undefined

Defined in: manifest/elements.ts:226

The classes the region region names by its type statement (section 2.3), each in every spelling of a selector’s class that stands for the same IRI, in the order of the statement. A stated class stands for the IRI it expands to under the manifest’s @context (expandIri), else for itself; a selector’s class holding : stands for the format’s namespace followed by rest when it is tts:rest, whatever the context declares, else for the IRI it expands to under the context, else for itself. So a region’s spellings are those of its IRI, tts:rest and p:rest for every prefix p the context declares, that stand for it. undefined for a region stating no type.

Parameters#

manifest#

Manifest

region#

{ }

Returns#

readonly string[] | undefined


selectorMatches()#

selectorMatches(select, element, ancestry): boolean

Defined in: manifest/elements.ts:370

Whether an element matches every member present in a selector: addresses by whole address, class a timeline’s class or a map’s type, facet a band’s facet, coordinates a named timestamp’s wedge or label of its primary or of a secondary coordinate (section 2.3).

Parameters#

select#

Selector

element#

ElementKey

ancestry#

ReadonlyMap<string, readonly string[]>

Returns#

boolean


textKey()#

textKey(owner, type): ElementKey

Defined in: manifest/elements.ts:277

The key of an element’s own text, name or label, which the element holds: at the element’s address with type appended to its part, a chunk’s keeping its facet (section 2.2).

Parameters#

owner#

ElementKey

type#

"name" | "label"

Returns#

ElementKey


timelineClass()#

timelineClass(unit): "ContinuousGraphicalTimeline" | "ContinuousLogicalTimeline" | "ContinuousPhysicalTimeline" | "DiscreteGraphicalTimeline" | "DiscreteLogicalTimeline" | "DiscretePhysicalTimeline"

Defined in: manifest/elements.ts:181

The class of a timeline on unit: its modality, then its domain, then Timeline.

Parameters#

unit#

TimeUnit

Returns#

"ContinuousGraphicalTimeline" | "ContinuousLogicalTimeline" | "ContinuousPhysicalTimeline" | "DiscreteGraphicalTimeline" | "DiscreteLogicalTimeline" | "DiscretePhysicalTimeline"


unitDomain()#

unitDomain(unit): readonly [Domain, Modality] | null

Defined in: manifest/elements.ts:170

The domain and modality of a unit, or null for none (a map’s target_unit may be null).

Parameters#

unit#

string | null | undefined

Returns#

readonly [Domain, Modality] | null


unownedKey()#

unownedKey(type, address, holder): ElementKey

Defined in: manifest/elements.ts:123

The key of an element belonging to no timeline, held by holder: a group’s frame, a title, the line of an alignment anchor or the label that line holds (sections 2.1 and 2.2).

Parameters#

type#

"name" | "label" | "frame" | "alignment_anchor"

address#

ElementAddress

holder#

ElementKey

Returns#

ElementKey