inspector/timestamp#

Interfaces#

Copies#

Defined in: editor/src/inspector/timestamp.ts:76

What the Copy buttons of one value write, null where there is no such Copy: the value (copyValue, a text as it is), the raw text with its unit written out (rawText; none without a unit) and the pretty text (prettyText, exact; none where it is the value’s text, as a float without a unit is).

Properties#

pretty#

readonly pretty: string | null

Defined in: editor/src/inspector/timestamp.ts:79

raw#

readonly raw: string | null

Defined in: editor/src/inspector/timestamp.ts:78

value#

readonly value: string

Defined in: editor/src/inspector/timestamp.ts:77


ReadOn#

Defined in: editor/src/inspector/timestamp.ts:304

Where a held unnamed pin was read: the line of the canvas (null where unknown) and the root raised then.

Properties#

line#

readonly line: string | null

Defined in: editor/src/inspector/timestamp.ts:305

raised#

readonly raised: string | null

Defined in: editor/src/inspector/timestamp.ts:306


TimelineRows#

Defined in: editor/src/inspector/timestamp.ts:103

The rows of one timeline the timestamp crosses: its coordinate’s and its maps’, top to bottom as drawn.

Extended by#

Properties#

key#

readonly key: string

Defined in: editor/src/inspector/timestamp.ts:105

Unique among the groups of one timestamp or MatchStamp.

name#

readonly name: string

Defined in: editor/src/inspector/timestamp.ts:108

The timeline’s name, else its ID.

primary?#

readonly optional primary?: true

Defined in: editor/src/inspector/timestamp.ts:114

Present, true, on the group holding the timestamp’s primary coordinate (its anchor’s coordinate row), which the tab highlights.

rows#

readonly rows: readonly ValueRow[]

Defined in: editor/src/inspector/timestamp.ts:109

timeline#

readonly timeline: string

Defined in: editor/src/inspector/timestamp.ts:106


ValueRow#

Defined in: editor/src/inspector/timestamp.ts:89

One value as the tab shows it: its label, its exact text and pretty unit, what its Copy buttons write (null: none, a missing value), and whether an edit of it moves the timestamp. A number’s numberType is the type its text is read in; a text (a label, a measure, a missing value) has none and is never edited.

Properties#

copies#

readonly copies: Copies | null

Defined in: editor/src/inspector/timestamp.ts:98

editable#

readonly editable: boolean

Defined in: editor/src/inspector/timestamp.ts:99

key#

readonly key: string

Defined in: editor/src/inspector/timestamp.ts:91

Unique among the rows of one timestamp.

label#

readonly label: string

Defined in: editor/src/inspector/timestamp.ts:94

numberType#

readonly numberType: NumberType | null

Defined in: editor/src/inspector/timestamp.ts:97

row#

readonly row: Row

Defined in: editor/src/inspector/timestamp.ts:93

The row of core’s cross-section an edit of the value is read on.

text#

readonly text: string

Defined in: editor/src/inspector/timestamp.ts:95

unit#

readonly unit: string | null

Defined in: editor/src/inspector/timestamp.ts:96


WedgeRotation#

Defined in: editor/src/inspector/timestamp.ts:576

The rotation of a timestamp’s wedge as the Timestamp tab shows it.

Properties#

stated#

readonly stated: boolean

Defined in: editor/src/inspector/timestamp.ts:580

Whether a rule addressed to the wedge alone sets its rotation (rotationCommand’s rule).

value#

readonly value: number

Defined in: editor/src/inspector/timestamp.ts:578

The degrees the wedge is turned: as drawn, else as a rule states it, else its initial value.

Variables#

DISPLAY_LABELS#

const DISPLAY_LABELS: { readonly [word in TimestampDisplay]: string }

Defined in: editor/src/inspector/timestamp.ts:491

What each word of display is called on its toggle.


DISPLAY_WORDS#

const DISPLAY_WORDS: readonly object[]

Defined in: editor/src/inspector/timestamp.ts:500

The words of display, each with its toggle’s label, in the canonical order.


GROUPSTAMP_WORDS#

const GROUPSTAMP_WORDS: readonly object[]

Defined in: editor/src/inspector/timestamp.ts:542

The GroupStamp toggle of both stamp tabs: one word.


ROTATION_STOPS#

const ROTATION_STOPS: readonly number[]

Defined in: editor/src/inspector/timestamp.ts:568

The stops of a wedge’s rotation in degrees, ascending: the slider’s ticks and the buttons under it.

Functions#

addedTimestamp()#

addedTimestamp(before, after, block): { } | null

Defined in: editor/src/inspector/timestamp.ts:421

The named timestamp of block block that after holds and before does not; null for none.

Parameters#

before#

View

after#

View

block#

string

Returns#

{ } | null


boundaryPinOf()#

boundaryPinOf(view, address, metrics, knotsOf?, editing?, pane?): Pin | null

Defined in: editor/src/inspector/timestamp.ts:387

