manifest/files#

Interfaces#

Ancestor#

Defined in: manifest/files.ts:86

An ancestor of a member that is a child timeline.

Properties#

offset#

readonly offset: JsonNumber | readonly [JsonNumber, JsonNumber]

Defined in: manifest/files.ts:89

A bare value on this ancestor’s axis.

timeline#

readonly timeline: object

Defined in: manifest/files.ts:87


AncestorCard#

Defined in: manifest/files.ts:103

The ancestor card of a root behind a group’s frame (section 8.8): the root of a member that is a child timeline, drawn whole and aligned to that member.

Properties#

group#

readonly group: object

Defined in: manifest/files.ts:104

member#

readonly member: MemberDrawing

Defined in: manifest/files.ts:106

The member it is aligned to: the first in display order below the root.

root#

readonly root: MemberDrawing

Defined in: manifest/files.ts:108

The root, drawn as a root: it has no ancestors.


EntryList#

Defined in: manifest/files.ts:35

One list of a timeline: where it lies, how to read it and how to replace it.

Type Parameters#

E#

E

Properties#

path#

readonly path: readonly string[]

Defined in: manifest/files.ts:37

The members leading from a timeline to the list.

Methods#

get()#

get(timeline): readonly E[]

Defined in: manifest/files.ts:38

Parameters#
timeline#

{ }

Returns#

readonly E[]

replace()#

replace(timeline, list): object

Defined in: manifest/files.ts:39

Parameters#
timeline#

{ }

list#

readonly E[]

Returns#

object


EntryTypes#

Defined in: manifest/files.ts:22

Each kind of element a timeline holds in a list, and the type of its entries.

Properties#

flow_control#

readonly flow_control: object

Defined in: manifest/files.ts:25

map#

readonly map: { } | { } | { } | { } | { } | { } | { } | { } | { } | { }

Defined in: manifest/files.ts:23

region#

readonly region: object

Defined in: manifest/files.ts:24


GroupFrame#

Defined in: manifest/files.ts:93

A group’s frame: the group and its member drawings in display order.

Properties#

group#

readonly group: object

Defined in: manifest/files.ts:94

members#

readonly members: readonly MemberDrawing[]

Defined in: manifest/files.ts:95


MemberDrawing#

Defined in: manifest/files.ts:75

A timeline drawn as a root: a group’s member or an ungrouped root.

Properties#

ancestors#

readonly ancestors: readonly Ancestor[]

Defined in: manifest/files.ts:82

Its ancestors from its root down to its parent, each with the offset, on that ancestor’s axis, of the next timeline down: the next ancestor, or the member itself for its parent.

timeline#

readonly timeline: object

Defined in: manifest/files.ts:76


MemberDrawings#

Defined in: manifest/files.ts:112

What the drawing of a manifest draws as roots (section 8.1).

Properties#

ancestorCards#

readonly ancestorCards: readonly AncestorCard[]

Defined in: manifest/files.ts:121

The ancestor cards, frame by frame in the order of frames, then by their members’ display order: one per root of a member that is a child timeline, aligned to its first such member.

frames#

readonly frames: readonly GroupFrame[]

Defined in: manifest/files.ts:114

The frames, in canonical order of their groups.

ungrouped#

readonly ungrouped: readonly MemberDrawing[]

Defined in: manifest/files.ts:116

The roots drawn without a frame (no group names them and they contain no member), by id.

Type Aliases#

EntryKind#

EntryKind = keyof EntryTypes

Defined in: manifest/files.ts:29

The kind of an element a timeline holds in a list.


ListedElement#

ListedElement = EntryTypes[EntryKind]

Defined in: manifest/files.ts:32

An element a timeline holds in a list: a conversion map, a region or a flow-control element.

Variables#

ENTRY_KINDS#

const ENTRY_KINDS: readonly EntryKind[]

Defined in: manifest/files.ts:62

The kinds of listed elements, in the order a timeline’s entries are visited.


ENTRY_LISTS#

const ENTRY_LISTS: { readonly [kind in EntryKind]: EntryList<EntryTypes[kind]> }

Defined in: manifest/files.ts:43

Where each kind of entry lies in a timeline: the one table of the three lists.

Functions#

entriesOf()#

entriesOf(timeline, kind): readonly ListedElement[]

Defined in: manifest/files.ts:65

The list of entries of one kind in a timeline.

Parameters#

timeline#

{ }

kind#

keyof EntryTypes

Returns#

readonly ListedElement[]


isNamed()#

isNamed(manifest): boolean

Defined in: manifest/files.ts:70

Whether a manifest is named: it has an id or a name, and so a title.

Parameters#

manifest#

Manifest

Returns#

boolean


locateVirtual()#

locateVirtual(manifest, id): Located | undefined

Defined in: manifest/files.ts:199

The virtual timeline id of manifest located as the timeline its axis is (virtualDrawing, section 8.10): a root holding nothing, at its own place in the manifest’s virtual_timelines, from which what lies on it (a named timestamp, a coordinate of an alignment anchor) reads its axis; undefined for an ID no virtual timeline carries.

Parameters#

manifest#

Manifest

id#

string

Returns#

Located | undefined


memberDrawings()#

memberDrawings(manifest): MemberDrawings

Defined in: manifest/files.ts:130

The member drawings of a manifest in canonical order: every group’s members in their display order (displayOrder), each with its ancestors, then the ungrouped roots, and the ancestor cards behind the frames. A member id no timeline carries, which the schema refuses, is passed over.

Parameters#

manifest#

Manifest

Returns#

MemberDrawings


virtualDrawing()#

virtualDrawing(manifest, id): MemberDrawing | undefined

Defined in: manifest/files.ts:177

The member drawing of the virtual timeline id of manifest (section 8.10), which is drawn as a root holding nothing: a timeline of its ID, name, unit, number type and length, locked (its end is fixed by its map), without children, conversion maps, regions or flow control, and without ancestors; one object per manifest and ID, so every reader keyed by a member drawing reads the same. undefined for an ID no virtual timeline carries.

Parameters#

manifest#

Manifest

id#

string

Returns#

MemberDrawing | undefined


withVirtualMembers()#

withVirtualMembers(manifest, frame): GroupFrame

Defined in: manifest/files.ts:233

The frame frame with its virtual members (section 8.10): every member of its group’s display order that is a timeline or a virtual timeline, in that order, a virtual one by its member drawing (virtualDrawing); frame itself where its group has no virtual member.

Parameters#

manifest#

Manifest

frame#

GroupFrame

Returns#

GroupFrame