inspector/tabs#

Interfaces#

Held#

Defined in: editor/src/inspector/tabs.ts:80

A pin as the inspector holds it: core’s pin (unnamed, or showing a named timestamp), with the manifest of its block it was read from.

Properties#

manifest#

readonly manifest: Manifest

Defined in: editor/src/inspector/tabs.ts:82

pin#

readonly pin: Pin

Defined in: editor/src/inspector/tabs.ts:81


MatchShown#

Defined in: editor/src/inspector/tabs.ts:204

What the inspector shows of MatchStamps: the pick, and the MatchStamp (null without one).

Properties#

match#

readonly match: ShownMatch | null

Defined in: editor/src/inspector/tabs.ts:206

picked#

readonly picked: Picked

Defined in: editor/src/inspector/tabs.ts:205


Picked#

Defined in: editor/src/inspector/tabs.ts:53

The tab last chosen, and how many editors the store had opened when it was chosen or when the inspector was last shown or hidden.

Properties#

openings#

readonly openings: number

Defined in: editor/src/inspector/tabs.ts:55

tab#

readonly tab: "manifest" | "regions" | "timestamp" | "matchstamp" | "level" | "properties" | "metadata" | "journal" | "elisions"

Defined in: editor/src/inspector/tabs.ts:54


Shown#

Defined in: editor/src/inspector/tabs.ts:121

What the inspector shows: the pick, and the pin (null without one).

Properties#

picked#

readonly picked: Picked

Defined in: editor/src/inspector/tabs.ts:122

pin#

readonly pin: ShownPin | null

Defined in: editor/src/inspector/tabs.ts:123

Type Aliases#

HeldMatch#

HeldMatch = { block: string; index: AnchorIndex; kind: "potential"; matchStamp: number; } | { block: string; id: string; kind: "named"; }

Defined in: editor/src/inspector/tabs.ts:191

A MatchStamp as the Matchstamp tab holds it: a potential one, pinned on the canvas, by its number in the anchor index of its block’s table it was read from; or a named one, by its ID.


ShownMatch#

ShownMatch = HeldMatch & object

Defined in: editor/src/inspector/tabs.ts:201

A held MatchStamp as shown, and the tab shown before it, shown again when it is let go.

Type Declaration#

before#

readonly before: Tab


ShownPin#

ShownPin = Held & object

Defined in: editor/src/inspector/tabs.ts:86

A held pin as shown, and the tab shown before the first pin, shown again when the pin is cleared.

Type Declaration#

before#

readonly before: Tab


Tab#

Tab = typeof TABS[number]

Defined in: editor/src/inspector/tabs.ts:30

One of the inspector’s tabs.

Variables#

TABS#

const TABS: readonly ["level", "properties", "regions", "metadata", "manifest", "journal", "timestamp", "matchstamp", "elisions"]

Defined in: editor/src/inspector/tabs.ts:18

The inspector’s sections, in tab order: the level tab first, then Properties and Regions, then the six others, Elisions last.

Functions#

chosen()#

chosen(shown, tab, openings): Shown

Defined in: editor/src/inspector/tabs.ts:145

What is shown once tab is chosen: that tab; any tab but Timestamp clears the pin.

Parameters#

shown#

Shown

tab#

"manifest" | "regions" | "timestamp" | "matchstamp" | "level" | "properties" | "metadata" | "journal" | "elisions"

openings#

number

Returns#

Shown


elisionSelected()#

elisionSelected(shown, view, addresses, openings): Shown

Defined in: editor/src/inspector/tabs.ts:175

What is shown once the selection changed to addresses: when they are exactly one elision, stored or automatic (namesElision), the Elisions tab, as though it were chosen (chosen: the pin cleared), remembering no tab to go back to, so the tab stays once the selection leaves the elision; any other selection, several things with an elision among them included, changes nothing (shown itself). Told of a change of the selection only, never while the same elision stays selected, so a tab chosen meanwhile stays.

Parameters#

shown#

Shown

view#

View

addresses#

readonly Address[]

openings#

number

Returns#

Shown


heldOf()#

heldOf(view, pin): Held | null

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

pin held in view: with its block’s manifest; null when its block is gone.

Parameters#

view#

View

pin#

Pin

Returns#

Held | null


initialPick()#

initialPick(depth, openings): Picked

Defined in: editor/src/inspector/tabs.ts:59