The pin of the position a timeline’s start or end mark stands for, when address names exactly such a mark, {block, id: T, part: ["start"]} or ["end"] (a segment’s boundary): unnamed, of the timeline T of the block’s manifest at the zero of its number type or at its length, read as any position on T is (the arranger’s timelinePin: its ancestors and the timelines its line crosses), the block drawn with metrics under the view’s granularity and with the MeasureMap rows knotsOf gives (no server without it), on the lines the canvas shows while editing is open, as namedPinOf reads, and by the group where a fresh reading there reads one (core’s groupstampByDefault: a group member’s above a timeline editor), so the pin reads alike whichever editors were open before; the block drawn at the canvas’s pane. null for any other address, a timeline the manifest does not hold, and the end of a timeline whose length is not known.

Parameters#

view#

View

address#

Address

metrics#

FontMetrics

knotsOf?#

KnotsOf

editing?#

Editing | null = null

pane?#

Pane

Returns#

Pin | null


coordinateGroup()#

coordinateGroup(key, timeline, name, value): TimelineRows

Defined in: editor/src/inspector/timestamp.ts:219

The group of one coordinate on its own timeline, as a MatchStamp’s timestamp is shown: one row “coordinate” (value a number in its unit and number type, else a text), copied as a timestamp’s is, never edited. key is unique among the groups shown together, and so are the row keys derived from it.

Parameters#

key#

string

timeline#

string

name#

string

value#

string | ExpressedNumber

Returns#

TimelineRows


degreesText()#

degreesText(degrees): string

Defined in: editor/src/inspector/timestamp.ts:571

degrees as the tab writes it, a negative number with a minus sign (U+2212): “−45”, “0”, “135”.

Parameters#

degrees#

number

Returns#

string


displayCommand()#

displayCommand(pin, word): Command

Defined in: editor/src/inspector/timestamp.ts:509

The set of the named timestamp’s display with word toggled, in the canonical order.

Parameters#

pin#

Pin

word#

"id" | "name" | "wedge" | "cross_section" | "coordinate"

Returns#

Command


displayOf()#

displayOf(pin): readonly ("id" | "name" | "wedge" | "cross_section" | "coordinate")[]

Defined in: editor/src/inspector/timestamp.ts:504

What pin displays: its named timestamp’s display; an unnamed pin’s naming would give the default.

Parameters#

pin#

Pin

Returns#

readonly ("id" | "name" | "wedge" | "cross_section" | "coordinate")[]


groupstampCommand()#

groupstampCommand(target, groupstamp): Command

Defined in: editor/src/inspector/timestamp.ts:560

The set making the named timestamp at target a groupstamp, or an ordinary timestamp: the GroupStamp toggle of both stamp tabs (the Timestamp tab passes its named timestamp’s address, the Matchstamp tab a match timestamp’s).

Parameters#

target#

Address

groupstamp#

boolean

Returns#

Command


groupstampHint()#

groupstampHint(groups): string

Defined in: editor/src/inspector/timestamp.ts:550

What a GroupStamp in the groups named groups (holdingGroupNames of its timeline) crosses, in words, the hint of its toggle in both stamp tabs: “A GroupStamp’s line crosses every member of ‘Performance’.”

Parameters#

groups#

readonly string[]

Returns#

string


groupstampOf()#

groupstampOf(manifest, pin, editor): boolean

Defined in: editor/src/inspector/timestamp.ts:528

Whether pin’s timestamp is a groupstamp: a named one as stored; an unnamed one as naming it would store it, a groupstamp on a group member unless editor, the innermost editor open (null for none), is a timeline editor (core’s groupstampByDefault).

Parameters#

manifest#

Manifest

pin#

Pin

editor#

EditorKind | null

Returns#

boolean


heldPinOf()#

heldPinOf(view, pin, metrics, editing, readOn, pane?): Pin

Defined in: editor/src/inspector/timestamp.ts:339

The unnamed pin pin, held since it was read as readOn says, as shown while editing is open: itself while its block raises the same root (raisedOf) and it reads a group exactly where a fresh reading reads one (readsGroup against groupstampOf: by the group where naming it would store a groupstamp, never inside a timeline editor), else read again at its anchor’s timeline and position as a fresh reading at its mark reads it under the root raised now and by that group reading, so its rows, the GroupStamp toggle and the tab after naming agree whichever editors were open when it was read (the arranger’s rereadPin, on its line while that line is still a place), its block drawn with metrics at the canvas’s pane, once per pin, manifest, root, group reading, line and pane size, so a change of the view elsewhere shows the same pin. Itself where its block or its timeline is gone.

Parameters#

view#

View

pin#

Pin

metrics#

FontMetrics

editing#

Editing | null

readOn#

ReadOn

pane?#

Pane

Returns#

Pin


holdingGroupNames()#

holdingGroupNames(manifest, timeline): string[]

Defined in: editor/src/inspector/timestamp.ts:537

The names (else the IDs) of the groups of manifest holding timeline: those listing it or one of its ancestors among their members (core’s groupsHolding), as the GroupStamp hint names them.

Parameters#

manifest#

Manifest

timeline#

string

Returns#

string[]


moveCommand()#

moveCommand(pin, moved): Command | null

Defined in: editor/src/inspector/timestamp.ts:473

