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#

readonly id: string

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

owner#

readonly owner: string

Defined in: layout/src/boxes.ts:138

xe#

readonly xe: number

Defined in: layout/src/boxes.ts:140

xs#

readonly xs: number

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

yc#

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

readonly crossSection: object

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

gap#

readonly gap: { 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#

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

readonly y1: number

span.y2#

readonly y2: number

style#

readonly style: Style

The style of a cross-section line of the line’s timeline, drawn or not.

descendants#

readonly descendants: readonly string[]

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#

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

readonly id: string

Defined in: layout/src/boxes.ts:150

length#

readonly length: Real

Defined in: layout/src/boxes.ts:152

offset#

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

readonly id: string

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

line#

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

readonly segment: object

Defined in: layout/src/boxes.ts:274

Its cross-section segment’s ordinates: the card’s top and bottom, its gap included.

y1#

readonly y1: number

y2#

readonly y2: number

x#

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

readonly corners: readonly [WedgeCorner, WedgeCorner]

Defined in: layout/src/boxes.ts:221

style#

readonly style: Style

Defined in: layout/src/boxes.ts:222

yt#

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

readonly address: ElementAddress

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

The address of the timeline drawn, {id: T}.

ancestor?#

readonly optional ancestor?: 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#

readonly group: string

member#

readonly member: string

card#

readonly card: PlaceKey

Defined in: layout/src/boxes.ts:166

The place key of the card whose member drawing draws it.

drawnEnd#

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

readonly end: Real | null

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

Null where the end is not known.

line#

readonly line: number

Defined in: layout/src/boxes.ts:168

The ordinate of its line, telling two drawings of one timeline apart.

maps#

readonly maps: readonly AxisMap[]

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#

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

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

readonly numberType: NumberType

Defined in: layout/src/boxes.ts:173

run?#

readonly optional run?: 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#

readonly segments: readonly AxisSegment[]

Defined in: layout/src/boxes.ts:183

The segments of its timeline when it is a segment line, in canonical order; else none.

start#

readonly start: Real

Defined in: layout/src/boxes.ts:174

timestamps#

readonly timestamps: readonly AxisTimestamp[]

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#

readonly unit: TimeUnit

Defined in: layout/src/boxes.ts:172

xEnd#

readonly xEnd: number

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

The end’s abscissa; where the end is not known, the reach’s.

xStart#

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

readonly address: 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?#

readonly optional ancestor?: 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#

readonly group: string

groups#

readonly groups: readonly string[]

member#

readonly member: string

band?#

readonly optional band?: object

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

A band: its timeline, facet, level, the elements it holds and its timeline’s line.

elements#

readonly elements: number

The number of displayed elements it holds directly; at least 1.

facet#

readonly facet: Facet

level#

readonly level: number

Signed and never 0: 1, 2, … above its timeline’s line, outwards; −1, −2, … below it.

line#

readonly line: number

The ordinate of its timeline’s line, telling two drawings of one timeline apart.

timeline#

readonly timeline: string

card?#

readonly optional card?: 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#

readonly margin: number

size#

readonly size: object

size.height#

readonly height: number

size.width#

readonly width: number

spacing#

readonly spacing: number

stated#

readonly stated: CardPlace

contentCount?#

readonly optional contentCount?: 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#

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

readonly height: number

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

holder#

readonly holder: 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?#

readonly optional item?: 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#

readonly place: Required<ItemPlace>

stated#

readonly stated: ItemPlace

key#

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

readonly kind: "block" | "frame" | "card" | "band"

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

range#

readonly range: ElementRange

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

width#

readonly width: number

Defined in: layout/src/boxes.ts:59

x#

readonly x: number

Defined in: layout/src/boxes.ts:57

y#

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

readonly end: number

Defined in: layout/src/boxes.ts:30

start#

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

readonly address: ElementAddress

Defined in: layout/src/boxes.ts:336

automatic#

readonly automatic: boolean

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

chain#

readonly chain: readonly string[]

Defined in: layout/src/boxes.ts:342

depths#

readonly depths: readonly number[]

Defined in: layout/src/boxes.ts:343

display#

readonly display: readonly ("id" | "name" | "coordinate" | "ellipsis" | "continuation")[]

Defined in: layout/src/boxes.ts:344

drawn#

readonly drawn: "full" | "proportional" | "custom"

Defined in: layout/src/boxes.ts:338

gaps#

readonly gaps: readonly ExposedGap[]

Defined in: layout/src/boxes.ts:345

key#

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

readonly kind: "frame" | "card" | "ancestor_card"

Defined in: layout/src/boxes.ts:333

mode#

readonly mode: "full" | "proportional" | "custom" | "auto"

Defined in: layout/src/boxes.ts:337

place#

readonly place: object

Defined in: layout/src/boxes.ts:348

scale#

readonly scale: number

x#

readonly x: number

y#

readonly y: number

proportion#

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

readonly runs: readonly Run[]

Defined in: layout/src/boxes.ts:346

x0#

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

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

readonly drawn: number

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

end#

readonly end: Real

Defined in: layout/src/boxes.ts:299

members#

readonly members: readonly object[]

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#

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

readonly origin: "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#

readonly start: Real

Defined in: layout/src/boxes.ts:298

timeline#

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

readonly x1: number

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

x2#

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

readonly D: number

Defined in: layout/src/boxes.ts:287

L#

readonly L: number

Defined in: layout/src/boxes.ts:286

u0#

readonly u0: number

Defined in: layout/src/boxes.ts:284

u1#

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

ContainerRef

Returns#

Pick<DrawnBox, "kind" | "key" | "address" | "holder">