flowOverlay#
Interfaces#
FlowOverlay#
Defined in: arranger/src/flowOverlay.ts:48
The read-only flow control band shown beside one drawing of a child’s line.
Properties#
baseline#
readonlybaseline:number
Defined in: arranger/src/flowOverlay.ts:64
card#
readonlycard:PlaceKey
Defined in: arranger/src/flowOverlay.ts:54
The card whose flow control band it shows.
dy#
readonlydy:number
Defined in: arranger/src/flowOverlay.ts:66
How far the band’s elements are moved down, from the band’s place to the overlay’s.
elements#
readonlyelements: readonlynumber[]
Defined in: arranger/src/flowOverlay.ts:68
The indices, in Drawing.elements, of the band’s elements it shows, in drawing order.
height#
readonlyheight:number
Defined in: arranger/src/flowOverlay.ts:61
items#
readonlyitems: readonlyOverlayItem[]
Defined in: arranger/src/flowOverlay.ts:70
Their descriptors as drawn, at the band’s place, before dy.
key#
readonlykey:string
Defined in: arranger/src/flowOverlay.ts:50
The card drawing the child’s line and the line’s ordinate, as one text: tells overlays apart.
label#
readonlylabel:string
Defined in: arranger/src/flowOverlay.ts:56
Flow control (from <root>), the root of the child’s tree by its name, else its ID.
labelX#
readonlylabelX:number
Defined in: arranger/src/flowOverlay.ts:63
Where its label starts and its baseline.
timeline#
readonlytimeline:string
Defined in: arranger/src/flowOverlay.ts:52
The child timeline it is shown for.
width#
readonlywidth:number
Defined in: arranger/src/flowOverlay.ts:60
x#
readonlyx:number
Defined in: arranger/src/flowOverlay.ts:58
Its rectangle, in the drawing’s coordinates.
y#
readonlyy:number
Defined in: arranger/src/flowOverlay.ts:59
OverlayItem#
Defined in: arranger/src/flowOverlay.ts:40
One element drawn in an editor overlay (the flow control band beside a child, a row of the flow editor’s pane): its descriptor’s index among its drawing’s descriptors, which tells items apart, its tag, its attributes without its address, its text.
Properties#
attributes#
readonlyattributes:Readonly<Record<string,string>>
Defined in: arranger/src/flowOverlay.ts:43
index#
readonlyindex:number
Defined in: arranger/src/flowOverlay.ts:41
tag#
readonlytag:"line"|"rect"|"circle"|"polygon"|"polyline"|"path"|"text"
Defined in: arranger/src/flowOverlay.ts:42
text#
readonlytext:string|null
Defined in: arranger/src/flowOverlay.ts:44
Variables#
OVERLAY_GAP#
constOVERLAY_GAP:4=4
Defined in: arranger/src/flowOverlay.ts:29
The gap between the child’s row and the overlay, and the overlay’s inner padding.
OVERLAY_LABEL_SIZE#
constOVERLAY_LABEL_SIZE:9=9
Defined in: arranger/src/flowOverlay.ts:26
The font size of the overlay’s label.
Functions#
flowOverlays()#
flowOverlays(
block,drawing,descriptors,editing,metrics):FlowOverlay[]
Defined in: arranger/src/flowOverlay.ts:239
The read-only flow control bands block block shows under editing:
none but in the timeline editor of a child timeline of this block, then
one for each card drawing the child’s line, not its own member card nor
an ancestor card, whose flow control band draws an element on the
child’s stretch.
Parameters#
block#
drawing#
descriptors#
readonly Descriptor[]
editing#
Editing | null
metrics#
FontMetrics
Returns#
overlayItem()#
overlayItem(
descriptor,index):OverlayItem
Defined in: arranger/src/flowOverlay.ts:163
The descriptor descriptor, the indexth of its drawing, as an editor
overlay draws it: its attributes as the DOM receives them, without the
ones writing its address, so it is never read as the element.
Parameters#
descriptor#
index#
number