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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
style#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
type#
readonlytype:"alignment_anchor"
Defined in: layout/src/elements.ts:276
x1#
readonlyx1:number
Defined in: layout/src/elements.ts:277
x2#
readonlyx2:number
Defined in: layout/src/elements.ts:279
y1#
readonlyy1:number
Defined in: layout/src/elements.ts:278
y2#
readonlyy2: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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:104
The bundle’s address, {}.
height#
readonlyheight:number
Defined in: layout/src/elements.ts:107
style#
readonlystyle:Style
Defined in: layout/src/elements.ts:105
type#
readonlytype:"block"
Defined in: layout/src/elements.ts:102
width#
readonlywidth: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?#
readonlyoptionalarrangement?:DrawnArrangement
Defined in: layout/src/elements.ts:421
The arrangement it is drawn in (section 1); absent where the placement asks for none.
axes#
readonlyaxes: readonlyDrawnAxis[]
Defined in: layout/src/elements.ts:410
Every line drawn, in the order of its element: what a position on it stands for.
boxes#
readonlyboxes: readonlyDrawnBox[]
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#
readonlyelements: readonlyDrawnElement[]
Defined in: layout/src/elements.ts:412
Every element, the block first, in drawing order.
elisions#
readonlyelisions: readonlyElisionExposure[]
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#
readonlyheight:number
Defined in: layout/src/elements.ts:400
origin#
readonlyorigin:object
Defined in: layout/src/elements.ts:402
The place origin within the block (section 8.4).
x#
readonlyx:number
y#
readonlyy:number
unmapped#
readonlyunmapped: readonlynumber[]
Defined in: layout/src/elements.ts:419
The code points the font has no advance for, measured with its fallback advance, ascending.
width#
readonlywidth: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#
readonlydirection:"vertical"|"horizontal"
Defined in: layout/src/elements.ts:61
refused?#
readonlyoptionalrefused?:ArrangementConflict
Defined in: layout/src/elements.ts:64
roots#
readonlyroots: readonlystring[]
Defined in: layout/src/elements.ts:63
row#
readonlyrow: readonlystring[]
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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
continuations#
readonlycontinuations: readonlynumber[]
Defined in: layout/src/elements.ts:327
The ordinates of its continuations, in the order of its rows (section 8.5).
elided#
readonlyelided: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#
readonlyend:Real
start#
readonlystart:Real
timeline#
readonlytimeline:string
origin#
readonlyorigin: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#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
type#
readonlytype:"elision"
Defined in: layout/src/elements.ts:320
x1#
readonlyx1: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#
readonlyx2:number
Defined in: layout/src/elements.ts:323
yb#
readonlyyb:number
Defined in: layout/src/elements.ts:325
yt#
readonlyyt: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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
r#
readonlyr: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#
readonlyspacing:number
Defined in: layout/src/elements.ts:362
style#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
type#
readonlytype:"ellipsis"
Defined in: layout/src/elements.ts:357
x#
readonlyx:number
Defined in: layout/src/elements.ts:358
y#
readonlyy: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#
readonlybase:Point
Defined in: layout/src/elements.ts:250
baseline#
readonlybaseline:number
Defined in: layout/src/elements.ts:254
corners#
Defined in: layout/src/elements.ts:252
text#
readonlytext:string|null
Defined in: layout/src/elements.ts:255
tip#
readonlytip:Point
Defined in: layout/src/elements.ts:251
tx#
readonlytx: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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
branches#
readonlybranches: readonlyForkBranch[]
Defined in: layout/src/elements.ts:267
point#
readonlypoint:Point
Defined in: layout/src/elements.ts:266
stem#
readonlystem:Point
Defined in: layout/src/elements.ts:265
style#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
type#
readonlytype:"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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
base#
readonlybase:Point
Defined in: layout/src/elements.ts:214
The arrowhead’s base centre Bh, where the shaft ends.
c1#
readonlyc1:Point
Defined in: layout/src/elements.ts:209
c2#
readonlyc2:Point
Defined in: layout/src/elements.ts:210
corners#
Defined in: layout/src/elements.ts:216
The arrowhead’s base corners Bh − 2w × n and Bh + 2w × n.
start#
readonlystart:Point
Defined in: layout/src/elements.ts:208
The curve’s start P0 and its controls C1, C2.
style#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
tip#
readonlytip:Point
Defined in: layout/src/elements.ts:212
The arrowhead’s tip P3, the curve’s end.
type#
readonlytype:"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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
style#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
type#
readonlytype:"leader"
Defined in: layout/src/elements.ts:290
x1#
readonlyx1:number
Defined in: layout/src/elements.ts:291
x2#
readonlyx2:number
Defined in: layout/src/elements.ts:293
y1#
readonlyy1:number
Defined in: layout/src/elements.ts:292
y2#
readonlyy2: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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
cuts#
readonlycuts: readonlyCut[]
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#
readonlyend:LineEnd
Defined in: layout/src/elements.ts:144
gapLines?#
readonlyoptionalgapLines?: readonlyCut[]
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#
readonlystart:LineStart
Defined in: layout/src/elements.ts:143
style#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
type#
readonlytype:"timeline"|"child"|"ancestor"
Defined in: layout/src/elements.ts:137
xe#
readonlyxe:number
Defined in: layout/src/elements.ts:141
The end Xe, or Xr where an ancestor line runs on to the right.
xs#
readonlyxs:number
Defined in: layout/src/elements.ts:139
The start Xs, or Xa where an ancestor line runs on to the left.
y#
readonlyy: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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
cuts#
readonlycuts: readonlyCut[]
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#
readonlyspacing:number
Defined in: layout/src/elements.ts:169
The spacing d of the double line.
style#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
type#
readonlytype:"map"
Defined in: layout/src/elements.ts:163
xe#
readonlyxe:number
Defined in: layout/src/elements.ts:165
xs#
readonlyxs:number
Defined in: layout/src/elements.ts:164
yc#
readonlyyc: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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
corners#
readonlycorners: readonly [WedgeCorner,WedgeCorner]
Defined in: layout/src/elements.ts:306
style#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
type#
readonlytype:"wedge"
Defined in: layout/src/elements.ts:303
x#
readonlyx:number
Defined in: layout/src/elements.ts:304
yt#
readonlyyt: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?#
readonlyoptionalarrangement?: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#
readonlyheight:number|null
Defined in: layout/src/elements.ts:33
length#
readonlylength:number
Defined in: layout/src/elements.ts:24
margin?#
readonlyoptionalmargin?: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#
readonlyplaces: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#
readonlyspacing: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?#
readonlyoptionalview?: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#
readonlywidth: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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
height#
readonlyheight:number
Defined in: layout/src/elements.ts:116
shadowOffset#
readonlyshadowOffset: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#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
type#
readonlytype:"frame"|"card"|"ancestor_card"
Defined in: layout/src/elements.ts:112
width#
readonlywidth:number
Defined in: layout/src/elements.ts:115
x#
readonlyx:number
Defined in: layout/src/elements.ts:113
y#
readonlyy: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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
cuts#
readonlycuts: readonlyCut[]
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#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
type#
readonlytype:"region"
Defined in: layout/src/elements.ts:176
x1#
readonlyx1:number
Defined in: layout/src/elements.ts:178
The x of the region’s start.
x2#
readonlyx2:number
Defined in: layout/src/elements.ts:180
The x of the region’s end.
xm#
readonlyxm:number
Defined in: layout/src/elements.ts:182
The x of its midpoint, where the brace has its tip.
ya#
readonlyya:number
Defined in: layout/src/elements.ts:186
The ordinate of the brace’s tip.
yb#
readonlyyb: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#
readonlyunit:TimeUnit
Defined in: layout/src/elements.ts:91
value#
readonlyvalue: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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
baseline#
readonlybaseline:number
Defined in: layout/src/elements.ts:239
style#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
text#
readonlytext:string
Defined in: layout/src/elements.ts:240
type#
readonlytype:"symbol"
Defined in: layout/src/elements.ts:237
x#
readonlyx: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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
anchor#
readonlyanchor:"start"|"middle"
Defined in: layout/src/elements.ts:370
baseline#
readonlybaseline:number
Defined in: layout/src/elements.ts:369
coordinate?#
readonlyoptionalcoordinate?: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#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
text#
readonlytext:string
Defined in: layout/src/elements.ts:371
type#
readonlytype:"name"|"label"
Defined in: layout/src/elements.ts:367
x#
readonlyx: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#
readonlyaddress:ElementAddress
Defined in: layout/src/elements.ts:96
Inherited from#
Addressed.address
style#
readonlystyle:Style
Defined in: layout/src/elements.ts:97
Inherited from#
Addressed.style
type#
readonlytype:"break"|"section_break"|"barline"|"boundary"|"cross_section"
Defined in: layout/src/elements.ts:225
x#
readonlyx:number
Defined in: layout/src/elements.ts:226
y1#
readonlyy1:number
Defined in: layout/src/elements.ts:227
y2#
readonlyy2: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#
readonlyheight:number
Defined in: layout/src/elements.ts:70
width#
readonlywidth: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#
DrawnElement =
BlockElement|RectElement|LineElement|MapElement|RegionElement|JumpElement|VerticalLineElement|SymbolElement|ForkElement|AnchorElement|LeaderElement|MarkerElement|ElisionElement|EllipsisElement|TextElement
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#
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#
constDEFAULT_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#
constDEFAULT_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