commands/topology#
Functions#
lengthProblem()#
lengthProblem(
manifest,at,length,path):Problem|undefined
Defined in: commands/topology.ts:72
Why the timeline at at in manifest cannot take length, if it
cannot. A length change never pushes a parent: the new end stays within
the parent’s known length. Segments fix ends, which keeps a segment
within its line too: a segment ends where its successor starts, and the
last one where its line ends while the line’s length is known; a segment
line ends where its last segment ends while that segment’s length is
known. A named timestamp of the timeline at its end follows the end
(replaceTimeline); any other keeps its place, and the new length refuses
the first, in canonical order, that would lie beyond it
(timestamp_exceeds_length). A stored elision of the timeline ending at
its end follows the end too while the new length lies after its start;
any other keeps its place; the new length refuses the first, in canonical
order, that would end beyond it or, following, would not end after its
start (elision_exceeds_length). A length
of null is always taken: it bounds nothing, and a segment or line of
unknown length ends where its neighbours say.
Parameters#
manifest#
at#
length#
Coordinate | null
path#
readonly PathSegment[]
Returns#
Problem | undefined
moveTimeline()#
Defined in: commands/topology.ts:277
Set where a timeline lies (set parent): null makes it a root, {timeline, offset} a child of that timeline at that bare offset on its axis, placed
by placeChild’s rule, its subtree with it. Refused: unit_mismatch for a
parent of another unit; segment_structure when the moved timeline is a
segment or a segment line, or the new parent a segment line; cycle for
the timeline itself or one of its descendants as the parent;
nested_member when a timeline of the moved subtree and one of its new
ancestors are members of one group. A child that
becomes a root leaves its offset behind (a root’s offset means another
thing); the moved timeline keeps its band order and its card’s stated size,
and settle fits the block’s places to the new drawing.
Parameters#
view#
target#
value#
unknown
path#
readonly PathSegment[]
changes#
Returns#
placeChild()#
placeChild(
manifest,at,child,offset,path):Problem| { }
Defined in: commands/topology.ts:157
Put child under the timeline at at in manifest at offset, a
coordinate on that timeline’s axis, stored normalized. A child reaching past that timeline’s
known end (its end, or its offset when its length is not known) grows the
timeline to that point when it is unlocked and its number type holds the
point exactly, and is refused otherwise (child_exceeds_parent at
path). Only that timeline grows: its new length must be one it may take
(lengthProblem). A timeline of unknown length stays unknown.
Parameters#
manifest#
at#
child#
{ }
offset#
path#
readonly PathSegment[]
Returns#
Problem | { }
setGroups()#
Defined in: commands/topology.ts:388
Set the groups a timeline is a member of (set groups): a list of
distinct group IDs. The timeline joins each group the list names that it
was no member of, as that group’s last member, and leaves each group it
was a member of that the list does not name; the order of the list means
nothing. A timeline may be a member of several groups, but no member of a
group holds or lies inside another (nested_member). A display order a
group states lists the member it gains last and loses the one that
leaves. The lock its new place decides is applied (a segment line that
becomes a member is locked). A child timeline joining a group is given
its origin and length as groupstamps (withDefaultTimestamps), so
that their lines mark its start and end across the frame; only on
joining, so one deleted later stays deleted. A virtual timeline joins and
leaves groups alike; it lies in no tree, so it holds no other member and
no member holds it, and it takes no lock.
Parameters#
view#
target#
value#
unknown
path#
readonly PathSegment[]