commands/elisions#
Type Aliases#
ElisionWidth#
ElisionWidth =
NonNullable<Elision["width"]>
Defined in: commands/elisions.ts:32
The width of an elision as stored: exactly one of its three forms.
Functions#
readElision()#
readElision(
object,timeline,id,path):Problem| { }
Defined in: commands/elisions.ts:184
An elision given to add, lying on timeline and given the ID id:
{start, end, name?, width?, display?} at path, start and end
required (invalid_value), no other member (unknown_property), its
start and end read (readElisionStart, readElisionEnd) and its stretch
checked (stretchProblem at end), its name a non-empty string
(invalid_value) and its width read by readElisionWidth, each left out
where it is not given, its display read by readDisplay over
ELISION_DISPLAY, the schema’s default (["ellipsis", "name"]) where it is not
given.
Parameters#
object#
timeline#
{ }
id#
string
path#
readonly PathSegment[]
Returns#
Problem | { }
readElisionEnd()#
readElisionEnd(
value,timeline,id,path):Problem|JsonNumber| readonly [JsonNumber,JsonNumber]
Defined in: commands/elisions.ts:79
The end of the elision id lying on timeline, given to a command: a
bare value on the timeline’s own axis, as stored, at or before its
length where that is known (elision_stretch at path); an unknown
length bounds nothing.
Parameters#
value#
unknown
timeline#
{ }
id#
string
path#
readonly PathSegment[]
Returns#
Problem | JsonNumber | readonly [JsonNumber, JsonNumber]
readElisionStart()#
readElisionStart(
value,timeline,id,path):Problem|JsonNumber| readonly [JsonNumber,JsonNumber]
Defined in: commands/elisions.ts:54
The start of the elision id lying on timeline, given to a command:
a bare value on the timeline’s own axis (invalid_coordinate where it
does not read as the axis’s number type), as stored, at or after 0
(elision_stretch at path, worded as TimeToShare words it).
Parameters#
value#
unknown
timeline#
{ }
id#
string
path#
readonly PathSegment[]
Returns#
Problem | JsonNumber | readonly [JsonNumber, JsonNumber]
readElisionWidth()#
readElisionWidth(
value,timeline,path):Problem| { }
Defined in: commands/elisions.ts:126
An elision’s width given to a command, for an elision lying on
timeline: an object stating exactly one of ratio, a number above 0
and at most 1, span, a bare value on the timeline’s own axis above 0,
stored as read, and canvas, a finite number above 0
(invalid_value, non_positive_number; any other member
unknown_property).
Parameters#
value#
unknown
timeline#
{ }
path#
readonly PathSegment[]
Returns#
Problem | { }
stretchProblem()#
stretchProblem(
elision,timeline,path):Problem|undefined
Defined in: commands/elisions.ts:103
Why the stretch of elision, lying on timeline, is refused, if it is:
its end does not lie after its start (elision_stretch at path).
Parameters#
elision#
Pick<Elision, "id" | "start" | "end">
timeline#
{ }
path#
readonly PathSegment[]
Returns#
Problem | undefined