member#
Interfaces#
FramedGap#
Defined in: layout/src/member.ts:77
A gap of a frame drawn across a member card: the ordinates of the card’s rows it crosses, and its labels there.
Properties#
gap#
readonlygap:Gap
Defined in: layout/src/member.ts:78
labels#
readonlylabels: readonlyStackLabel[]
Defined in: layout/src/member.ts:80
rows#
readonlyrows: readonlynumber[]
Defined in: layout/src/member.ts:79
MemberDrawn#
Defined in: layout/src/member.ts:84
A member drawing drawn in its item, in item coordinates.
Properties#
ancestorAxes#
readonlyancestorAxes:ReadonlyMap<DrawnElement, {drawnEnd:Real;end:Real|null;start:Real;xEnd:number;xStart:number; }>
Defined in: layout/src/member.ts:111
Where each drawing of its ancestor lines lies on its ancestor’s own axis, by the drawing’s
element, on a carried card of a switched frame (section 8.10); empty on a card drawn as
written (AncestorPiece.axis).
bands#
readonlybands:DrawnBox[]
Defined in: layout/src/member.ts:97
The records of its present bands, its timelines in traversal order, each one’s top to
bottom, held by its card; each range is empty at the end of elements, counted from its
first element.
elements#
readonlyelements:DrawnElement[]
Defined in: layout/src/member.ts:89
Its elements in descriptor order (sections 7.2 and 8.5), its card excluded, its card’s own gaps last, each with its continuations, ellipses and labels.
entries#
readonlyentries:ReadonlyMap<DrawnElement,Entry>
Defined in: layout/src/member.ts:105
The entry each of its drawn lines draws, by the line’s element (LineMarker.entry).
framed#
readonlyframed: readonlyFramedGap[]
Defined in: layout/src/member.ts:91
The gaps of its frame it draws rows of, from the left, which the frame draws (section 8.5).
markers#
readonlymarkers:ReadonlyMap<DrawnElement,AxisMarker>
Defined in: layout/src/member.ts:99
Where a coordinate marker of each of its drawn lines lies, by the line’s element.
marks#
readonlymarks:ReadonlyMap<DrawnElement,AxisWedge>
Defined in: layout/src/member.ts:101
The mark of each of its drawn ancestor lines at the abscissa 0, by the line’s element.
timestamps#
readonlytimestamps:ReadonlyMap<DrawnElement, readonlyAxisTimestamp[]>
Defined in: layout/src/member.ts:103
The named timestamps each of its drawn lines and ancestor lines holds, by the line’s element.
MemberLayout#
Defined in: layout/src/member.ts:52
One member drawing laid out before its horizontal start and its top are
known: what the shared start x0 needs, its height, and its elements and
bands once x0, the name column n and its top are given.
Properties#
centred#
readonlycentred: readonlyCentred[]
Defined in: layout/src/member.ts:56
Its centred labels: their widths and the proportions they are centred on.
chevrons#
readonlychevrons: readonlynumber[]
Defined in: layout/src/member.ts:58
The stroke widths of its drawn ancestor lines that run on to the left.
contentCount#
readonlycontentCount:number
Defined in: layout/src/member.ts:65
The number of its card’s contents (section 1): its root’s row, its root’s present bands and its ancestor bands, one on each side holding an ancestor line.
height#
readonlyheight:number
Defined in: layout/src/member.ts:60
Its height Hm: the content height Hc (section 6.5), the ancestor bands included.
names#
readonlynames: readonlynumber[]
Defined in: layout/src/member.ts:54
The widths of its drawn names, its ancestors’ included.
scope#
readonlyscope:Scope
Defined in: layout/src/member.ts:67
The timeline drawn as a root, traversed, on its card’s elided axis where it has one.
Methods#
drawAt()#
drawAt(
x0,n,top,bottom):MemberDrawn
Defined in: layout/src/member.ts:73
It drawn with the shared start x0, the name column n, its top top and its card’s bottom
bottom, in item coordinates; on its scope’s elided axis where its card draws gaps (sections
3.2 and 8.9), the card’s own gaps then drawn after it.
Parameters#
x0#
number
n#
number
top#
number
bottom#
number
Returns#
Functions#
layoutMember()#
layoutMember(
context,member,holder,card,S,V,frame):MemberLayout
Defined in: layout/src/member.ts:121
Lay out one timeline drawn as a root (sections 3 to 6, and 8.3 for its
ancestors) in the card whose place key is card, of spacing S and
margin V, a member card of frame where one is given, so that the
groupstamps of the frame’s other members cross it (section 6.6), its
line held by holder, the block or its group’s frame (layoutScope).
Parameters#
context#
member#
holder#
card#
S#
number
V#
number
frame#
GroupFrame | null
Returns#
layoutScope()#
layoutScope(
scope,card,aligned):MemberLayout
Defined in: layout/src/member.ts:143
Lay out the timeline traversed as scope, on its elided axis where it
has one, in the card whose place key is card, by the three passes of
section 6.4: every first fit, every row, and the slots of the conversion
maps bands of each row’s lines; the distances, from the deepest rows up,
then the ancestor bands, their rows on the root’s side at least as far
apart as the ordinates aligned of their timelines’ lines in the root’s
drawing alone (section 8.3), and the heights; the ordinates, from the
root’s line down, once drawAt gives the member drawing’s start and top.
Parameters#
scope#
card#
aligned#
ReadonlyMap<string, number> | undefined