elements#

Interfaces#

AnchorElement#

Defined in: layout/src/elements.ts:275

The line of an alignment anchor of a named MatchStamp, from (x1, y1) to (x2, y2): from a cross-section segment of its first timestamp to one of its second (section 8.7).

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

type#

readonly type: "alignment_anchor"

Defined in: layout/src/elements.ts:276

x1#

readonly x1: number

Defined in: layout/src/elements.ts:277

x2#

readonly x2: number

Defined in: layout/src/elements.ts:279

y1#

readonly y1: number

Defined in: layout/src/elements.ts:278

y2#

readonly y2: number

Defined in: layout/src/elements.ts:280


BlockElement#

Defined in: layout/src/elements.ts:101

The block itself, the first element of every drawing: its width and height.

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:104

The bundle’s address, {}.

height#

readonly height: number

Defined in: layout/src/elements.ts:107

style#

readonly style: Style

Defined in: layout/src/elements.ts:105

type#

readonly type: "block"

Defined in: layout/src/elements.ts:102

width#

readonly width: number

Defined in: layout/src/elements.ts:106


Drawing#

Defined in: layout/src/elements.ts:398

One block drawn: its size, its containers and lines, and every element in drawing order.

Properties#

arrangement?#

readonly optional arrangement?: DrawnArrangement

Defined in: layout/src/elements.ts:421

The arrangement it is drawn in (section 1); absent where the placement asks for none.

axes#

readonly axes: readonly DrawnAxis[]

Defined in: layout/src/elements.ts:410

Every line drawn, in the order of its element: what a position on it stands for.

boxes#

readonly boxes: readonly DrawnBox[]

Defined in: layout/src/elements.ts:408

Every container drawn: the block first, then in drawing order each frame, each card and each band of the card’s timelines (a timeline drawn twice, a child in one card and a member in another, has two sets of bands under the same addresses, told apart by their line).

elements#

readonly elements: readonly DrawnElement[]

Defined in: layout/src/elements.ts:412

Every element, the block first, in drawing order.

elisions#

readonly elisions: readonly ElisionExposure[]

Defined in: layout/src/elements.ts:417

What each container drawing gaps or able to draw them decides of its elisions (section 8.9): every ungrouped root’s card, every drawn ancestor card and every frame, in drawing order.

height#

readonly height: number

Defined in: layout/src/elements.ts:400

origin#

readonly origin: object

Defined in: layout/src/elements.ts:402

The place origin within the block (section 8.4).

x#

readonly x: number

y#

readonly y: number

unmapped#

readonly unmapped: readonly number[]

Defined in: layout/src/elements.ts:419

The code points the font has no advance for, measured with its fallback advance, ascending.

width#

readonly width: number

Defined in: layout/src/elements.ts:399


DrawnArrangement#

Defined in: layout/src/elements.ts:60

The arrangement a drawing states (section 1): its direction as asked, the IDs of its items in the order they are drawn (for horizontal the row, else the item order), the roots drawn once, top to bottom (none unless drawn side by side), and, where horizontal is refused and the block drawn vertical, the conflict.

Properties#

direction#

readonly direction: "vertical" | "horizontal"

Defined in: layout/src/elements.ts:61

refused?#

readonly optional refused?: ArrangementConflict

Defined in: layout/src/elements.ts:64

roots#

readonly roots: readonly string[]

Defined in: layout/src/elements.ts:63

row#

readonly row: readonly string[]

Defined in: layout/src/elements.ts:62


ElisionElement#

Defined in: layout/src/elements.ts:319

The gap of an elision (sections 6.6 and 8.9): the rectangle from x(a) to x(b) and from the top yt of its card to its bottom yb (across a frame, from the top of its topmost member card to the bottom of its bottommost), filled and not stroked, drawn only where its fill is not none; and its continuations, one on each row that crosses it, at the rows’ ordinates, where its display lists continuation. It carries what it leaves out on the timeline it lies on and where it comes from: a derived elision, which no manifest stores, is read from here.

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

continuations#

