edgeValues#
Functions#
axisValue()#
axisValue(
value,timeline):JsonNumber| readonly [JsonNumber,JsonNumber] |undefined
Defined in: arranger/src/edgeValues.ts:66
An exact value on timeline’s own axis as a command writes it; undefined where its number type cannot hold it.
Parameters#
value#
timeline#
{ }
Returns#
JsonNumber | readonly [JsonNumber, JsonNumber] | undefined
exactOn()#
exactOn(
value,timeline):Rational
Defined in: arranger/src/edgeValues.ts:25
A value on timeline’s own axis, as the manifest writes it, read exact.
Parameters#
value#
unknown
timeline#
{ }
Returns#
max()#
max(
a,b):Rational
Defined in: arranger/src/edgeValues.ts:30
The larger and the smaller of two exact values.
Parameters#
a#
b#
Returns#
min()#
min(
a,b):Rational
Defined in: arranger/src/edgeValues.ts:31
Parameters#
a#
b#
Returns#
snappedOn()#
snappedOn(
block,timeline,p,reach,granularity):Rational|null
Defined in: arranger/src/edgeValues.ts:53
The simplest value of timeline’s number type within reach of p on
its own axis (core’s snapOnRow on a spec of that timeline alone: an int
axis the nearest integer); null for a value or reach that is not finite.
Parameters#
block#
string
timeline#
{ }
p#
number
reach#
number
granularity#
Returns#
Rational | null
timelineTargets()#
timelineTargets(
timeline):Rational[]
Defined in: arranger/src/edgeValues.ts:37
The values of timeline’s own axis an edge on it snaps to: its start,
its known end, and the start and the known end of each of its children.
Parameters#
timeline#
{ }
Returns#
Rational[]