inspector/properties#

Interfaces#

Edited#

Defined in: editor/src/inspector/properties.ts:130

One selected container the form edits.

Properties#

address#

readonly address: Address

Defined in: editor/src/inspector/properties.ts:135

The selected address naming it (the first, when several name it).

box#

readonly box: PlaceKey | null

Defined in: editor/src/inspector/properties.ts:137

The place key of its drawn box, null for the block.

holder#

readonly holder: Holding | null

Defined in: editor/src/inspector/properties.ts:133

How a card is held; null for any other container.

kind#

readonly kind: "band" | "block" | "frame" | "card"

Defined in: editor/src/inspector/properties.ts:131

values#

readonly values: Values

Defined in: editor/src/inspector/properties.ts:138


Geometry#

Defined in: editor/src/inspector/properties.ts:142

What the form edits: containers of one role, all in one block.

Properties#

block#

readonly block: Block

Defined in: editor/src/inspector/properties.ts:144

editing#

readonly editing: Editing | null

Defined in: editor/src/inspector/properties.ts:146

The innermost open editor the form edits in, null on the arranger: its level and its frame.

elements#

readonly elements: readonly Edited[]

Defined in: editor/src/inspector/properties.ts:152

Each container once, in selection order.

fields#

readonly fields: readonly PlaceField[]

Defined in: editor/src/inspector/properties.ts:148

The fields the form shows, in order, and which of them the level edits (fieldsOf).

label#

readonly label: string

Defined in: editor/src/inspector/properties.ts:150

The form’s accessible name.

pane#

readonly pane: Pane | undefined

Defined in: editor/src/inspector/properties.ts:154

The canvas’s pane, which every drawing an edit reads is drawn at; undefined for layout’s default view.

role#

readonly role: Role

Defined in: editor/src/inspector/properties.ts:143


LockShown#

Defined in: editor/src/inspector/properties.ts:742

What the Locked checkbox shows: the inspected timelines’ stored locked, or “mixed”.

Properties#

checked#

readonly checked: boolean

Defined in: editor/src/inspector/properties.ts:743

mixed#

readonly mixed: boolean

Defined in: editor/src/inspector/properties.ts:745

The timelines differ: the checkbox is indeterminate.


NameField#

Defined in: editor/src/inspector/properties.ts:612

The name field of the Properties tab: whose name it edits, and the name stored.

Properties#

manifest#

readonly manifest: Manifest | null

Defined in: editor/src/inspector/properties.ts:619

The manifest the name lies in; null for the workspace’s.

name#

readonly name: string | null

Defined in: editor/src/inspector/properties.ts:615

nullable#

readonly nullable: boolean

Defined in: editor/src/inspector/properties.ts:617

Whether an empty text unstates the name (null); the workspace’s name is never empty.

target#

readonly target: Address

Defined in: editor/src/inspector/properties.ts:614

The target of the set naming it: the workspace, a block (its manifest), or an element.

Type Aliases#

Edit#

Edit = Result<{ command: SetCommand | null; notice: string | null; }>

Defined in: editor/src/inspector/properties.ts:410

What an edit gives: the one set (null when it changes nothing) with the notice the message bar shows of it (null for none), or why it was refused.


Role#

Role = "block" | "item" | "held"

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

What a selected container is to the form: the block, whose placement is its own; an item, a frame or a card held by the block, placed freely in the block; or a card held by a frame. Containers of one role are edited together.


Shown#

Shown = Omit<LivePlacement, "id">

Defined in: editor/src/inspector/properties.ts:158

What the canvas shows of a block: its placement and its drawing, a gesture’s while one runs.

Variables#

STEPS#

const STEPS: { readonly [property in PlaceProperty]: number }

Defined in: editor/src/inspector/properties.ts:88

The step of each property’s spin buttons, stepping keys and wheel.

Functions#

askDeletion()#

askDeletion(ask, __namedParameters): Promise<StyleCommand | SetCommand | RemoveCommand | null>

Defined in: editor/src/inspector/properties.ts:329