readonly continuations: readonly number[]

Defined in: layout/src/elements.ts:327

The ordinates of its continuations, in the order of its rows (section 8.5).

elided#

readonly elided: object

Defined in: layout/src/elements.ts:332

The stretch it leaves out on the timeline it lies on: that timeline’s ID, and the start and end of its elided coordinates on its own axis (a clipped piece’s, a derived elision’s own).

end#

readonly end: Real

start#

readonly start: Real

timeline#

readonly timeline: string

origin#

readonly origin: GapOrigin

Defined in: layout/src/elements.ts:341

A stored elision’s gap, a derived one’s, or a group elision’s gap carried into an ancestor card behind its frame (section 8.9).

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

type#

readonly type: "elision"

Defined in: layout/src/elements.ts:320

x1#

readonly x1: number

Defined in: layout/src/elements.ts:322

x(a) and x(b), its left and right edges on the elided axis (section 3.2).

x2#

readonly x2: number

Defined in: layout/src/elements.ts:323

yb#

readonly yb: number

Defined in: layout/src/elements.ts:325

yt#

readonly yt: number

Defined in: layout/src/elements.ts:324


EllipsisElement#

Defined in: layout/src/elements.ts:356

The ellipsis of an elision on one row that crosses its gap (section 6.6): three filled circles of radius 2 centred at x − 6, x and x + 6 on the row’s ordinate y, x the gap’s middle.

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

r#

readonly r: number

Defined in: layout/src/elements.ts:361

The radius of each dot, 2, and the spacing of their centres, 6, at the element’s scale.

spacing#

readonly spacing: number

Defined in: layout/src/elements.ts:362

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

type#

readonly type: "ellipsis"

Defined in: layout/src/elements.ts:357

x#

readonly x: number

Defined in: layout/src/elements.ts:358

y#

readonly y: number

Defined in: layout/src/elements.ts:359


ForkBranch#

Defined in: layout/src/elements.ts:249

One branch of a volta fork (section 6.4, Forks): its arrow from the fork’s branch point, its shaft to base, the centre of its arrowhead’s base, the arrowhead the triangle tip, corners; its text, the passes as printed, written from tx on baseline, null for a destination without passes.

Properties#

base#

readonly base: Point

Defined in: layout/src/elements.ts:250

baseline#

readonly baseline: number

Defined in: layout/src/elements.ts:254

corners#

readonly corners: readonly [Point, Point]

Defined in: layout/src/elements.ts:252

text#

readonly text: string | null

Defined in: layout/src/elements.ts:255

tip#

readonly tip: Point

Defined in: layout/src/elements.ts:251

tx#

readonly tx: number

Defined in: layout/src/elements.ts:253


ForkElement#

Defined in: layout/src/elements.ts:263

A volta fork (section 6.4, Forks): its stem from stem to its branch point point, then its branches in the order of their places, the first straight on and each further one bending away from the root’s line.

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

branches#

readonly branches: readonly ForkBranch[]

Defined in: layout/src/elements.ts:267

point#

readonly point: Point

Defined in: layout/src/elements.ts:266

stem#

readonly stem: Point

Defined in: layout/src/elements.ts:265

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

type#

readonly type: "fork"

Defined in: layout/src/elements.ts:264


JumpElement#

Defined in: layout/src/elements.ts:205

One arc of a jump, from the jump’s coordinate to the place of one of its destinations, and its arrowhead.

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

base#

readonly base: Point

Defined in: layout/src/elements.ts:214

The arrowhead’s base centre Bh, where the shaft ends.

c1#

readonly c1: Point

Defined in: layout/src/elements.ts:209

c2#

readonly c2: Point

Defined in: layout/src/elements.ts:210

corners#

readonly corners: readonly [Point, Point]

Defined in: layout/src/elements.ts:216

The arrowhead’s base corners Bh − 2w × n and Bh + 2w × n.

start#

readonly start: Point

Defined in: layout/src/elements.ts:208

The curve’s start P0 and its controls C1, C2.

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

tip#

readonly tip: Point

