block/ancestors#
Interfaces#
Behind#
Defined in: layout/src/block/ancestors.ts:104
Where an ancestor card lies behind its frame, before its root is laid out (section 8.8).
Properties#
ancestor#
readonlyancestor:AncestorCard
Defined in: layout/src/block/ancestors.ts:105
below#
readonlybelow:Real
Defined in: layout/src/block/ancestors.ts:115
ts (negated: the offsets from the root down to the member), λ, te, xs, LA.
cardAt#
readonlycardAt:number
Defined in: layout/src/block/ancestors.ts:113
displayed#
readonlydisplayed:boolean
Defined in: layout/src/block/ancestors.ts:109
frameAt#
readonlyframeAt:number
Defined in: layout/src/block/ancestors.ts:112
item#
readonlyitem:Item
Defined in: layout/src/block/ancestors.ts:111
The frame’s item, and the index of the card of the member it is aligned to.
key#
readonlykey:object
Defined in: layout/src/block/ancestors.ts:122
Its key, {item: G, member: R}.
item#
readonlyitem:string
member#
readonlymember:string
LA#
readonlyLA:number
Defined in: layout/src/block/ancestors.ts:120
lambda#
readonlylambda:Real
Defined in: layout/src/block/ancestors.ts:117
ref#
readonlyref:ContainerRef
Defined in: layout/src/block/ancestors.ts:106
style#
readonlystyle:Style
Defined in: layout/src/block/ancestors.ts:108
Its style, and whether that style displays it.
te#
readonlyte:Real
Defined in: layout/src/block/ancestors.ts:118
ts#
readonlyts:Real
Defined in: layout/src/block/ancestors.ts:116
xs#
readonlyxs:number
Defined in: layout/src/block/ancestors.ts:119
ElidedRoot#
Defined in: layout/src/block/ancestors.ts:222
The root of an ancestor card laid out alone (section 8.8, step 1): first
without any gap, which its proportion’s σ reads; the elisions the card
draws (section 8.9); and layout, first laid out on their axis, the
card’s own rows.
Properties#
elisions#
readonlyelisions:AncestorElisions
Defined in: layout/src/block/ancestors.ts:224
first#
readonlyfirst:MemberLayout
Defined in: layout/src/block/ancestors.ts:223
layout#
readonlylayout:MemberLayout
Defined in: layout/src/block/ancestors.ts:225
FrameBox#
Defined in: layout/src/block/ancestors.ts:205
A frame’s rectangle in its item coordinates: its left edge, width and height.
Properties#
height#
readonlyheight:number
Defined in: layout/src/block/ancestors.ts:208
width#
readonlywidth:number
Defined in: layout/src/block/ancestors.ts:207
x#
readonlyx:number
Defined in: layout/src/block/ancestors.ts:206
LaidAncestorCard#
Defined in: layout/src/block/ancestors.ts:55
A displayed ancestor card laid out behind its frame, in that frame’s item coordinates: its own rectangle first, then its root’s member drawing, and the axes of the lines that drawing draws.
Properties#
axes#
readonlyaxes: readonlyDrawnAxis[]
Defined in: layout/src/block/ancestors.ts:76
The axes of its root’s member drawing, in item coordinates and in the order of their
elements, each marked with ancestor as the card’s record is.
bottoms#
readonlybottoms: readonlynumber[]
Defined in: layout/src/block/ancestors.ts:86
contentCount#
readonlycontentCount:number
Defined in: layout/src/block/ancestors.ts:83
The number of its contents: its root’s row and its root’s present bands.
elements#
readonlyelements: readonlyDrawnElement[]
Defined in: layout/src/block/ancestors.ts:71
exposure#
readonlyexposure:ElisionExposure
Defined in: layout/src/block/ancestors.ts:88
What it decides of its elisions (section 8.9), in its frame’s item coordinates.
group#
readonlygroup:string
Defined in: layout/src/block/ancestors.ts:59
The group whose frame it lies behind and the member it is aligned to.
groups#
readonlygroups: readonlystring[]
Defined in: layout/src/block/ancestors.ts:65
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 (section 8.8, Drawn once).
height#
readonlyheight:number
Defined in: layout/src/block/ancestors.ts:81
member#
readonlymember:string
Defined in: layout/src/block/ancestors.ts:60
place#
readonlyplace:object
Defined in: layout/src/block/ancestors.ts:70
Where it is drawn: the place and scale of the frame it lies behind, or for a root drawn once the place of its card’s top left corner and its first group’s scale.
scale#
readonlyscale:number
x#
readonlyx:number
y#
readonlyy:number
ref#
readonlyref:ContainerRef
Defined in: layout/src/block/ancestors.ts:57
Its container as core lists it.
rights#
readonlyrights: readonlynumber[]
Defined in: layout/src/block/ancestors.ts:85
The right and bottom edges it draws, its shadow included, for the block’s size.
width#
readonlywidth:number
Defined in: layout/src/block/ancestors.ts:80
x#
readonlyx:number
Defined in: layout/src/block/ancestors.ts:78
Its rectangle in item coordinates.
y#
readonlyy:number
Defined in: layout/src/block/ancestors.ts:79
Functions#
alignedRows()#
alignedRows(
context,block,items,columns,rowsOf):AlignedRows
Defined in: layout/src/block/ancestors.ts:352
The rows the member cards of the block align on the ancestor cards behind
them (section 8.3): for every displayed ancestor card whose root’s line is
drawn and whose target line is drawn in its member’s card, at the block’s
columns columns, the ordinates of its root’s timelines in rowsOf of it,
its root laid out alone on the gaps the card draws, carried, stored and
derived alike, so that every label stack the card draws counts in dr;
for each member card of that frame below that root. A card rowsOf gives
nothing for aligns nothing (behind a row, only a root’s once card does,
section 8.8).
Parameters#
context#
block#
items#
readonly Item[]
columns#
rowsOf#
(at) => MemberLayout | undefined
Returns#
alone()#
alone(
context,block,at):MemberLayout
Defined in: layout/src/block/ancestors.ts:196
R laid out alone (section 8.8, step 1): the one ungrouped root of a block of nothing else, at
LA, without any gap.
Parameters#
context#
block#
at#
Returns#
ancestorCards()#
ancestorCards(
context,block,items,drawings,horizontal,measure,rootOf):LaidAncestorCard[]
Defined in: layout/src/block/ancestors.ts:401
Every displayed ancestor card of the block (section 8.8), frame by frame and
by its members’ display order, block the holder of the block’s own
elements, items the block’s items and drawings their member drawings at
the block’s start s0, rootOf each card’s root laid out alone on its
elided axis (elidedRoots). R is laid out as
the one ungrouped root of a block holding nothing else, at the length LA,
spacing 4 and margin 0, with the name column K and its own start s0',
on its elided axis (section 8.9): the gaps carried from its frame, and as
its mode chooses its stored card elisions or the elisions it derives at
its proportion r, which reads the frame as drawn, L' = L − DG; its card
ends at Ri + K. It is moved so that its line starts at xs + DL, DL the
shrinks of the gaps left of M’s span, and lies at the ordinate of R’s
ancestor line in M’s card, on whichever side of M’s line R’s band
order puts it (section 8.3), or of M’s line where that ancestor line is
not displayed. An ancestor card whose style does not display it, or whose
line or target ordinate is not drawn, is not drawn. Its lines have axes
as any card’s (axesOf over R’s drawing at s0' and LA), moved with
it.
Parameters#
context#
block#
items#
readonly Item[]
drawings#
readonly ItemDrawing[]
horizontal#
measure#
rootOf#
(at) => ElidedRoot | undefined
Returns#
behind()#
behind(
context,block,items,s0):Behind[]
Defined in: layout/src/block/ancestors.ts:136
The ancestor cards of the block in the order of section 8.8, the frames
taken in the order of items (the item order of an arranged block, section
8.5), whether displayed or not, at
the start s0 of the block’s member drawings: for the ancestor card of the
root R aligned to the member M in the frame G, ts the start of R
on M’s axis (the offsets from R down to M, summed and negated), λ
M’s length or reach, te = ts + λR (R’s length or reach), the
proportions us = ts / λ and ue = te / λ, xs = s0 + L × us, xe = s0 + L × ue with L the frame’s length, and LA = xe − xs.
Parameters#
context#
block#
items#
readonly Item[]
s0#
number
Returns#
Behind[]
elidedRoots()#
elidedRoots(
context,block,frames,s0): (at) =>ElidedRoot|undefined
Defined in: layout/src/block/ancestors.ts:238
The roots of the block’s ancestor cards laid out alone on their elided
axes, each once, by the card’s place key: frames the frames of the
block’s items as first laid out, before any member card’s ancestor rows
align on the card behind it (section 8.3), by item index, and s0 the
start of their member drawings. The card’s proportion reads its frame so
laid out, so that the rows the card draws, which the member cards’ rows
then take (alignedRows), depend on nothing those rows move. Undefined
for a card whose frame is not laid out.
Parameters#
context#
block#
frames#
readonly (FrameBox | undefined)[]
s0#
number
Returns#
(at) => ElidedRoot | undefined
elisionsBehind()#
elisionsBehind(
context,at,first,frame,s0,proportion?):AncestorElisions
Defined in: layout/src/block/ancestors.ts:285
The elisions of the ancestor card at (section 8.9), R laid out alone as
first, behind its frame drawn frame wide and high, the block’s member
drawings starting at s0: the gaps carried from its frame, then by its mode
its stored card elisions or the elisions it derives, none in M’s span, the
protected span. Its proportion is the one elision-proportion states or
auto computes (ancestorProportion), unless proportion is given, as for
a root drawn once behind a row (section 8.8), which takes the least of its
ancestor cards’.
Parameters#
context#
at#
first#
frame#
height#
number
width#
number
x#
number
s0#
number
proportion?#
number
Returns#
frameBoxes()#
frameBoxes(
laid): (FrameBox|undefined)[]
Defined in: layout/src/block/ancestors.ts:212
The frame of each laid item, by its index; undefined for a block-held card.
Parameters#
laid#
readonly LaidItem[]
Returns#
(FrameBox | undefined)[]
frameRoom()#
frameRoom(
frame,s0,drawnLength):FrameRoom
Defined in: layout/src/block/ancestors.ts:333
The room a frame frame leaves left of its member drawings, which start at
s0, and right of its members’ drawn length drawnLength (section 8.8,
step 2), in its item coordinates: the widths of the seams of an ancestor
card behind it, so that what lies outside M’s span lies outside the frame.
Parameters#
frame#
width#
number
x#
number
s0#
number
drawnLength#
number
Returns#
lineAt()#
lineAt(
elements,type,address):number|undefined
Defined in: layout/src/block/ancestors.ts:92
The ordinate of the first line element at address of type among elements.
Parameters#
elements#
readonly DrawnElement[]
type#
"timeline" | "child" | "ancestor"
address#
Returns#
number | undefined
protectedSpan()#
protectedSpan(
at):Stretch
Defined in: layout/src/block/ancestors.ts:202
M’s span on R’s axis, from −ts to −ts + λ: the protected span (section 8.9).