axes#
Interfaces#
CrossSection#
Defined in: layout/src/axes.ts:114
A cross-section line from (x, y1) to (x, y2), in block-local canvas units, and its style.
Properties#
style#
readonlystyle:Style
Defined in: layout/src/axes.ts:118
x#
readonlyx:number
Defined in: layout/src/axes.ts:115
y1#
readonlyy1:number
Defined in: layout/src/axes.ts:116
y2#
readonlyy2:number
Defined in: layout/src/axes.ts:117
CrossSectionSegment#
Defined in: layout/src/axes.ts:190
A cross-section segment (section 8.7): the vertical segment from (x, y1)
to (x, y2), y1 ≤ y2, in block-local canvas units, that a cross-section
line at x spans, drawn or not: from the top of the card drawing its line
to the card’s bottom, its gap included.
Properties#
x#
readonlyx:number
Defined in: layout/src/axes.ts:191
y1#
readonlyy1:number
Defined in: layout/src/axes.ts:192
y2#
readonlyy2:number
Defined in: layout/src/axes.ts:193
LineAxis#
Defined in: layout/src/axes.ts:26
One drawn line of a drawing, in block-local canvas units, with the coordinates it stands for.
Properties#
ancestor?#
readonlyoptionalancestor?:object
Defined in: layout/src/axes.ts:54
Set where its card is an ancestor card (section 8.8), as DrawnAxis.ancestor.
group#
readonlygroup:string
member#
readonlymember:string
card#
readonlycard:PlaceKey
Defined in: layout/src/axes.ts:30
The place key of the card whose member drawing draws it.
drawnLength#
readonlydrawnLength:Real
Defined in: layout/src/axes.ts:46
The coordinates from xStart to xEnd as drawn: length where the end
is known, else up to the reach’s (section 3.2), on the scale of its run:
one scale per run of an elided card, a root drawn once behind a row
taking each anchor’s frame’s (section 8.8, Drawn once).
length#
readonlylength:Real|null
Defined in: layout/src/axes.ts:39
The coordinates from xStart to xEnd: the end less the start; null where the end is not known.
maps#
readonlymaps: readonlyAxisMap[]
Defined in: layout/src/axes.ts:52
The maps drawn at its line, its own and its segments’, in the order they are drawn.
numberType#
readonlynumberType:NumberType
Defined in: layout/src/axes.ts:47
segments#
readonlysegments: readonlyAxisSegment[]
Defined in: layout/src/axes.ts:50
Its timeline’s segments when it is a segment line, each on its own axis.
start#
readonlystart:Real
Defined in: layout/src/axes.ts:37
The coordinate at xStart on its timeline’s own axis: 0, or an ancestor’s where it is clipped.
timeline#
readonlytimeline:string
Defined in: layout/src/axes.ts:28
The ID of the timeline drawn.
unit#
readonlyunit:TimeUnit
Defined in: layout/src/axes.ts:48
xEnd#
readonlyxEnd:number
Defined in: layout/src/axes.ts:35
xStart#
readonlyxStart:number
Defined in: layout/src/axes.ts:34
The abscissas of its start and its end, the reach’s where its end is not known.
y#
readonlyy:number
Defined in: layout/src/axes.ts:32
The ordinate of its line.
WedgeMark#
Defined in: layout/src/axes.ts:122
A wedge’s three points (its tip, then its base’s corners), in block-local canvas units, and its style.
Properties#
points#
Defined in: layout/src/axes.ts:123
style#
readonlystyle:Style
Defined in: layout/src/axes.ts:124
Functions#
abscissaOf()#
abscissaOf(
axis,position):number
Defined in: layout/src/axes.ts:107
The abscissa of the coordinate position on the line axis’s own axis, in
block-local canvas units: xStart + (position − start) / drawnLength × (xEnd − xStart), the share computed on the exact difference and drawn
length, each read as a double; xStart where the drawn length is 0. A
line of unknown length places a coordinate up to its reach alike, and
beyond it on the same scale.
Parameters#
axis#
position#
Returns#
number
crossedLines()#
crossedLines(
drawing,lineKey): readonlystring[]
Defined in: layout/src/axes.ts:243
The lines a cross-section line of the line keyed lineKey in drawing
crosses, as keys of lineAxes: that line’s first, then those of its
timeline’s displayed descendants drawn with a line of their own in the
same member drawing, in traversal order (section 6.1), every one lying in
its children band, each with every full run it is drawn in between
gaps, from the left. A segment without a line of its own is no line: it
lies on its segment line’s axis (LineAxis.segments). None where the key
names no line, or an ancestor line.
Parameters#
drawing#
lineKey#
string
Returns#
readonly string[]
crossSection()#
crossSection(
drawing,lineKey,x):CrossSection[]
Defined in: layout/src/axes.ts:151
The cross-section line at the abscissa x of the line keyed lineKey in
drawing (a key of lineAxes), as a named timestamp of its timeline
lying there draws its own (docs/drawing.md in TimeToShare, section 6.6,
Cross-section lines): across the card drawing the line, from its top to
its bottom, less the gap where the line’s wedge stands (AxisMarker), up
to two pieces from the top, with the style of a cross-section line of
that timeline that no named timestamp holds; none where the key names no
line, or an ancestor line, which draws none.
Parameters#
drawing#
lineKey#
string
x#
number
Returns#
crossSectionSegment()#
crossSectionSegment(
drawing,lineKey,x):CrossSectionSegment|null
Defined in: layout/src/axes.ts:203
The cross-section segment at the abscissa x of the line keyed lineKey
in drawing (a key of lineAxes), as a named timestamp of its timeline
lying there has it (section 8.7): the span of the card drawing the line;
null where the key names no line, or an ancestor line, which draws none.
What anchorLine joins.
Parameters#
drawing#
lineKey#
string
x#
number
Returns#
CrossSectionSegment | null
groupCrossSections()#
groupCrossSections(
drawing,lineKey,x):CrossSection[]
Defined in: layout/src/axes.ts:173
The lines a groupstamp lying at the abscissa x of the line keyed
lineKey in drawing (a key of lineAxes) draws across the frame
holding that line’s card, as a named groupstamp of its timeline lying there
draws them (groupstampElements): the pieces of groupLinePieces, which
leave out the line’s own card and fade the pieces over a member card where
the group gives no coordinate, with the style of a cross-section line of
that timeline that no named timestamp holds; none where the line’s card is
held by no frame, and where the key names no line, or an ancestor line.
Parameters#
drawing#
lineKey#
string
x#
number
Returns#
lineAxes()#
lineAxes(
drawing):ReadonlyMap<string,LineAxis>
Defined in: layout/src/axes.ts:74
Every drawn line of drawing (its axes, in their order) for a hit test,
keyed by the place key text of the card drawing it followed by the address
key of its timeline, so that a timeline drawn in two cards has two entries;
the lines of an ancestor card (section 8.8) come last and are marked so.
Parameters#
drawing#
Returns#
ReadonlyMap<string, LineAxis>
timestampSegments()#
timestampSegments(
axes,id):CrossSectionSegment[]
Defined in: layout/src/axes.ts:221
Every cross-section segment of the named timestamp id among the drawn
lines axes (section 8.7): one in every member drawing that draws its
timeline’s line, or its segment line’s for a segment without a line of its
own, or draws its timeline as an ancestor line and the timestamp on it, in
the order of the lines, which is the order of their descriptors; none in
an ancestor card, which gives an alignment anchor no segment (section
8.8), and none where no line drawn holds it.
Parameters#
axes#
readonly DrawnAxis[]
id#
string
Returns#
wedgeAt()#
wedgeAt(
drawing,lineKey,x):WedgeMark|null
Defined in: layout/src/axes.ts:293
The wedge at the abscissa x of the line keyed lineKey in drawing (a
key of lineAxes), as a named timestamp of its timeline lying there draws
its own (section 6.6, Wedges): in the line’s markers band, from where that
band starts, or would start were it present; with the style of a wedge of
that timeline that no named timestamp holds, turned by that style’s
rotation (a rule on the band’s wedges, never one naming addresses). An
ancestor line (section 8.3), which draws no
named timestamp, has the mark its marks are drawn as (DrawnAxis.mark):
always above the line, its tip on the line’s edge, with the style of a
wedge held by the ancestor line that no named timestamp holds and that
style’s rotation, so that it is faded as the marks are and no rule on
the marks of the member’s start and end changes it. Null where the key
names no line.
Parameters#
drawing#
lineKey#
string
x#
number
Returns#
WedgeMark | null