Defined in: layout/src/elements.ts:212

The arrowhead’s tip P3, the curve’s end.

type#

readonly type: "jump"

Defined in: layout/src/elements.ts:206


LeaderElement#

Defined in: layout/src/elements.ts:289

A leader line (section 6.6): a thin line joining a label that its first fit moved beyond its first tier to its element, from (x1, y1) at the element to (x2, y2) where the label’s tier begins. It has the label’s address and is held by the label.

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

type#

readonly type: "leader"

Defined in: layout/src/elements.ts:290

x1#

readonly x1: number

Defined in: layout/src/elements.ts:291

x2#

readonly x2: number

Defined in: layout/src/elements.ts:293

y1#

readonly y1: number

Defined in: layout/src/elements.ts:292

y2#

readonly y2: number

Defined in: layout/src/elements.ts:294


LineElement#

Defined in: layout/src/elements.ts:136

A timeline’s line: the root’s, a child’s, or an ancestor line drawn behind a root (section 8.3).

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

cuts#

readonly cuts: readonly Cut[]

Defined in: layout/src/elements.ts:149

The gaps the line crosses (section 6.6, Elisions), each its left and right edge x(a) and x(b), from the left: the line is drawn in pieces from run to run, nothing of it in a gap.

end#

readonly end: LineEnd

Defined in: layout/src/elements.ts:144

gapLines?#

readonly optional gapLines?: readonly Cut[]

Defined in: layout/src/elements.ts:155

The spans [Xa, Xb] of the gaps of the FlowMap the line draws (section 8.10), from the left, where the line is not drawn and a gap line, the line’s own stroke in a fixed grey, stands in for it (section 6.6, Gap lines); absent on a line that draws none.

start#

readonly start: LineStart

Defined in: layout/src/elements.ts:143

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

type#

readonly type: "timeline" | "child" | "ancestor"

Defined in: layout/src/elements.ts:137

xe#

readonly xe: number

Defined in: layout/src/elements.ts:141

The end Xe, or Xr where an ancestor line runs on to the right.

xs#

readonly xs: number

Defined in: layout/src/elements.ts:139

The start Xs, or Xa where an ancestor line runs on to the left.

y#

readonly y: number

Defined in: layout/src/elements.ts:142


MapElement#

Defined in: layout/src/elements.ts:162

A conversion map: a closed double line from xs to xe (section 6.6).

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

cuts#

readonly cuts: readonly Cut[]

Defined in: layout/src/elements.ts:171

The gaps the map crosses, from the left: its outline is drawn in pieces (section 6.6).

spacing#

readonly spacing: number

Defined in: layout/src/elements.ts:169

The spacing d of the double line.

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

type#

readonly type: "map"

Defined in: layout/src/elements.ts:163

xe#

readonly xe: number

Defined in: layout/src/elements.ts:165

xs#

readonly xs: number

Defined in: layout/src/elements.ts:164

yc#

readonly yc: number

Defined in: layout/src/elements.ts:167

The centre of the closed double line.


MarkerElement#

Defined in: layout/src/elements.ts:302

A wedge (section 6.6, Wedges): its tip at (x, yt) and the two corners of its base, in the order section 6.6 gives them, turned by its style’s rotation about the tip.

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

corners#

readonly corners: readonly [WedgeCorner, WedgeCorner]

Defined in: layout/src/elements.ts:306

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

type#

readonly type: "wedge"

Defined in: layout/src/elements.ts:303

x#

readonly x: number

Defined in: layout/src/elements.ts:304

yt#

readonly yt: number

Defined in: layout/src/elements.ts:305


Placement#

Defined in: layout/src/elements.ts:23

Where and how large the drawing is placed (section 1).

Properties#

arrangement?#

readonly optional arrangement?: ItemArrangement | null

Defined in: layout/src/elements.ts:51

The block’s arrangement (sections 1 and 8.6): its items placed in an order, one under another or side by side, instead of at the x and y their places state; left out or null, each item lies at its place.

height#

readonly height: number | null

