elisions#
Interfaces#
AncestorElisions#
Defined in: layout/src/elisions.ts:870
What an ancestor card decides of its elisions (section 8.9).
Properties#
automatic#
readonlyautomatic:boolean
Defined in: layout/src/elisions.ts:873
axis#
readonlyaxis:CardAxis|undefined
Defined in: layout/src/elisions.ts:876
depths#
readonlydepths: readonlynumber[]
Defined in: layout/src/elisions.ts:874
display#
readonlydisplay: readonly ("id"|"name"|"coordinate"|"ellipsis"|"continuation")[]
Defined in: layout/src/elisions.ts:875
mode#
readonlymode:DrawnMode
Defined in: layout/src/elisions.ts:871
proportion#
readonlyproportion:number
Defined in: layout/src/elisions.ts:872
CardElision#
Defined in: layout/src/elisions.ts:520
A stored card elision of a root’s tree: the elision, its timeline’s entry, its stretch on the root’s axis.
Properties#
a#
readonlya:Real
Defined in: layout/src/elisions.ts:523
b#
readonlyb:Real
Defined in: layout/src/elisions.ts:524
elision#
readonlyelision:object
Defined in: layout/src/elisions.ts:521
entry#
readonlyentry:Entry
Defined in: layout/src/elisions.ts:522
CarriedGap#
Defined in: layout/src/elisions.ts:863
A frame’s gap carried into an ancestor card behind it: its stretch there and the frame’s widths.
Properties#
a#
readonlya:Real
Defined in: layout/src/elisions.ts:865
b#
readonlyb:Real
Defined in: layout/src/elisions.ts:866
gap#
readonlygap:Gap
Defined in: layout/src/elisions.ts:864
CrossingRow#
Defined in: layout/src/elisions.ts:1348
A row of a card that a gap may cross (section 6.6): its ordinate and its span.
Properties#
end#
readonlyend:Real|null
Defined in: layout/src/elisions.ts:1352
Its end; null where it is open to the right.
start#
readonlystart:Real
Defined in: layout/src/elisions.ts:1350
y#
readonlyy:number
Defined in: layout/src/elisions.ts:1349
FrameElisions#
Defined in: layout/src/elisions.ts:1079
A frame’s group elisions laid out (section 8.9, Group elisions).
Properties#
gaps#
readonlygaps: readonlyGap[]
Defined in: layout/src/elisions.ts:1082
Its gaps from the left, over proportions of the frame; a and b the proportions as doubles.
mode#
readonlymode:DrawnMode
Defined in: layout/src/elisions.ts:1080
runs#
readonlyruns: readonlyRun[]
Defined in: layout/src/elisions.ts:1083
total#
readonlytotal:number
Defined in: layout/src/elisions.ts:1085
DG, the sum of every shrink.
Methods#
membersOf()#
membersOf(
gap): readonlyobject[]
Defined in: layout/src/elisions.ts:1096
The elided coordinates of each gap at its exact proportions (Gap.exact) on every timeline the
member cards draw (ExposedGap.members), card by card in display order (elidedOnCard).
Parameters#
gap#
Returns#
readonly object[]
viewOf()#
viewOf(
scope):CardAxis
Defined in: layout/src/elisions.ts:1091
The frame’s axis read by the member drawn in scope, each gap over its stretch on the
member’s axis at its exact proportions (Gap.exact): exact on an exact axis, p × λ in
binary64 on a float one.
Parameters#
scope#
Returns#
FrameMember#
Defined in: layout/src/elisions.ts:1074
One member of a frame as its elisions read it.
Properties#
scope#
readonlyscope:Scope
Defined in: layout/src/elisions.ts:1075
FrameRoom#
Defined in: layout/src/elisions.ts:884
The room an ancestor card leaves under its frame on either side of its protected span (section
8.8, step 2): left from the frame’s left edge to the start x0 of its member drawings, right
from the end x0 + L' of its members’ drawn length to its right edge, in its item coordinates.
Properties#
left#
readonlyleft:number
Defined in: layout/src/elisions.ts:885
right#
readonlyright:number
Defined in: layout/src/elisions.ts:886
PlacedGap#
Defined in: layout/src/elisions.ts:313
A gap whose edges its caller places: its stretch, its widths and its edges’ distances from x0.
Properties#
a#
readonlya:Real
Defined in: layout/src/elisions.ts:315
b#
readonlyb:Real
Defined in: layout/src/elisions.ts:316
entry#
readonlyentry:Entry|undefined
Defined in: layout/src/elisions.ts:321
g#
readonlyg:number
Defined in: layout/src/elisions.ts:318
left#
readonlyleft:number
Defined in: layout/src/elisions.ts:319
n#
readonlyn:number
Defined in: layout/src/elisions.ts:317
right#
readonlyright:number
Defined in: layout/src/elisions.ts:320
source#
readonlysource:GapSource
Defined in: layout/src/elisions.ts:314
PlacedSeam#
Defined in: layout/src/elisions.ts:329
A seam whose sides its caller places (section 8.8, Drawn once): its position, whether a
position at it lies right of it (inclusive), and whether the start of a line, of a region and
a jump’s target there lie right of it (startsRight).
Properties#
at#
readonlyat:Real
Defined in: layout/src/elisions.ts:330
inclusive#
readonlyinclusive:boolean
Defined in: layout/src/elisions.ts:331
startsRight#
readonlystartsRight:boolean
Defined in: layout/src/elisions.ts:332
ProportionInputs#
Defined in: layout/src/elisions.ts:1027
What the proportion of an ancestor card reads (section 8.9), in its frame’s item coordinates.
Properties#
drawnLength#
readonlydrawnLength:number
Defined in: layout/src/elisions.ts:1033
EL#
readonlyEL:Real
Defined in: layout/src/elisions.ts:1041
ER#
readonlyER:Real
Defined in: layout/src/elisions.ts:1042
height#
readonlyheight:number
Defined in: layout/src/elisions.ts:1036
L#
readonlyL:number
Defined in: layout/src/elisions.ts:1032
lambda#
readonlylambda:Real
Defined in: layout/src/elisions.ts:1040
The member’s length λ, or its reach, and the root’s stretches EL and ER left and right of it.
scale#
readonlyscale:number
Defined in: layout/src/elisions.ts:1031
The frame’s scale sG, graphical length L and its members’ drawn length L'.
sigma#
readonlysigma:number
Defined in: layout/src/elisions.ts:1038
σ = K + N' + G' of the root’s drawing alone.
view#
readonlyview:View
Defined in: layout/src/elisions.ts:1029
The view’s width VW and height VH.
width#
readonlywidth:number
Defined in: layout/src/elisions.ts:1035
The frame’s width Fw and height Fh as drawn, its requests included, its left edge at 0.
Seam#
Defined in: layout/src/elisions.ts:222
A seam of an ancestor card’s axis (section 8.8, step 2): at the position at of the root’s axis,
at the proportion u, the axis jumps right by width, leaving nothing out. A position at at
lies right of the jump where inclusive (the seam at the protected span’s start) and left of
it otherwise (the seam at its end), so on the side facing the protected span.
Properties#
at#
readonlyat:Real
Defined in: layout/src/elisions.ts:223
inclusive#
readonlyinclusive:boolean
Defined in: layout/src/elisions.ts:226
u#
readonlyu:number
Defined in: layout/src/elisions.ts:224
width#
readonlywidth:number
Defined in: layout/src/elisions.ts:225
Type Aliases#
DrawnMode#
DrawnMode =
"full"|"proportional"|"custom"
Defined in: layout/src/elisions.ts:517
The mode a card or frame draws by: auto read as custom where it has stored ones (section 8.9).
ElisionWidth#
ElisionWidth = {
ratio:number; } | {span:Real; } | {canvas:number; }
Defined in: layout/src/elisions.ts:89
An elision’s width (section 2), each number read as the form states it.
ElisionWord#
ElisionWord = typeof
ELISION_WORDS[number]
Defined in: layout/src/elisions.ts:72
One word of an elision’s display.
StackLabel#
StackLabel =
Omit<TextElement,"x"|"baseline"> &object
Defined in: layout/src/elisions.ts:1368
A label of a gap’s stack (section 6.6): drawn centred on the gap’s middle
just below its ellipsis, its baseline below under the ellipsis’s
ordinate ym, which the card or frame drawing the gap gives.
Type Declaration#
below#
readonlybelow:number
StoredElision#
StoredElision =
NonNullable<ManifestGraphical["elisions"]>[number]
Defined in: layout/src/elisions.ts:83
A stored elision as the manifest holds it.
StoredWidth#
StoredWidth = {
ratio:number; } | {span:Real; } | {canvas:number; } |null
Defined in: layout/src/elisions.ts:1503
What an elision’s width stores, as a manifest writes it; null for the standard gap.
Stretch#
Defined in: layout/src/elisions.ts:86
A stretch [a, b] of an axis, a < b.
WidthForm#
WidthForm =
"standard"|"ratio"|"span"|"canvas"
Defined in: layout/src/elisions.ts:1500
The forms an elision’s width takes (section 2): absent for the standard gap, or one of three.
Variables#
ELISION_WORDS#
constELISION_WORDS: readonly ["ellipsis","name","id","coordinate","continuation"]
Defined in: layout/src/elisions.ts:69
The words of an elision’s display, in their canonical order (section 2).
Functions#
ancestorElisions()#
ancestorElisions(
scope,style,protect,chain,carried,room,proportionOf):AncestorElisions
Defined in: layout/src/elisions.ts:900
The elisions of the ancestor card of the root of scope aligned to a
member whose ancestors are chain (section 8.9): its protected span
protect; the gaps carried from its frame, drawn in every mode; under
custom its stored card elisions, under proportional the elisions it
derives at the proportion r (proportionOf, called only where it is
read) while r < 1, each clipped around the protected span; and the seams
at the protected span’s ends as wide as the room room its frame leaves
there (section 8.8, step 2), so that what lies outside the span lies
outside the frame.
Parameters#
scope#
style#
protect#
chain#
readonly string[]
carried#
readonly CarriedGap[]
room#
proportionOf#
() => number
Returns#
ancestorProportion()#
ancestorProportion(
inputs):number
Defined in: layout/src/elisions.ts:1054
The proportion r of an ancestor card under elision-proportion: auto
(section 8.9): min(1, λ / E × (L' / L), (B − dl) / (L × uL), (B − dr) / (L × uR)), a term left out where its stretch is 0 or, for a side, where
B is no larger than that side’s reach: dl = c + σ and dr = (Fw + K) − c, the card’s line leaving the frame at its edges (section 8.8, step 2).
Parameters#
inputs#
Returns#
number
arrangementSource()#
arrangementSource(
scope,style,start,end,um):GapSource
Defined in: layout/src/elisions.ts:1006
What a gap between two anchors of the root of scope drawn once behind a
row draws (section 8.8, Drawn once): an elision the card derives on its
root, {id: R, part: ["elision"]}, eliding start to end, its label
stack centred at the proportion um, by the card’s elision-display (its
style style), as every derived gap. Where the two anchors leave no room for
a gap the card’s axis has a seam, which draws nothing.
Parameters#
scope#
style#
start#
end#
um#
number
Returns#
atProportion()#
atProportion(
p,lambda):Real
Defined in: layout/src/elisions.ts:155
The position at the proportion p of lambda, exact where lambda is (the
double p at its exact binary value), as a groupstamp’s coordinates are
read (section 2).
Parameters#
p#
number
lambda#
Returns#
cardElisionsOf()#
cardElisionsOf(
scope):CardElision[]
Defined in: layout/src/elisions.ts:534
The stored card elisions of the root of scope (section 8.9, Where): those
lying on the root or a descendant of it that lies in no group (on a placed
virtual card, on its virtual timeline, section 8.10), displayed or not, in
canonical order, each with its stretch carried to the root’s axis
and clipped to the root’s start and end.
Parameters#
scope#
Returns#
carriedGaps()#
carriedGaps(
frame,ts,lambda,numberType):CarriedGap[]
Defined in: layout/src/elisions.ts:1323
The gaps of the frame frame carried into the ancestor card of a root of
number type numberType that starts at ts on the axis of the member it
is aligned to, of length or reach lambda (section 8.9, Carried gaps):
each over the root’s stretch −ts + p × λ to −ts + q × λ, p and q
the exact proportions of the frame’s gap, with the frame’s widths. The
root’s number type decides, never the kind of λ or ts: on an exact
axis the stretch is exact, λ and ts read at their exact values (a
float at its exact binary value); on a float axis it is combined as
section 3.1 combines values, a double.
Parameters#
frame#
FrameElisions | undefined
ts#
lambda#
numberType#
NumberType
Returns#
crossingRows()#
crossingRows(
axis,gap,rows):number[]
Defined in: layout/src/elisions.ts:1359
The ordinates of the rows among rows (in the order of section 8.5) that
cross gap on axis.
Parameters#
axis#
gap#
rows#
readonly CrossingRow[]
Returns#
number[]
depthsOf()#
depthsOf(
style):number[] |"auto"
Defined in: layout/src/elisions.ts:109
The depths of elision-depths: auto, or its positive integers ascending, each once.
Parameters#
style#
Returns#
number[] | "auto"
derivedDisplay()#
derivedDisplay(
style): ("id"|"name"|"coordinate"|"ellipsis"|"continuation")[]
Defined in: layout/src/elisions.ts:103
The display of the elisions a card derives (section 8.9): the words of its
elision-display, none none, their order and repetition meaning nothing.
Parameters#
style#
Returns#
("id" | "name" | "coordinate" | "ellipsis" | "continuation")[]
drawnMode()#
drawnMode(
style,stored):DrawnMode
Defined in: layout/src/elisions.ts:551
auto read as custom where the root has stored card elisions, else as proportional.
Parameters#
style#
stored#
boolean
Returns#
elisionWords()#
elisionWords(
display): ("id"|"name"|"coordinate"|"ellipsis"|"continuation")[]
Defined in: layout/src/elisions.ts:95
The words of display in canonical order, each once; a word that is no elision word left out.
Parameters#
display#
readonly string[]
Returns#
("id" | "name" | "coordinate" | "ellipsis" | "continuation")[]
exposedGap()#
exposedGap(
gap,x1,x2,members):ExposedGap
Defined in: layout/src/elisions.ts:1478
The exposed form of a gap drawn from x1 to x2 in block coordinates.
Parameters#
gap#
x1#
number
x2#
number
members#
readonly object[]
Returns#
frameElisions()#
frameElisions(
members,group,holder,L):FrameElisions|undefined
Defined in: layout/src/elisions.ts:1172
The group elisions of the frame holder of the group group (section 8.9):
the stored elisions whose timelines lie in the group, in canonical order,
each where its gap is displayed and its timeline’s line is drawn in the
frame, while the frame’s elision-mode is auto or custom. Each
elision’s stretch, carried to the axis of the member M it lies under,
becomes the exact proportions [P, Q] of M’s length or reach (the
exact quotients, a float at its exact binary value), clipped to [0, 1];
each draws what of its stretch lies outside every piece drawn before it,
compared exactly, so an end where an earlier piece cut it is that piece’s
exact end (Gap.exact) and the gaps carried into an ancestor card meet
exactly where the frame’s meet. The doubles p and q nearest them place
the gap, at the natural width n = L × q − L × p and the drawn width its
width sets (span read with M’s length); an elision that is not drawn
takes nothing from the elisions after it. A piece’s elided coordinates on
its timeline are the elision’s own start and end where it is the whole
stretch; a cut piece’s, on an exact axis, the exact positions at P and
Q less the timeline’s start, written in its number type, and on a float
axis p × λ less that start in binary64. Undefined where it draws no gap.
Parameters#
members#
readonly FrameMember[]
group#
string
holder#
L#
number
Returns#
FrameElisions | undefined
gapElements()#
gapElements(
gap,x1,x2,yt,yb,rows,labels):DrawnElement[]
Defined in: layout/src/elisions.ts:1378
The elements of one drawing of a gap (sections 6.6, 7.2 and 8.5): its
rectangle from x1 to x2 and yt to yb with its continuations on the
rows rows, where listed; its one ellipsis at the gap’s middle xm and
the middle ym = (yt + yb) / 2 of its height, where the gap is at least 20
wide; then its labels labels, centred on xm just below ym, whether or
not the ellipsis is drawn.
Parameters#
gap#
x1#
number
x2#
number
yt#
number
yb#
number
rows#
readonly number[]
labels#
readonly StackLabel[]
Returns#
outside()#
outside<
T>(a,b,covered): [T,T][]
Defined in: layout/src/elisions.ts:132
What of the stretch [a, b] lies outside every one of covered: none,
one or several stretches, from the left, each with a length; ends compare
exactly, and each end is one of the given values.
Type Parameters#
T#
T extends Real
Parameters#
a#
T
b#
T
covered#
readonly (readonly [T, T])[]
Returns#
[T, T][]
placedAxis()#
placedAxis(
scope,gaps,seams,at):CardAxis
Defined in: layout/src/elisions.ts:344
The axis of a card whose runs each have their own scale (section 8.8, Drawn
once): at(value, after) the distance of a position from x0, on the run
right of a seam where after; gaps from the left, each with its edges;
seams where the axis jumps and leaves nothing out, a position at one lying
right of it where it is inclusive. Each run between two gaps or seams is
linear, and runs states it as L × u − D at its two ends; shrinkBefore
is L × u less the distance, so relative keeps its meaning L × u − D.
Parameters#
scope#
Pick<Scope, "L" | "u" | "lambda" | "rootEntry">
gaps#
readonly PlacedGap[]
seams#
readonly PlacedSeam[]
at#
(value, after) => number
Returns#
rounded()#
rounded(
value,up):bigint
Defined in: layout/src/elisions.ts:807
⌊value⌋ or ⌈value⌉ of a value of the tower, as an integer.
Parameters#
value#
up#
boolean
Returns#
bigint
stackLabelBelow()#
stackLabelBelow(
n,h,a):number
Defined in: layout/src/elisions.ts:1430
The distance of the baseline of a label of a gap’s stack on line n, from
1, below its ellipsis’s ordinate (section 6.6): the dot radius, the label
gap, n − 1 lines h high and the ascent a, of the font size of the
markers band that takes the stack’s room.
Parameters#
n#
number
h#
number
a#
number
Returns#
number
stackLines()#
stackLines(
axis):ReadonlyMap<Gap,number>
Defined in: layout/src/elisions.ts:1450
The line, from 1, on which the label stack of each gap of axis drawing one
starts below its ellipsis (section 6.6): one first fit (section 6.3) of the
stacks, in the order of the gaps from the left, into tiers counted in lines,
each stack one item as many lines high as it has labels, its extent that of
one label as wide as its widest label centred on the gap’s middle xm, L × u − D standing for xm − x0. A tier is as many lines high as its highest
stack, and a stack starts on its tier’s first line: so a stack that would
cover a neighbouring gap’s drawn below the same ellipses moves to the next
level, and no gap widens for it. A gap draws its stack where it is displayed
and lists a label, a frame’s gap across its frame and a card’s gap where its
timeline’s markers band takes the stack’s room (Gap.entry). Memoised by the
axis.
Parameters#
axis#
Returns#
ReadonlyMap<Gap, number>
stackLineStart()#
stackLineStart(
tip,n,h):number
Defined in: layout/src/elisions.ts:1474
The label stack of a gap in a markers band, at its unturned place (section
6.4, Markers): line n of the band’s tiers starting `tip + 13 + 2 + (n −
× h
out from the line,tip = c + w / 2`.
Parameters#
tip#
number
n#
number
h#
number
Returns#
number
ungroupedAxis()#
ungroupedAxis(
scope,mode):CardAxis|undefined
Defined in: layout/src/elisions.ts:643
The axis of an ungrouped root’s card or of a placed virtual card (sections
8.9 and 8.10): under custom, its stored card elisions; none otherwise,
its card having no protected span and deriving nothing. On a placed
virtual card whose runs are drawn once, a card elision’s pieces leave out
every run gap, and the axis keeps the run gaps (runAxisOf). Undefined
where it draws no gap.
Parameters#
scope#
mode#
Returns#
CardAxis | undefined
wholeUnit()#
wholeUnit(
value,numberType):Real
Defined in: layout/src/elisions.ts:802
An integer as a value of numberType: the integer, the double equal to it, or [n, 1].
Parameters#
value#
bigint
numberType#
NumberType
Returns#
widthAs()#
widthAs(
form,gap,L,lambda,numberType):StoredWidth
Defined in: layout/src/elisions.ts:1519
The stored width of the form form that draws the gap gap as wide as
it is drawn (section 8.9, Widths), in the item coordinates of its card or
frame of graphical length L, lambda the length or reach a span is
read with (the root’s in a card, the member’s in a frame) and
numberType the number type of the elision’s timeline: null for the
standard gap; {ratio: g / n}; {span: g × λ / L}, exact on an exact axis
(the doubles at their exact binary values), the nearest integer on an
int axis, ties to even, a double on a float axis; {canvas: g}.
Parameters#
form#
gap#
L#
number
lambda#
numberType#
NumberType