boxes#
Interfaces#
AxisMap#
Defined in: layout/src/boxes.ts:136
One map drawn at a line (section 6.4, Conversion maps): its ID, the ID of the timeline it spans (its owner: the line’s own timeline or a segment without a line that joins it), the abscissas of its ends and the ordinate of its centre.
Properties#
id#
readonlyid:string
Defined in: layout/src/boxes.ts:137
owner#
readonlyowner:string
Defined in: layout/src/boxes.ts:138
xe#
readonlyxe:number
Defined in: layout/src/boxes.ts:140
xs#
readonlyxs:number
Defined in: layout/src/boxes.ts:139
yc#
readonlyyc:number
Defined in: layout/src/boxes.ts:141
AxisMarker#
Defined in: layout/src/boxes.ts:235
Where a coordinate marker of a drawn line lies at any abscissa (sections 6.4, Markers, and 6.6, Wedges and Cross-section lines), as the layout draws a named timestamp’s wedge and cross-section line there: the wedge’s tip ordinate and the corners of its base, from the start of the line’s markers band (or from where that band would start were it present), the cross-section line’s ordinates, and what it crosses; each with the style of a wedge or a cross-section line of the line’s timeline that no named timestamp holds.
Properties#
crossSection#
readonlycrossSection:object
Defined in: layout/src/boxes.ts:237
gap#
readonlygap: {y1:number;y2:number; } |null
The gap a cross-section line of the line leaves where the wedge at the abscissa 0 stands,
y1 the smaller: its tip and corners where it is displayed and the vertical meets its body;
null otherwise.
span#
readonlyspan:object
The ordinates of the card drawing the line, y1 its top and y2 its bottom (sections 8.4
and 8.6), which every cross-section line of the line crosses (section 6.6).
span.y1#
readonlyy1:number
span.y2#
readonlyy2:number
style#
readonlystyle:Style
The style of a cross-section line of the line’s timeline, drawn or not.
descendants#
readonlydescendants: readonlystring[]
Defined in: layout/src/boxes.ts:257
The IDs of the timelines its cross-section lines cross besides its own: its displayed descendants drawn with a line of their own in the member drawing, every one within its children band, in traversal order (section 6.1).
wedge#
readonlywedge:AxisWedge
Defined in: layout/src/boxes.ts:236
AxisSegment#
Defined in: layout/src/boxes.ts:149
One segment of a segment line (sections 3.1 and 3.4): its ID, its offset and its length on its segment line’s own axis, the length by the end section 3.4 gives it where its own is not known.
Properties#
id#
readonlyid:string
Defined in: layout/src/boxes.ts:150
length#
readonlylength:Real
Defined in: layout/src/boxes.ts:152
offset#
readonlyoffset:Real
Defined in: layout/src/boxes.ts:151
AxisTimestamp#
Defined in: layout/src/boxes.ts:265
A named timestamp held by a drawn line, its own or an ancestor line’s (section 8.3): its ID, the abscissa of its cross-section line, that line’s style, and the card span its cross-section segment covers (section 8.7).
Properties#
id#
readonlyid:string
Defined in: layout/src/boxes.ts:266
line#
readonlyline:Style|null
Defined in: layout/src/boxes.ts:272
The style of its cross-section line, drawn or not; null where its display does not list
cross_section or the line is not displayed.
segment#
readonlysegment:object
Defined in: layout/src/boxes.ts:274
Its cross-section segment’s ordinates: the card’s top and bottom, its gap included.
y1#
readonlyy1:number
y2#
readonlyy2:number
x#
readonlyx:number
Defined in: layout/src/boxes.ts:267
AxisWedge#
Defined in: layout/src/boxes.ts:219
A wedge at the abscissa 0 of a drawn line (section 6.6, Wedges): its tip’s ordinate, the corners of its base, and its style.
Properties#
corners#
readonlycorners: readonly [WedgeCorner,WedgeCorner]
Defined in: layout/src/boxes.ts:221
style#
readonlystyle:Style
Defined in: layout/src/boxes.ts:222
yt#
readonlyyt:number
Defined in: layout/src/boxes.ts:220
DrawnAxis#
Defined in: layout/src/boxes.ts:162
One line drawn, as the axis of its timeline: the abscissas of its start and end (not of its start circle, chevrons or end mark) and the coordinates on its timeline’s own axis there. An ancestor line is clipped to its member: its start and end are where it meets the member’s start and end, or its own end short of it.
Properties#
address#
readonlyaddress:ElementAddress
Defined in: layout/src/boxes.ts:164
The address of the timeline drawn, {id: T}.
ancestor?#
readonlyoptionalancestor?:object
Defined in: layout/src/boxes.ts:206
Set where the card drawing it is an ancestor card (section 8.8): the group whose frame that
card lies behind and the member it is aligned to, as its DrawnBox.ancestor. Its card’s
place key has a member card’s shape, {item: group, member: root}, but the card is no
member card of the frame.
group#
readonlygroup:string
member#
readonlymember:string
card#
readonlycard:PlaceKey
Defined in: layout/src/boxes.ts:166
The place key of the card whose member drawing draws it.
drawnEnd#
readonlydrawnEnd:Real
Defined in: layout/src/boxes.ts:181
The coordinate at xEnd, on the same scale as every other line of its
member drawing: end where it is known, else the reach’s (section 3.2).
end#
readonlyend:Real|null
Defined in: layout/src/boxes.ts:176
Null where the end is not known.
line#
readonlyline:number
Defined in: layout/src/boxes.ts:168
The ordinate of its line, telling two drawings of one timeline apart.
maps#
readonlymaps: readonlyAxisMap[]
Defined in: layout/src/boxes.ts:185
The maps drawn at its line, in the order they are drawn; none for an ancestor line.
mark#
readonlymark:AxisWedge|null
Defined in: layout/src/boxes.ts:193
The mark of an ancestor line (section 8.3) at the abscissa 0: above the line, its tip on the
line’s edge, with the style of a wedge held by that line that no named timestamp holds; null
for every other line, whose marker holds its wedge.
marker#
readonlymarker:AxisMarker|null
Defined in: layout/src/boxes.ts:187
Where a coordinate marker of its line lies; null for an ancestor line, which draws none.
numberType#
readonlynumberType:NumberType
Defined in: layout/src/boxes.ts:173
run?#
readonlyoptionalrun?:number
Defined in: layout/src/boxes.ts:212
Set from the second full run on of a line drawn in runs between the gaps of its card (sections 3.2 and 8.9): the run’s number from 0, from the left. Every run is its own axis, linear, with its timeline’s address.
segments#
readonlysegments: readonlyAxisSegment[]
Defined in: layout/src/boxes.ts:183
The segments of its timeline when it is a segment line, in canonical order; else none.
start#
readonlystart:Real
Defined in: layout/src/boxes.ts:174
timestamps#
readonlytimestamps: readonlyAxisTimestamp[]
Defined in: layout/src/boxes.ts:199
The named timestamps the line holds, its timeline’s and those of its segments without a line of their own, in the order its markers band places them, or on an ancestor line those it draws (section 8.3), each with the abscissa of its cross-section line, drawn or not.
unit#
readonlyunit:TimeUnit
Defined in: layout/src/boxes.ts:172
xEnd#
readonlyxEnd:number
Defined in: layout/src/boxes.ts:171
The end’s abscissa; where the end is not known, the reach’s.
xStart#
readonlyxStart:number
Defined in: layout/src/boxes.ts:169
DrawnBox#
Defined in: layout/src/boxes.ts:38
One container of a drawing, a box: the block, a group’s frame, a timeline’s card or one of a timeline’s bands, with its rectangle in the drawing’s coordinates (those of the elements).
Properties#
address#
readonlyaddress:ElementAddress
Defined in: layout/src/boxes.ts:50
Its address: {} for the block, {id: G} for a frame, {id: T, part: ["card"]} for every
card of T, {id: T, facet} for a band (the same for every drawing of it).
ancestor?#
readonlyoptionalancestor?:object
Defined in: layout/src/boxes.ts:96
An ancestor card (section 8.8), a card the block holds behind the frame of the group group,
aligned to its member member; it has no place, no item and no card record, and only a
displayed one is recorded. groups lists every group whose frame it lies behind: [group],
or for a root drawn once behind a row every group hanging on it, in the row’s order, group
the first (section 8.8, Drawn once).
group#
readonlygroup:string
groups#
readonlygroups: readonlystring[]
member#
readonlymember:string
band?#
readonlyoptionalband?:object
Defined in: layout/src/boxes.ts:102
A band: its timeline, facet, level, the elements it holds and its timeline’s line.
elements#
readonlyelements:number
The number of displayed elements it holds directly; at least 1.
facet#
readonlyfacet:Facet
level#
readonlylevel:number
Signed and never 0: 1, 2, … above its timeline’s line, outwards; −1, −2, … below it.
line#
readonlyline:number
The ordinate of its timeline’s line, telling two drawings of one timeline apart.
timeline#
readonlytimeline:string
card?#
readonlyoptionalcard?:object
Defined in: layout/src/boxes.ts:83
Any card: its drawn size in item coordinates, its spacing, the gap between its rows and its
bands (a member’s card’s own spacing, a block-held card’s its item’s, else 4), its margin
(likewise, else 0), and what places states for it.
margin#
readonlymargin:number
size#
readonlysize:object
size.height#
readonlyheight:number
size.width#
readonlywidth:number
spacing#
readonlyspacing:number
stated#
readonlystated:CardPlace
contentCount?#
readonlyoptionalcontentCount?:number
Defined in: layout/src/boxes.ts:72
The number of its contents (section 1), absent for a band: the block’s items, a frame’s cards, a card’s rows and bands (its root’s row, its root’s present bands and its ancestor band when it has one).
displayed#
readonlydisplayed:boolean
Defined in: layout/src/boxes.ts:66
Its own rectangle is drawn: always for the block, for a frame or a card unless its style hides it (its range then opens with that rectangle), never for a band.
height#
readonlyheight:number
Defined in: layout/src/boxes.ts:60
holder#
readonlyholder:PlaceKey|null
Defined in: layout/src/boxes.ts:56
The place key of the box holding it: a frame’s for the card of one of its members, the card holding the line of a band’s timeline (for a child, the card of the member drawing it lies in) for a band. Null for the block and for what the block holds directly.
item?#
readonlyoptionalitem?:object
Defined in: layout/src/boxes.ts:77
A frame or a block-held card: its place with every default applied, width and height the
drawn size in item coordinates, before the scale; and the place as stated, {} when none.
place#
readonlyplace:Required<ItemPlace>
stated#
readonlystated:ItemPlace
key#
readonlykey:PlaceKey|null
Defined in: layout/src/boxes.ts:45
Where its place lies in places, which tells every frame and card apart: {item: G} for
the frame of G, {item: G, member: T} for the card of T in it, {item: T} for an
ungrouped root’s card; null for the block and a band.
kind#
readonlykind:"block"|"frame"|"card"|"band"
Defined in: layout/src/boxes.ts:39
range#
readonlyrange:ElementRange
Defined in: layout/src/boxes.ts:61
width#
readonlywidth:number
Defined in: layout/src/boxes.ts:59
x#
readonlyx:number
Defined in: layout/src/boxes.ts:57
y#
readonlyy:number
Defined in: layout/src/boxes.ts:58
ElementRange#
Defined in: layout/src/boxes.ts:28
The half-open range [start, end) of Drawing.elements that a container
emitted: a frame or a card its own rectangle when displayed, then
everything drawn as part of it, in drawing order (section 8.5); the block
every element. A container that is not displayed keeps its range over
what it still emits; a band emits nothing, and its range is empty.
Properties#
end#
readonlyend:number
Defined in: layout/src/boxes.ts:30
start#
readonlystart:number
Defined in: layout/src/boxes.ts:29
ElisionExposure#
Defined in: layout/src/boxes.ts:332
What a container decides of its elisions (section 8.9): an ungrouped
root’s card, an ancestor card or a frame. Its cascaded elision-mode and
the mode it draws by (auto resolved); for an ancestor card the
proportion r its derived elisions take, whether it is computed
(elision-proportion: auto), the depths it may choose from (its member’s
ancestors A1 … Ak, by ID) and those chosen, and the display of its
derived elisions; its gaps from the left and its runs, at x0 of its
member drawings in its item coordinates, the item placed at place in
block coordinates (x = place.x + place.scale × (x0 + (L × u − D))).
Properties#
address#
readonlyaddress:ElementAddress
Defined in: layout/src/boxes.ts:336
automatic#
readonlyautomatic:boolean
Defined in: layout/src/boxes.ts:341
chain#
readonlychain: readonlystring[]
Defined in: layout/src/boxes.ts:342
depths#
readonlydepths: readonlynumber[]
Defined in: layout/src/boxes.ts:343
display#
readonlydisplay: readonly ("id"|"name"|"coordinate"|"ellipsis"|"continuation")[]
Defined in: layout/src/boxes.ts:344
drawn#
readonlydrawn:"full"|"proportional"|"custom"
Defined in: layout/src/boxes.ts:338
gaps#
readonlygaps: readonlyExposedGap[]
Defined in: layout/src/boxes.ts:345
key#
readonlykey:PlaceKey
Defined in: layout/src/boxes.ts:335
The container’s place key: a card’s, an ancestor card’s {item: G, member: R}, a frame’s {item: G}.
kind#
readonlykind:"frame"|"card"|"ancestor_card"
Defined in: layout/src/boxes.ts:333
mode#
readonlymode:"full"|"proportional"|"custom"|"auto"
Defined in: layout/src/boxes.ts:337
place#
readonlyplace:object
Defined in: layout/src/boxes.ts:348
scale#
readonlyscale:number
x#
readonlyx:number
y#
readonlyy:number
proportion#
readonlyproportion:number|null
Defined in: layout/src/boxes.ts:340
The proportion of its derived elisions; 1 where it derives none, null for any but an ancestor card.
runs#
readonlyruns: readonlyRun[]
Defined in: layout/src/boxes.ts:346
x0#
readonlyx0:number
Defined in: layout/src/boxes.ts:347
ExposedGap#
Defined in: layout/src/boxes.ts:291
One gap of a container’s axis as an application reads it (sections 3.2 and 8.9).
Properties#
address#
readonlyaddress:ElementAddress
Defined in: layout/src/boxes.ts:293
Its elision’s address: {id: E} for a stored elision, {id: T, part: ["elision"]} for a derived one.
drawn#
readonlydrawn:number
Defined in: layout/src/boxes.ts:302
end#
readonlyend:Real
Defined in: layout/src/boxes.ts:299
members#
readonlymembers: readonlyobject[]
Defined in: layout/src/boxes.ts:314
Across a frame, the elided coordinates of the gap, at the exact proportions of its piece, on every timeline a member card draws whose span, its ends included, holds the gap: card by card in the frame’s display order, in each the member, then the other timelines of its tree the card draws in traversal order, then the ancestors whose lines it draws from the member’s parent up to its root; each on that timeline’s own axis and written in its number type, null without a value, and every timeline of a card null where its member has none (section 8.9, Group elisions); none in a card.
natural#
readonlynatural:number
Defined in: layout/src/boxes.ts:301
Its natural width n, its drawn width g, and its edges x(a) and x(b), in block coordinates.
origin#
readonlyorigin:"stored"|"default"|"carried"|"arrangement"
Defined in: layout/src/boxes.ts:295
A stored elision’s gap, a derived one’s, or a group elision’s carried into an ancestor card.
start#
readonlystart:Real
Defined in: layout/src/boxes.ts:298
timeline#
readonlytimeline:string
Defined in: layout/src/boxes.ts:297
The timeline the elision lies on, and the elided coordinates of the gap on its own axis.
x1#
readonlyx1:number
Defined in: layout/src/boxes.ts:303
x2#
readonlyx2:number
Defined in: layout/src/boxes.ts:304
Run#
Defined in: layout/src/boxes.ts:283
One run of an elided axis (section 3.2): the stretch of positions drawn at
full scale between two gaps, from the proportion u0 to u1 (of the root
of a card, or of its frame), each at x = x0 + (L × u − D) with the run’s
own scale L and shrink D, x0 the start of the axis’s member drawings.
Properties#
D#
readonlyD:number
Defined in: layout/src/boxes.ts:287
L#
readonlyL:number
Defined in: layout/src/boxes.ts:286
u0#
readonlyu0:number
Defined in: layout/src/boxes.ts:284
u1#
readonlyu1:number
Defined in: layout/src/boxes.ts:285
Functions#
identityOf()#
identityOf(
ref):Pick<DrawnBox,"kind"|"key"|"address"|"holder">
Defined in: layout/src/boxes.ts:119
The identity of the container ref as a record states it, read from
core’s listing of the manifest’s containers: its kind, place key and
address, and its holder’s place key.
Parameters#
ref#
Returns#
Pick<DrawnBox, "kind" | "key" | "address" | "holder">