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#
readonlygap:boolean
Defined in: arranger/src/flowEditorRows.ts:58
index#
readonlyindex:number
Defined in: arranger/src/flowEditorRows.ts:54
last#
readonlylast:number
Defined in: arranger/src/flowEditorRows.ts:55
x1#
readonlyx1:number
Defined in: arranger/src/flowEditorRows.ts:56
x2#
readonlyx2: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#
readonlycard:object
Defined in: arranger/src/flowEditorRows.ts:91
height#
readonlyheight:number
width#
readonlywidth:number
x#
readonlyx:number
y#
readonlyy:number
key#
readonlykey:PlaceKey
Defined in: arranger/src/flowEditorRows.ts:88
The place key of the root’s card the pane folds out under.
lineStart#
readonlylineStart:number
Defined in: arranger/src/flowEditorRows.ts:98
nameX#
readonlynameX:number
Defined in: arranger/src/flowEditorRows.ts:97
rows#
readonlyrows: readonlyPaneRow[]
Defined in: arranger/src/flowEditorRows.ts:100
width#
readonlywidth:number
Defined in: arranger/src/flowEditorRows.ts:99
x#
readonlyx:number
Defined in: arranger/src/flowEditorRows.ts:89
y#
readonlyy: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#
readonlychunks: readonlyChunkSpan[]
Defined in: arranger/src/flowEditorRows.ts:74
items#
readonlyitems: readonlyOverlayItem[]
Defined in: arranger/src/flowEditorRows.ts:66
lineEnd#
readonlylineEnd:number
Defined in: arranger/src/flowEditorRows.ts:73
lineStart#
readonlylineStart:number
Defined in: arranger/src/flowEditorRows.ts:72
The line’s ends, in pane coordinates.
lineY#
readonlylineY:number
Defined in: arranger/src/flowEditorRows.ts:70
The ordinate of the line, from the row drawing’s top.
problem#
readonlyproblem:string|null
Defined in: arranger/src/flowEditorRows.ts:65
Why the FlowMap draws no chunks (it does not resolve); null where it resolves.
row#
readonlyrow:FlowRow
Defined in: arranger/src/flowEditorRows.ts:63
viewBox#
readonlyviewBox: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#
readonlyheight:number
x#
readonlyx:number
y#
readonlyy:number
width#
readonlywidth:number
Defined in: arranger/src/flowEditorRows.ts:76
The width the row needs, from the pane’s left edge.
Variables#
EMPTY_DRAFT#
constEMPTY_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#
constPANE_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#
constPANE_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#
constPANE_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#
constROW_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#
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#
emptyDraft#
boolean
Returns#
number