Defined in: layout/src/elements.ts:33

length#

readonly length: number

Defined in: layout/src/elements.ts:24

margin?#

readonly optional margin?: number

Defined in: layout/src/elements.ts:31

The block’s margin Vb: empty space above its first item and below its last (sections 8.4 and 8.6), finite, at least 0; left out, 0.

places#

readonly places: Places

Defined in: layout/src/elements.ts:39

The places of the block’s items, by group ID or ungrouped root ID, each group’s holding the sizes, spacings and margins of its members’ cards in its cards, by member ID (section 8.6).

spacing#

readonly spacing: number

Defined in: layout/src/elements.ts:26

The block’s spacing: the gap between its items at their default y (section 8.6).

view?#

readonly optional view?: View

Defined in: layout/src/elements.ts:45

The view {width, height}, the screen area the drawing is meant for, in canvas units at the scale 1, each finite and positive (section 1): it sets the default width of elisions (section 8.9) and nothing else. Left out, the default view.

width#

readonly width: number | null

Defined in: layout/src/elements.ts:32


RectElement#

Defined in: layout/src/elements.ts:111

A group’s frame, a timeline’s card or a root’s ancestor card: a rounded rectangle (section 8).

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

height#

readonly height: number

Defined in: layout/src/elements.ts:116

shadowOffset#

readonly shadowOffset: number

Defined in: layout/src/elements.ts:118

How far a card’s shadow lies to the right and down (section 8.4); 0 for a frame.

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

type#

readonly type: "frame" | "card" | "ancestor_card"

Defined in: layout/src/elements.ts:112

width#

readonly width: number

Defined in: layout/src/elements.ts:115

x#

readonly x: number

Defined in: layout/src/elements.ts:113

y#

readonly y: number

Defined in: layout/src/elements.ts:114


RegionElement#

Defined in: layout/src/elements.ts:175

A region: a brace from its start to its end (section 6.6, Regions).

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

cuts#

readonly cuts: readonly Cut[]

Defined in: layout/src/elements.ts:192

The gaps the brace spans (section 6.6, Elisions), each its left and right edge x(a) and x(b) (x(p) and x(q) across a frame), from the left: each of the brace’s two straight parts leaves out what a gap meets of it, its arms, tip and label drawn whole (brace).

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

type#

readonly type: "region"

Defined in: layout/src/elements.ts:176

x1#

readonly x1: number

Defined in: layout/src/elements.ts:178

The x of the region’s start.

x2#

readonly x2: number

Defined in: layout/src/elements.ts:180

The x of the region’s end.

xm#

readonly xm: number

Defined in: layout/src/elements.ts:182

The x of its midpoint, where the brace has its tip.

ya#

readonly ya: number

Defined in: layout/src/elements.ts:186

The ordinate of the brace’s tip.

yb#

readonly yb: number

Defined in: layout/src/elements.ts:184

The ordinate of the brace’s arms.


ShownCoordinate#

Defined in: layout/src/elements.ts:90

A timestamp’s coordinate as a label carries it: its value on its timeline’s own axis, and that axis’ unit.

Properties#

unit#

readonly unit: TimeUnit

Defined in: layout/src/elements.ts:91

value#

readonly value: Real

Defined in: layout/src/elements.ts:92


SymbolElement#

Defined in: layout/src/elements.ts:236

The symbol of a flow-control element (section 6.4, Symbols): the glyphs of its manifestation, or of its destinations’ side by side, written as one text centred at x on the flow row’s symbol line, baseline its baseline.

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

baseline#

readonly baseline: number

Defined in: layout/src/elements.ts:239

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

text#

readonly text: string

Defined in: layout/src/elements.ts:240

type#

readonly type: "symbol"

Defined in: layout/src/elements.ts:237

x#

readonly x: number

Defined in: layout/src/elements.ts:238


TextElement#

Defined in: layout/src/elements.ts:366

A name or a label: its text, written from x on its baseline, anchored at its start or middle.

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

anchor#

readonly anchor: "start" | "middle"