The set moving the named timestamp pin shows to moved, its pin moved (pinAt): the coordinate of moved’s anchor, the named timestamp’s own timeline; null when that is its coordinate already.

Parameters#

pin#

Pin

moved#

Pin

Returns#

Command | null


nameCommand()#

nameCommand(pin, name, groupstamp?): Command

Defined in: editor/src/inspector/timestamp.ts:456

The command naming pin name: for an unnamed pin the add storing a timestamp name at its anchor’s coordinate, into its anchor’s timeline (the default display), a groupstamp where groupstamp (what groupstampOf gives it: the command states groupstamp only then, add taking false without it); for a named one the set of its name.

Parameters#

pin#

Pin

name#

string

groupstamp?#

boolean = false

Returns#

Command


namedAddress()#

namedAddress(pin): Address | null

Defined in: editor/src/inspector/timestamp.ts:255

The address of the named timestamp pin shows; null for an unnamed pin.

Parameters#

pin#

Pin

Returns#

Address | null


namedPinOf()#

namedPinOf(view, address, metrics, knotsOf?, editing?, line?, pane?): Pin | null

Defined in: editor/src/inspector/timestamp.ts:270

The pin of the named timestamp at address, read from view (its block drawn with metrics, under the view’s granularity) with the MeasureMap rows knotsOf gives for its block’s manifest (no server without it), on the lines the canvas shows while editing, the innermost open editor, is open (the arranger’s raisedRoot: an ancestor card it raises is read where the frames cover it), on the line keyed line (the line of the canvas it was named from) while that line is one of its places, else at its first place, the block drawn at the canvas’s pane (layout’s default view without one); null where address names none.

Parameters#

view#

View

address#

Address

metrics#

FontMetrics

knotsOf?#

KnotsOf

editing?#

Editing | null = null

line?#

string | null = null

pane?#

Pane

Returns#

Pin | null


offersGroupstamp()#

offersGroupstamp(manifest, pin): boolean

Defined in: editor/src/inspector/timestamp.ts:518

Whether the Timestamp tab offers the GroupStamp toggle for pin, a timestamp of manifest: on a timeline that is a member of a group (core’s isGroupMember), a match timestamp’s included.

Parameters#

manifest#

Manifest

pin#

Pin

Returns#

boolean


raisedOf()#

raisedOf(view, pin, editing): string | null

Defined in: editor/src/inspector/timestamp.ts:298

The root whose ancestor cards the block of pin shows raised while editing is open (the arranger’s raisedRoot); null for none or a block view does not hold.

Parameters#

view#

View

pin#

Pin

editing#

Editing | null

Returns#

string | null


removeCommand()#

removeCommand(pin): Command

Defined in: editor/src/inspector/timestamp.ts:486

The remove deleting the named timestamp pin shows.

Parameters#

pin#

Pin

Returns#

Command


rotationCommand()#

rotationCommand(pin, rotation): StyleCommand

Defined in: editor/src/inspector/timestamp.ts:595

The style turning the wedge of the named timestamp pin shows by rotation degrees, an integer from -180 to 180, through one rule of its block’s manifest addressed to that wedge alone; null removes the property from the rule (the rule with it when nothing else is left), so the wedge takes its initial value again.

Parameters#

pin#

Pin

rotation#

number | null

Returns#

StyleCommand


timelineRows()#

timelineRows(pin): TimelineRows[]

Defined in: editor/src/inspector/timestamp.ts:184

The rows of pin’s timestamp (core’s timestampRows), grouped by timeline in their order: each group the consecutive rows of one timeline, top to bottom as they are drawn, named by its coordinate row’s label; the group holding the primary coordinate (the anchor’s coordinate row) marked primary. They are what the coordinate flag lists for the pin.

Parameters#

pin#

Pin

Returns#

TimelineRows[]


timestampText()#

timestampText(format, pin): Result<Text>

Defined in: editor/src/inspector/timestamp.ts:249

pin’s timestamp as text in format: core’s timestampJson written by the inspector’s codec. The text is a readout, not a manifest, so the manifest’s null rule does not apply to it: in TOML, which has no null, every member whose value is null (a map without a value at the position, a measure’s missing number or length) is left out; JSON and YAML keep it.

Parameters#

format#

"yaml" | "json" | "toml"

pin#

Pin

Returns#

Result<Text>

Throws#

when the format’s codec has not been loaded (loadCodec).


wedgeRotationOf()#

wedgeRotationOf(view, pin, metrics, pane?): WedgeRotation

Defined in: editor/src/inspector/timestamp.ts:625

The rotation of the wedge of pin’s timestamp in view (its block drawn with metrics): a named one’s as its first drawn wedge carries it, in drawing order (a rule scoped to a band or card can turn one address differently in each drawing), whichever rule sets it; while its wedge is not drawn, as its rule states it, else the initial value 0, the rotation of every wedge of a primary coordinate, a groupstamp’s included. An unnamed one’s 0, as naming would draw it. The block is drawn at the canvas’s pane.

Parameters#

view#

View

pin#

Pin

metrics#

FontMetrics

pane?#

Pane

Returns#

WedgeRotation