Ask question through ask, the focus on Cancel: “Delete all”, offered only where its remove is not null (core would refuse it otherwise, and the question says why), gives that remove; “Hide instead”, offered only where its hide is not null, that command (a virtual card’s set, a root’s style); Cancel or a dismissed dialog null, storing nothing. The one dialog of a deletion that also deletes virtual timelines, on the canvas and in the Properties tab alike.

Parameters#

ask#

Ask

__namedParameters#

DeleteQuestion

Returns#

Promise<StyleCommand | SetCommand | RemoveCommand | null>


bandRows()#

bandRows(subjects, shown): readonly PropertyRow[] | null

Defined in: editor/src/inspector/properties.ts:247

The read-only rows of the band the subjects name when they are exactly one band, read as shown draws it: “Band”, its facet’s word; “Level”, signed, a negative one written with U+2212 MINUS SIGN; “Elements”, the displayed elements it holds directly. A timeline drawn with two lines in one drawing, or in the cards of several groups, has several records under one address; the first, in drawing order, is shown. null for any other selection.

Parameters#

subjects#

readonly Subject[]

shown#

Shown

Returns#

readonly PropertyRow[] | null


belowMinimum()#

belowMinimum(property, minimum): string

Defined in: editor/src/inspector/properties.ts:446

The notice the message bar shows when a size below its minimum is replaced by it.

Parameters#

property#

"width" | "height"

minimum#

number

Returns#

string


commonValue()#

commonValue(geometry, property): number | null | undefined

Defined in: editor/src/inspector/properties.ts:356

The value every element shows for property; undefined when they differ (the field then shows none). Exact: only shown through shownValue.

Parameters#

geometry#

Geometry

property#

"length" | "width" | "height" | "x" | "y" | "scale" | "spacing" | "margin"

Returns#

number | null | undefined


decimalOf()#

decimalOf(text): number | null

Defined in: editor/src/inspector/properties.ts:398

The number of a field’s decimal text, or null for any other text (0x10, Infinity).

Parameters#

text#

string

Returns#

number | null


fieldLabel()#

fieldLabel(role, __namedParameters): string

Defined in: editor/src/inspector/properties.ts:348

A field’s label: the size is the container’s (“container width”, “container height”); a held card names the fields its frame’s place holds as the group’s.

Parameters#

role#

Role

__namedParameters#

PlaceField

Returns#

string


geometryOf()#

geometryOf(block, subjects, shown, editing, pane?): Geometry | null

Defined in: editor/src/inspector/properties.ts:182

The geometry the subjects name: every subject a container with a box of its own in one block, all of one role, each read as shown draws it. A timeline, or a part of a timeline or a group, names the card or frame drawn for it. null for no subject, subjects in several blocks, of different roles, or one without a box (a child drawn in no card of its own, a region, a map, the title). Bands are left out.

Parameters#

block#

Block

subjects#

readonly Subject[]

shown#

Shown

editing#

Editing | null

pane?#

Pane

Returns#

Geometry | null


isSize()#

isSize(property): property is “width” | “height”

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

Whether property is the container’s size, which stands in one row with the Locked checkbox.

Parameters#

property#

string

Returns#

property is “width” | “height”


lockOf()#

lockOf(subjects): LockShown | null

Defined in: editor/src/inspector/properties.ts:785

The lock of the inspected timelines, each read from the store once: null unless every subject is a timeline, its card or a part of either (only a timeline has locked).

Parameters#

subjects#

readonly Subject[]

Returns#

LockShown | null


nameCommand()#

nameCommand(field, text): SetCommand | null

Defined in: editor/src/inspector/properties.ts:735

The set naming field’s target text: an empty text unstates a nullable name; null when the target holds that name already. The store refuses an empty name for the workspace.

Parameters#

field#

NameField

text#

string

Returns#

SetCommand | null


nameOf()#

nameOf(view, subjects, editing): NameField | null

Defined in: editor/src/inspector/properties.ts:715

