cardAxis#
Interfaces#
AxisBase#
Defined in: arranger/src/cardAxis.ts:40
Where a timeline lies on a container’s axis: the timeline whose
proportions the axis reads (the card’s root, or the frame’s member
holding it), the timeline’s zero on that timeline’s own axis, exact, and
that timeline’s length or reach λ.
Properties#
base#
readonlybase:string
Defined in: arranger/src/cardAxis.ts:41
lambda#
readonlylambda:Real
Defined in: arranger/src/cardAxis.ts:43
zero#
readonlyzero:Rational
Defined in: arranger/src/cardAxis.ts:42
CardAxis#
Defined in: arranger/src/cardAxis.ts:47
The map of one container’s axis (cardAxisOf).
Properties#
exposure#
readonlyexposure:ElisionExposure
Defined in: arranger/src/cardAxis.ts:49
What layout records of the container: its kind, key, mode, gaps and runs.
Methods#
abscissaAt()#
abscissaAt(
u):number|null
Defined in: arranger/src/cardAxis.ts:57
The abscissa, in block coordinates, of the proportion u; null inside a gap.
Parameters#
u#
number
Returns#
number | null
abscissaOf()#
abscissaOf(
timeline,value):number|null
Defined in: arranger/src/cardAxis.ts:61
The abscissa of value of timeline; null inside a gap or off the axis.
Parameters#
timeline#
string
value#
Returns#
number | null
baseOf()#
baseOf(
timeline):AxisBase|null
Defined in: arranger/src/cardAxis.ts:51
Where timeline lies on this axis; null for a timeline the container does not draw.
Parameters#
timeline#
string
Returns#
AxisBase | null
edgeScale()#
edgeScale(
gap,edge):number|null
Defined in: arranger/src/cardAxis.ts:69
Block units per unit of the gap’s timeline on the run beside its edge edge (unitScale).
Parameters#
gap#
edge#
Returns#
number | null
proportionAt()#
proportionAt(
x):number|null
Defined in: arranger/src/cardAxis.ts:59
The proportion drawn at the abscissa x (block coordinates); null inside a gap or beyond the axis.
Parameters#
x#
number
Returns#
number | null
proportionOf()#
proportionOf(
timeline,value):number|null
Defined in: arranger/src/cardAxis.ts:53
The proportion of the axis at value of timeline’s own axis; null where it is not on it.
Parameters#
timeline#
string
value#
Returns#
number | null
runAt()#
runAt(
u):Run|null
Defined in: arranger/src/cardAxis.ts:55
The run drawing the proportion u, its ends included (the first where two meet); null inside a gap.
Parameters#
u#
number
Returns#
Run | null
runBeside()#
runBeside(
gap,edge):Run|null
Defined in: arranger/src/cardAxis.ts:67
The run beside a gap’s edge: the run ending at its start, or the run starting at its end.
Parameters#
gap#
edge#
Returns#
Run | null
unitScale()#
unitScale(
run,timeline):number|null
Defined in: arranger/src/cardAxis.ts:65
Block units per unit of timeline’s axis at full scale on run; null off the axis or for λ 0.
Parameters#
run#
timeline#
string
Returns#
number | null
valueAt()#
valueAt(
timeline,x):number|null
Defined in: arranger/src/cardAxis.ts:63
The value of timeline’s own axis drawn at the abscissa x, as a float; null where none is.
Parameters#
timeline#
string
x#
number
Returns#
number | null
Type Aliases#
GapEdge#
GapEdge =
"start"|"end"
Defined in: arranger/src/cardAxis.ts:32
An edge of a gap: the start of its elided coordinates (its left edge) or their end (its right one).
Functions#
cardAxisAt()#
cardAxisAt(
manifest,drawing,key):CardAxis|null
Defined in: arranger/src/cardAxis.ts:165
The map of the axis of the container under key in drawing; null where none is recorded.
Parameters#
manifest#
drawing#
key#
Returns#
CardAxis | null
cardAxisOf()#
cardAxisOf(
manifest,drawing,exposure):CardAxis
Defined in: arranger/src/cardAxis.ts:140
The map of the axis of the container exposure records in drawing of
manifest, once per drawing and container.
Parameters#
manifest#
drawing#
exposure#
Returns#
exposureAt()#
exposureAt(
drawing,key):ElisionExposure|undefined
Defined in: arranger/src/cardAxis.ts:159
The container drawing records under the place key key; undefined where none draws gaps there.
Parameters#
drawing#
key#
Returns#
ElisionExposure | undefined
zeroOf()#
zeroOf(
manifest,id):Rational
Defined in: arranger/src/cardAxis.ts:78
Where the zero of the timeline id of manifest lies on its root’s axis, exact: the sum of the offsets down to it.
Parameters#
manifest#
id#
string