Defined in: layout/src/elements.ts:370

baseline#

readonly baseline: number

Defined in: layout/src/elements.ts:369

coordinate?#

readonly optional coordinate?: ShownCoordinate

Defined in: layout/src/elements.ts:376

The timestamp’s coordinate on a wedge’s coordinate label and on a stack’s label on an ancestor line that shows a value; absent on every other text.

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

text#

readonly text: string

Defined in: layout/src/elements.ts:371

type#

readonly type: "name" | "label"

Defined in: layout/src/elements.ts:367

x#

readonly x: number

Defined in: layout/src/elements.ts:368


VerticalLineElement#

Defined in: layout/src/elements.ts:224

A vertical line: a break, a section break or a barline of a flow control band, the boundary of a segment, or the cross-section line of a named timestamp, from (x, y1) to (x, y2).

Extends#

  • Addressed

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/elements.ts:96

Inherited from#

Addressed.address

style#

readonly style: Style

Defined in: layout/src/elements.ts:97

Inherited from#

Addressed.style

type#

readonly type: "break" | "section_break" | "barline" | "boundary" | "cross_section"

Defined in: layout/src/elements.ts:225

x#

readonly x: number

Defined in: layout/src/elements.ts:226

y1#

readonly y1: number

Defined in: layout/src/elements.ts:227

y2#

readonly y2: number

Defined in: layout/src/elements.ts:228


View#

Defined in: layout/src/elements.ts:68

A view: the screen area a drawing is meant for, in canvas units at the scale 1 (section 1).

Properties#

height#

readonly height: number

Defined in: layout/src/elements.ts:70

width#

readonly width: number

Defined in: layout/src/elements.ts:69

Type Aliases#

Cut#

Cut = readonly [number, number]

Defined in: layout/src/elements.ts:159

The edges x(a) and x(b) of a gap a row crosses, where its line or outline stops and resumes.


DrawnElement#

Defined in: layout/src/elements.ts:380

Any element of a drawing.


GapOrigin#

GapOrigin = "stored" | "default" | "carried" | "arrangement"

Defined in: layout/src/elements.ts:349

Where a gap comes from (sections 8.8 and 8.9): a stored elision, a derived one, a group elision carried into an ancestor card, or the gap or seam between two anchors of a root drawn once behind a row.


LineEnd#

LineEnd = "arrowhead" | "open" | "circle" | "diamond" | "unknown" | "chevrons" | "none"

Defined in: layout/src/elements.ts:133

How a line ends (sections 6.6 and 8.3): unknown, three chevrons, where its own length is not known; chevrons, a double chevron, where an ancestor line runs on; none, without a mark, where its end lies in a gap and it ends at the gap’s left edge (section 6.6, Elisions).


LineStart#

LineStart = "circle" | "chevrons" | "none"

Defined in: layout/src/elements.ts:125

How a line starts: with its circle, running on in a double chevron (section 8.3), or none where its start lies in a gap and it starts at the gap’s right edge (section 6.6, Elisions).


PathCommand#

PathCommand = { command: "M" | "L"; points: readonly [Point]; } | { command: "Q"; points: readonly [Point, Point]; } | { command: "C"; points: readonly [Point, Point, Point]; }

Defined in: layout/src/elements.ts:199

One path command and its points, in the order they are written.


Point#

Point = readonly [number, number]

Defined in: layout/src/elements.ts:196

A point (x, y) in block-local canvas units.

Variables#

DEFAULT_PLACEMENT#

const DEFAULT_PLACEMENT: Placement

Defined in: layout/src/elements.ts:80

The placement used when none is given: length 400, spacing 8, margin 0, no stated width or height, no places.


DEFAULT_VIEW#

const DEFAULT_VIEW: View

Defined in: layout/src/elements.ts:74

The default view, 1280 × 720 (section 1).

References#

DrawnAxis#

Re-exports DrawnAxis


DrawnBox#

Re-exports DrawnBox


ElementRange#

Re-exports ElementRange


ElisionExposure#

Re-exports ElisionExposure