The name the Properties tab shows first: with nothing selected, the workspace’s at the top level, and in an editor the edited element’s (the address its opening selects, editedSelection); else the one inspected thing’s. Each wherever the schema gives it a name (the block’s manifest, a group, a measure map, a timeline or its card, a conversion map, a region, a flow-control element, a named timestamp, a MatchStamp, a stored elision, a FlowMap made by hand, a virtual timeline or its card; a part names its element’s, a default elision none); a match timestamp’s and an elision’s name may be emptied, a named timestamp’s and a MatchStamp’s not; null for a band, an alignment anchor, a computed FlowMap (which refuses every change), a chunk or several things.

Parameters#

view#

View

subjects#

readonly Subject[]

editing#

Editing | null

Returns#

NameField | null


propertyCommand()#

propertyCommand(view, geometry, property, input): Edit

Defined in: editor/src/inspector/properties.ts:572

The command setting one property of every element from the field’s text: a decimal number, or null for an empty width or height (a block’s size left to its content, a place’s size unstated); anything else is refused before dispatch, at [<first address's key>, property]. null when every element stores that value already: the commit changes nothing, and the store refuses a set that changes nothing. The store’s checks decide everything else.

Parameters#

view#

View

geometry#

Geometry

property#

"length" | "width" | "height" | "x" | "y" | "scale" | "spacing" | "margin"

input#

string

Returns#

Edit


propertyWord()#

propertyWord(property): string

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

The word naming property, a member a set gives, for the viewer.

Parameters#

property#

string

Returns#

string


regionRows()#

regionRows(subjects): readonly PropertyRow[] | null

Defined in: editor/src/inspector/properties.ts:293

The read-only rows of the one region the subjects name, itself or by its label, on its timeline’s axis in pretty text: “Start”, “End” and “Length”, the end less the start, exact in the axis’s number type. null for any other selection, two regions included.

Parameters#

subjects#

readonly Subject[]

Returns#

readonly PropertyRow[] | null


shownOf()#

shownOf(view, block, placement, pane): Shown

Defined in: editor/src/inspector/properties.ts:164

What the canvas shows of block in view: placement while a gesture shows it for the block, else the stored placement drawn at pane.

Parameters#

view#

View

block#

Block

placement#

LivePlacement | null

pane#

Pane | undefined

Returns#

Shown


shownValue()#

shownValue(value): string

Defined in: editor/src/inspector/properties.ts:371

A property’s value as the form shows it: rounded to at most two decimals (the exact double, as toFixed rounds it), trailing zeros trimmed, an empty text for null. Only shown: commands are built from stored values and typed text, never from this.

Parameters#

value#

number | null

Returns#

string


stepCommand()#

stepCommand(view, geometry, property, direction): Edit

Defined in: editor/src/inspector/properties.ts:600

The command stepping property of every element one step of STEPS (direction ±1) from its own exact value (never from the rounded text the field shows; null counts as 0), so elements of different values each step from theirs.

Parameters#

view#

View

geometry#

Geometry

property#

"length" | "width" | "height" | "x" | "y" | "scale" | "spacing" | "margin"

direction#

-1 | 1

Returns#

Edit


stepValue()#

stepValue(value, direction, step): number

Defined in: editor/src/inspector/properties.ts:388

The value direction steps of step from value (null counts as 0), rounded to the decimals of the value and the step, so 1 − 0.1 is 0.9 and 0.7 + 0.1 is 0.8, never the neighbouring double plain arithmetic gives.

Parameters#

value#

number | null

direction#

-1 | 1

step#

number

Returns#

number


virtualDeletionOf()#

virtualDeletionOf(subjects): RemoveCommand | null

Defined in: editor/src/inspector/properties.ts:307

The remove deleting the one virtual timeline the subjects name, by its own address or by its card’s: its statement withdrawn, its FlowMap kept (the Properties tab’s “Delete virtual timeline”; Delete on the canvas only hides a virtual card). Where other virtual timelines are made from it, the arranger’s deleteQuestion asks first (askDeletion). null for any other selection.

Parameters#

subjects#

readonly Subject[]

Returns#

RemoveCommand | null