flowEditorRows#

Interfaces#

ChunkSpan#

Defined in: arranger/src/flowEditorRows.ts:53

Where an entry of a row is drawn, in pane coordinates: a drawn brace’s span, or a gap’s; index its entry, last the last entry of the run it is drawn once for (index itself outside a run).

Properties#

gap#

readonly gap: boolean

Defined in: arranger/src/flowEditorRows.ts:58

index#

readonly index: number

Defined in: arranger/src/flowEditorRows.ts:54

last#

readonly last: number

Defined in: arranger/src/flowEditorRows.ts:55

x1#

readonly x1: number

Defined in: arranger/src/flowEditorRows.ts:56

x2#

readonly x2: number

Defined in: arranger/src/flowEditorRows.ts:57


FlowPane#

Defined in: arranger/src/flowEditorRows.ts:86

The pane of the flow editor of a root, in the block’s drawing units: where it lies (x, y, from the block drawing’s top left corner: the card’s left edge, below the card), the card’s width, where the card names its rows and starts its line, the width its longest row needs, and its rows.

Properties#

card#

readonly card: object

Defined in: arranger/src/flowEditorRows.ts:91

height#

readonly height: number

width#

readonly width: number

x#

readonly x: number

y#

readonly y: number

key#

readonly key: PlaceKey

Defined in: arranger/src/flowEditorRows.ts:88

The place key of the root’s card the pane folds out under.

lineStart#

readonly lineStart: number

Defined in: arranger/src/flowEditorRows.ts:98

nameX#

readonly nameX: number

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

rows#

readonly rows: readonly PaneRow[]

Defined in: arranger/src/flowEditorRows.ts:100

width#

readonly width: number

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

x#

readonly x: number

Defined in: arranger/src/flowEditorRows.ts:89

y#

readonly y: number

Defined in: arranger/src/flowEditorRows.ts:90


PaneRow#

Defined in: arranger/src/flowEditorRows.ts:62

One row of the pane as drawn.

Properties#

chunks#

readonly chunks: readonly ChunkSpan[]

Defined in: arranger/src/flowEditorRows.ts:74

items#

readonly items: readonly OverlayItem[]

Defined in: arranger/src/flowEditorRows.ts:66

lineEnd#

readonly lineEnd: number

Defined in: arranger/src/flowEditorRows.ts:73

lineStart#

readonly lineStart: number

Defined in: arranger/src/flowEditorRows.ts:72

The line’s ends, in pane coordinates.

lineY#

readonly lineY: number

Defined in: arranger/src/flowEditorRows.ts:70

The ordinate of the line, from the row drawing’s top.

problem#

readonly problem: string | null

Defined in: arranger/src/flowEditorRows.ts:65

Why the FlowMap draws no chunks (it does not resolve); null where it resolves.

row#

readonly row: FlowRow

Defined in: arranger/src/flowEditorRows.ts:63

viewBox#

readonly viewBox: object

Defined in: arranger/src/flowEditorRows.ts:68

The viewBox of the row’s drawing, in the coordinates of its own drawing: pane x 0 at x.

height#

readonly height: number

x#

readonly x: number

y#

readonly y: number

width#

readonly width: number

Defined in: arranger/src/flowEditorRows.ts:76

The width the row needs, from the pane’s left edge.

Variables#

EMPTY_DRAFT#

const EMPTY_DRAFT: 34 = 34

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

The height of the new FlowMap’s row before its first entry, below its head.


PANE_GAP#

const PANE_GAP: 6 = 6

Defined in: arranger/src/flowEditorRows.ts:24

The gap between the card’s bottom edge and the pane, in the block’s drawing units.


PANE_HEAD#

const PANE_HEAD: 18 = 18

Defined in: arranger/src/flowEditorRows.ts:33

The height of the pane’s head (Add +, Recompute), in the block’s drawing units.


PANE_PADDING#

const PANE_PADDING: 8 = 8

Defined in: arranger/src/flowEditorRows.ts:30

The width the pane keeps right of its longest row, in the block’s drawing units.


ROW_HEAD#

const ROW_HEAD: 16 = 16

Defined in: arranger/src/flowEditorRows.ts:27

The height of a row’s head (its chips and controls), in the block’s drawing units.

Functions#

flowPaneOf()#

flowPaneOf(block, drawing, graphical, metrics, root, rows): FlowPane | null

Defined in: arranger/src/flowEditorRows.ts:157

The pane of the flow editor of root in block, drawn as drawing with graphical and metrics, its rows rows: null where the root’s card is not drawn. Each row is drawn by layout as the card of a virtual timeline applying its FlowMap to the root, a block-held card of its own whose graphical length is the root card’s item length times the FlowMap’s played length over the root’s drawn length (so a played and a written stretch of one length are equally long, unless runs or elisions shorten them), at the item’s scale, its line moved to start where the root’s card’s line does.

Parameters#

block#

Block

drawing#

Drawing

graphical#

Graphical

metrics#

FontMetrics

root#

string

rows#

readonly FlowRow[]

Returns#

FlowPane | null


paneHeight()#

paneHeight(pane, emptyDraft): number

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

The pane’s height in the block’s drawing units: its head, each row’s head and drawing, and the new FlowMap’s empty row where one is open (emptyDraft).

Parameters#

pane#

FlowPane

emptyDraft#

boolean

Returns#

number