What is chosen when the inspector is first made: the level tab while an editor is open, else Properties.

Parameters#

depth#

number

openings#

number

Returns#

Picked


matchOutlived()#

matchOutlived(held, view, index): boolean

Defined in: editor/src/inspector/tabs.ts:243

Whether held no longer holds in view: a named MatchStamp its address no longer names; a potential one, its block’s anchor index now another than the one it was read from (index, null without a table: the table, the filter or the user changed).

Parameters#

held#

HeldMatch

view#

View

index#

AnchorIndex | null

Returns#

boolean


matchPinned()#

matchPinned(shown, held): MatchShown

Defined in: editor/src/inspector/tabs.ts:215

What is shown once held is shown: the Matchstamp tab, remembering the tab shown before unless a MatchStamp already did; or, for null, once it is let go: the tab remembered, no MatchStamp. Letting go without one changes nothing.

Parameters#

shown#

MatchShown

held#

HeldMatch | null

Returns#

MatchShown


namedMatchStampOf()#

namedMatchStampOf(view, address): string | null

Defined in: editor/src/inspector/tabs.ts:228

The ID of the named MatchStamp address names in view, itself or one of its anchors; null for anything else.

Parameters#

view#

View

address#

Address

Returns#

string | null


namesElision()#

namesElision(view, address): boolean

Defined in: editor/src/inspector/tabs.ts:156

Whether address names an elision of view itself, whose form the Elisions tab shows: a stored one ({block, id: E}) or an automatic one, which the drawing derives and core resolves as the part elision of the timeline it lies on ({block, id: T, part: ["elision"]}). Never one of their parts, which a press on the canvas selects as the elision itself.

Parameters#

view#

View

address#

Address

Returns#

boolean


namesTimestamp()#

namesTimestamp(view, address): boolean

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

Whether address names a named timestamp of view.

Parameters#

view#

View

address#

Address

Returns#

boolean


nextTab()#

nextTab(from, key): "manifest" | "regions" | "timestamp" | "matchstamp" | "level" | "properties" | "metadata" | "journal" | "elisions" | undefined

Defined in: editor/src/inspector/tabs.ts:259

The tab a key on the tab from moves to: the arrows the next or previous tab (wrapping), Home and End the first and last; undefined for any other key and for a key held with Alt, Ctrl or Meta, which is the browser’s (Alt+ArrowLeft goes back).

Parameters#

from#

"manifest" | "regions" | "timestamp" | "matchstamp" | "level" | "properties" | "metadata" | "journal" | "elisions"

key#

TabKey

Returns#

"manifest" | "regions" | "timestamp" | "matchstamp" | "level" | "properties" | "metadata" | "journal" | "elisions" | undefined


outlived()#

outlived(held, view): boolean

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

Whether held no longer holds in view. An unnamed pin: its block is deleted, the block’s manifest is another object (any change to it), or the granularity is another object than the one it was read under (a change to it). A named timestamp’s pin, which is read anew from the view whenever it is shown: its address names no named timestamp.

Parameters#

held#

Held

view#

View

Returns#

boolean


pinned()#

pinned(shown, held): Shown

Defined in: editor/src/inspector/tabs.ts:132

What is shown once held is pinned: the Timestamp tab, remembering the tab shown before unless a pin already did; or, for null, once the pin is cleared: the tab remembered, nothing pinned. Clearing without a pin changes nothing.

Parameters#

shown#

Shown

held#

Held | null

Returns#

Shown


tabLabel()#

tabLabel(tab, level): string

Defined in: editor/src/inspector/tabs.ts:45

The word on tab tab at level level: the level’s word on the level tab (Arranger, Bundle, …).

Parameters#

tab#

"manifest" | "regions" | "timestamp" | "matchstamp" | "level" | "properties" | "metadata" | "journal" | "elisions"

level#

Level

Returns#

string


toggled()#

toggled(picked, openings, shown): Picked

Defined in: editor/src/inspector/tabs.ts:71

The pick once the inspector is shown (shown true) or hidden. Hiding it records the count of openings; showing it again shows the level tab when an editor was opened while it was hidden (the count differs, as it does for a store replaced meanwhile), else the tab chosen. While the inspector is shown nothing but a choice changes the pick, so entering or leaving an editor never changes the tab shown.

Parameters#

picked#

Picked

openings#

number

shown#

boolean

Returns#

Picked