manifest/address#

Interfaces#

ElementAddress#

Defined in: manifest/address.ts:77

The address of an element of one manifest’s drawing, the read-only view of the schema’s Address: {} the bundle (the block draws it), {part: ["name"]} the manifest’s title, {id} an element, {id, facet} a band, {id, part} a part of an element, {id, facet: "regions", part: [k, …]} a chunk drawn in a regions band and its parts; a facet stands only with an id, and with a part only where the part begins with a chunk index.

Extended by#

Properties#

facet?#

readonly optional facet?: Facet

Defined in: manifest/address.ts:79

id?#

readonly optional id?: string

Defined in: manifest/address.ts:78

part?#

readonly optional part?: readonly PartItem[]

Defined in: manifest/address.ts:80

Type Aliases#

ChunkIndex#

ChunkIndex = number

Defined in: manifest/address.ts:63

A chunk index: an integer from 0 at the head of an address’s part, naming the chunk at that index of the FlowMap drawn on a line, in that line’s regions band (docs/drawing.md, sections 2.2 and 8.10).


OwnerAddress#

OwnerAddress = ElementAddress & object

Defined in: manifest/address.ts:84

The address of anything but a band, which alone has parts: a band’s address states no facet.

Type Declaration#

facet?#

readonly optional facet?: never


PartItem#

PartItem = Part | ChunkIndex

Defined in: manifest/address.ts:66

A member of an address’s part: a part word, or, at its head, a chunk index.

Variables#

BUNDLE_ADDRESS#

const BUNDLE_ADDRESS: OwnerAddress = {}

Defined in: manifest/address.ts:87

The address of the bundle, which the block draws.


FACETS#

const FACETS: readonly Facet[]

Defined in: manifest/address.ts:25

The five facets of every timeline, in the order its bands are listed: the default band order without line (children, conversion maps, markers, regions, flow control).


PART_WORDS#

const PART_WORDS: readonly ["start", "end", "name", "label", "card", "line", "id", "coordinate", "elision", "ellipsis", "symbol", "fork", "leader"]

Defined in: manifest/address.ts:37

The part words, in the schema’s order.


TITLE_ADDRESS#

const TITLE_ADDRESS: OwnerAddress

Defined in: manifest/address.ts:90

The address of the manifest’s title.


VIRTUAL_FACETS#

const VIRTUAL_FACETS: readonly Facet[]

Defined in: manifest/address.ts:32

The facets of a virtual timeline’s bands: it has no children, conversion maps or flow control, so only its markers and its regions, which hold its chunks (docs/drawing.md section 8.10).

Functions#

addressKey()#

addressKey(address): string

Defined in: manifest/address.ts:128

The one string form of an address: its JSON with the members it states in code-point order of their names (block, facet, id, part), so equal addresses give equal keys and different addresses different keys.

Parameters#

address#

AddressMembers

Returns#

string


bandAddress()#

bandAddress(timeline, facet): ElementAddress

Defined in: manifest/address.ts:98

The address of the band drawing the facet facet of the timeline timeline.

Parameters#

timeline#

string

facet#

Facet

Returns#

ElementAddress


cardAddress()#

cardAddress(timeline): OwnerAddress

Defined in: manifest/address.ts:103

The address of every card of the timeline timeline.

Parameters#

timeline#

string

Returns#

OwnerAddress


idAddress()#

idAddress(id): OwnerAddress

Defined in: manifest/address.ts:93

The address of the element with ID id: a timeline, group, map, region or flow-control element.

Parameters#

id#

string

Returns#

OwnerAddress


isFacet()#

isFacet(value): value is Facet

Defined in: manifest/address.ts:16

Whether a value is one of the five facets.

Parameters#

value#

unknown

Returns#

value is Facet


isPart()#

isPart(value): value is Part

Defined in: manifest/address.ts:54

Whether a value is one of the part words.

Parameters#

value#

unknown

Returns#

value is Part


partAddress()#

partAddress<A>(owner, word): A

Defined in: manifest/address.ts:111

owner’s address with word appended to its part: a name, a label, a mark, a mark’s label. A band has no part, so a band’s address is no owner.

Type Parameters#

A#

A extends OwnerAddress

Parameters#

owner#

A

word#

Part

Returns#

A


sameAddress()#

sameAddress(left, right): boolean

Defined in: manifest/address.ts:136

Whether two addresses are equal as whole objects.

Parameters#

left#

AddressMembers

Returns#

boolean