editors#

Interfaces#

EditorChoice#

Defined in: arranger/src/editors.ts:96

One editor a long press offers: the target editorTargetOf would name for it, and its words.

Properties#

label#

readonly label: string

Defined in: arranger/src/editors.ts:99

Flow control of timeline 'Score', Timeline 'Score', Group 'Themes' (core’s addressWords).

target#

readonly target: Address

Defined in: arranger/src/editors.ts:97


EditorToOpen#

Defined in: arranger/src/editors.ts:36

An editor to open: its target and, for the flow-control editor, its kind (else the one the target opens).

Properties#

kind?#

readonly optional kind?: EditorKind

Defined in: arranger/src/editors.ts:38

target#

readonly target: Address

Defined in: arranger/src/editors.ts:37


PressedPoint#

Defined in: arranger/src/editors.ts:42

Where a pointer pressed: the drawing of the hit’s block and the drawing point.

Properties#

drawing#

readonly drawing: Drawing

Defined in: arranger/src/editors.ts:43

point#

readonly point: DrawingPoint

Defined in: arranger/src/editors.ts:44

Functions#

editorOf()#

editorOf(target): EditorToOpen

Defined in: arranger/src/editors.ts:87

The editor an address editorTargetOf named opens: a root’s flow control band ({block, id: R, facet: "flow_control"}) opens the flow-control editor of the root {block, id: R}, every other address the editor its target opens.

Parameters#

target#

Address

Returns#

EditorToOpen


editorsUnder()#

editorsUnder(view, hit, editing, at): readonly EditorChoice[]

Defined in: arranger/src/editors.ts:110

The editors under a long press on hit at the drawing point at, innermost first, each once and each one that opens under editing (openableIn): what a double-click there opens (editorTargetOf: the element’s, the band’s or the card’s own editor), then the card under the point (hit.within, else the card hit), then the group of the frame on top under the point (boxAt). Empty inside the flow-control editor.

Parameters#

view#

View

hit#

Hit

editing#

Editing | null

at#

PressedPoint

Returns#

readonly EditorChoice[]


editorTargetOf()#

editorTargetOf(view, hit, editing, at?): Address | null

Defined in: arranger/src/editors.ts:67

The editor target a double-click, a double tap, Enter or the inspector’s Edit button on hit opens, in every view by the same rule: what is hit opens its own editor, and what has none the editor of the card holding it. The block itself opens the block (the bundle editor), a frame its group (the group editor), a timeline’s line, wherever it is drawn, that timeline (so a child’s line the child), and a flow-control element (its line, symbol, fork, arc or label, hit before any band) the flow control band of the root whose tree holds it. A band (bandUnder: with the drawing point at, the band under the pointer, else a band hit) opens the editor of its timeline, a root’s flow control band the flow-control editor of the root (editorOf), named by the band’s own address {block, id: R, facet: "flow_control"}. A free spot of a card opens the card’s timeline; anything else drawn (a name, a label, a region, a stamp, a boundary) what the last drawn card or frame holding it stands for, the innermost where none overlap (hit.within), and nothing (null) when none holds it. Inside the flow-control editor nothing opens. With an editor open, only a target inside the edited element opens (openableIn).

Parameters#

view#

View

hit#

Hit

editing#

Editing | null

at?#

PressedPoint

Returns#

Address | null


editorWords()#

editorWords(view, target): string

Defined in: arranger/src/editors.ts:142

The words of the editor target opens (editorOf): a root’s flow control band Flow control of its root’s words, any other target its own words capitalised (core’s addressWords).

Parameters#

view#

View

target#

Address

Returns#

string