commands/matchstamps#

Interfaces#

AnchorCoordinate#

Defined in: commands/matchstamps.ts:45

A coordinate of an anchor as a command gives it: the timeline it lies on and its value there.

Properties#

at#

readonly at: Located

Defined in: commands/matchstamps.ts:46

coordinate#

readonly coordinate: JsonNumber | readonly [JsonNumber, JsonNumber]

Defined in: commands/matchstamps.ts:47


AnchorValue#

Defined in: commands/matchstamps.ts:317

A coordinate as a command gives an anchor’s: a timeline ID and a bare value on its axis.

Properties#

coordinate#

readonly coordinate: JsonNumber | readonly [JsonNumber, JsonNumber]

Defined in: commands/matchstamps.ts:319

timeline#

readonly timeline: string

Defined in: commands/matchstamps.ts:318

Type Aliases#

GivenAnchor#

GivenAnchor = readonly [AnchorCoordinate, AnchorCoordinate]

Defined in: commands/matchstamps.ts:51

An alignment anchor as a command gives it: its two coordinates.

Functions#

matchStampSpec()#

matchStampSpec(manifest, matchstamp): NamedMatchStampSpec

Defined in: commands/matchstamps.ts:328

What the comparison with the current table reads of a named MatchStamp of manifest (checkMatchStamp): each anchor’s two coordinates, the values of its match timestamps on their timelines’ axes, and whether it shows the name; and the claim IDs it records.

Parameters#

manifest#

Manifest

matchstamp#

{ }

Returns#

NamedMatchStampSpec


middleAnchor()#

middleAnchor(count): number

Defined in: commands/matchstamps.ts:157

The position of the middle one of count anchors in screen order: the upper of two middles.

Parameters#

count#

number

Returns#

number


namedAsGroupstamp()#

namedAsGroupstamp(manifest, timeline, value): boolean

Defined in: commands/matchstamps.ts:194

Whether naming a MatchStamp one of whose coordinates lies on timeline at value (exact, on the timeline’s own axis) stores the match timestamp there as a groupstamp: the match timestamp manifest holds there, which naming takes, keeps its own groupstamp; a new one is a groupstamp exactly where its timeline lies in a group (isGroupMember), as naming adds it (namedMatchStamp). False where the manifest holds no timeline timeline.

Parameters#

manifest#

Manifest

timeline#

string

value#

CoordinateValue

Returns#

boolean


namedMatchStamp()#

namedMatchStamp(manifest, mint, id, name, anchors, claims): object

Defined in: commands/matchstamps.ts:250

A new named MatchStamp with the ID id: its anchors those given, each with the ID mint gives, after those of the new match timestamps, and the default display, the middle one in screen order showing the name too; and the named timestamps with the match timestamps it needs added.

Parameters#

manifest#

Manifest

mint#

Mint

id#

string

name#

string

anchors#

readonly GivenAnchor[]

claims#

readonly string[]

Returns#

object

matchstamp#

readonly matchstamp: object

timestamps#

readonly timestamps: object[]


readAnchors()#

readAnchors(value, manifest, path): Problem | GivenAnchor[]

Defined in: commands/matchstamps.ts:113

The alignment anchors a command gives, in screen order: a non-empty list of pairs of coordinates, each {timeline, coordinate} naming a timeline of manifest and a value on its own axis within it (readTimestampCoordinate), no anchor given twice. Anything else is invalid_value (unknown_property for an unknown member of a coordinate) at its path below path.

Parameters#

value#

unknown

manifest#

Manifest

path#

readonly PathSegment[]

Returns#

Problem | GivenAnchor[]


readMatchClaims()#

readMatchClaims(value, path): Problem | string[]

Defined in: commands/matchstamps.ts:145

The IDs of the MatchClaims behind a MatchStamp, as a command gives them: a list of non-empty strings, kept in the order given; a repeated ID is the schema’s refusal.

Parameters#

value#

unknown

path#

readonly PathSegment[]

Returns#

Problem | string[]


rewrittenMatchStamp()#

rewrittenMatchStamp(manifest, mint, matchstamp, anchors): object

Defined in: commands/matchstamps.ts:285

The named MatchStamp matchstamp with its anchors rewritten from those given: an anchor joining the same two match timestamps as one it has keeps that anchor (its ID and display), any other is new, with the ID mint gives and the default display. Where an anchor showing the name is gone and no kept one shows it, the middle anchor in screen order shows it. With the named timestamps the new anchors need added.

Parameters#

manifest#

Manifest

mint#

Mint

matchstamp#

{ }

anchors#

readonly GivenAnchor[]

Returns#

object

matchstamp#

readonly matchstamp: object

timestamps#

readonly timestamps: object[]