inspector/regions#

Interfaces#

Listed#

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

The timeline a list was made for, in its block: what a later selection of its regions keeps.

Properties#

block#

readonly block: string

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

timeline#

readonly timeline: string

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


RegionRow#

Defined in: editor/src/inspector/regions.ts:51

One region of the tab: what its row shows and the commands it sends.

Properties#

address#

readonly address: Address

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

Its address in its block.

end#

readonly end: string

Defined in: editor/src/inspector/regions.ts:65

id#

readonly id: string

Defined in: editor/src/inspector/regions.ts:52

manifest#

readonly manifest: Manifest

Defined in: editor/src/inspector/regions.ts:56

The manifest it was read from, which its drafts belong to.

name#

readonly name: string

Defined in: editor/src/inspector/regions.ts:60

Its name; empty for none.

readOnly#

readonly readOnly: boolean

Defined in: editor/src/inspector/regions.ts:69

An atomic section: shown, never edited.

remove#

readonly remove: RemoveCommand | null

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

Its removal; null for an atomic section.

start#

readonly start: string

Defined in: editor/src/inspector/regions.ts:64

Its start and end as Copy writes them in its axis’s number type.

timeline#

readonly timeline: object

Defined in: editor/src/inspector/regions.ts:58

The timeline holding it, on whose axis its start and end lie.

type#

readonly type: string

Defined in: editor/src/inspector/regions.ts:62

The classes its type statement names, an atomic section’s as “Atomic section”; empty for none.

unit#

readonly unit: string

Defined in: editor/src/inspector/regions.ts:67

Its axis’s pretty unit.


RegionSection#

Defined in: editor/src/inspector/regions.ts:75

The regions of one timeline: the selected one’s without a heading, a descendant’s under its name.

Properties#

heading#

readonly heading: string | null

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

Its name, else its ID; null for the selected timeline itself.

rows#

readonly rows: readonly RegionRow[]

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

timeline#

readonly timeline: string

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

The timeline’s ID.


RegionsShown#

Defined in: editor/src/inspector/regions.ts:84

What the Regions tab shows of a selection naming one timeline.

Properties#

add#

readonly add: AddCommand | null

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

The add of a region over the selected timeline; null where its extent fits no value of its axis.

block#

readonly block: Block

Defined in: editor/src/inspector/regions.ts:85

sections#

readonly sections: readonly RegionSection[]

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

The selected timeline’s section first, then each descendant’s holding a region, in pre-order.

selected#

readonly selected: ReadonlySet<string>

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

The IDs of the selected regions, whose rows are marked.

timeline#

readonly timeline: object

Defined in: editor/src/inspector/regions.ts:87

The selected timeline.

Type Aliases#

RegionField#

RegionField = "name" | "start" | "end"

Defined in: editor/src/inspector/regions.ts:48

A field of a region’s row.

Functions#

addRegionCommand()#

addRegionCommand(block, timeline): AddCommand | null

Defined in: editor/src/inspector/regions.ts:196

The add of a region over the whole of timeline in block: from 0 to its length, or to its reach where its length is not known, as its axis writes them. The region carries no ID: core gives it one. null where the reach fits no value of the axis.

Parameters#

block#

Block

timeline#

{ }

Returns#

AddCommand | null


regionFieldCommand()#

regionFieldCommand(row, field, text): Result<Command | null>

Defined in: editor/src/inspector/regions.ts:291

The command text typed into field of row gives: one set of the region’s name (an empty text unstates it) or of its start or end, read exactly in its axis’s number type; null where the text is what the row shows; refused before dispatch where the text spells no value of the axis, at [<address key>, field]. The store’s checks decide the rest (an end before the start, a value outside the timeline).

Parameters#

row#

RegionRow

field#

RegionField

text#

string

Returns#

Result<Command | null>


regionsOf()#

regionsOf(block, subjects, listed?): RegionsShown | null

Defined in: editor/src/inspector/regions.ts:248

What the Regions tab shows of subjects: when they lie in one block and each names one and the same timeline, as the timeline, its card, one of its bands or one of its regions (or a part of any of these), that timeline’s regions and its descendants’; while they name only regions of listed (the timeline the tab listed before) or of its descendants, listed’s, so that selecting a listed region keeps the list; null for no subject and for any other selection.

Parameters#

block#

Block | null

subjects#

readonly Subject[]

listed?#

Listed | null = null

Returns#

RegionsShown | null