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#

readonly baseline: number

Defined in: arranger/src/flowOverlay.ts:64

card#

readonly card: PlaceKey

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

The card whose flow control band it shows.

dy#

readonly dy: 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#

readonly elements: readonly number[]

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

The indices, in Drawing.elements, of the band’s elements it shows, in drawing order.

height#

readonly height: number

Defined in: arranger/src/flowOverlay.ts:61

items#

readonly items: readonly OverlayItem[]

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

Their descriptors as drawn, at the band’s place, before dy.

key#

readonly key: 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#

readonly label: 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#

readonly labelX: number

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

Where its label starts and its baseline.

timeline#

readonly timeline: string

Defined in: arranger/src/flowOverlay.ts:52

The child timeline it is shown for.

width#

readonly width: number

Defined in: arranger/src/flowOverlay.ts:60

x#

readonly x: number

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

Its rectangle, in the drawing’s coordinates.

y#

readonly y: 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#

readonly attributes: Readonly<Record<string, string>>

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

index#

readonly index: number

Defined in: arranger/src/flowOverlay.ts:41

tag#

readonly tag: "line" | "rect" | "circle" | "polygon" | "polyline" | "path" | "text"

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

text#

readonly text: string | null

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

Variables#

OVERLAY_GAP#

const OVERLAY_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#

const OVERLAY_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#

Block

drawing#

Drawing

descriptors#

readonly Descriptor[]

editing#

Editing | null

metrics#

FontMetrics

Returns#

FlowOverlay[]


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#

Descriptor

index#

number

Returns#

OverlayItem