animation/unfolding.svelte#
Classes#
Unfolding#
Defined in: arranger/src/animation/unfolding.svelte.ts:23
Follows raised, the root the open editor raises (raisedRoot, else
null): a newly raised root unfolds from 0 to 1; a root no longer raised
folds back from where its motion stands to 0 and is shown raised until it
gets there; raising it again on the way reverses from there. Each motion
takes the part of UNFOLD_DURATION its distance is (durationOf), none
while reduced(), so the raise is then a plain switch. A root raised
when the binding is made shows unfolded at once. Made while a component
is initialised: its effects are the component’s, and its motion stops
when the component is destroyed.
Constructors#
Constructor#
new Unfolding(
raised,reduced):Unfolding
Defined in: arranger/src/animation/unfolding.svelte.ts:29
Parameters#
raised#
() => string | null
reduced#
() => boolean
Returns#
Accessors#
moving#
Get Signature#
get moving():
boolean
Defined in: arranger/src/animation/unfolding.svelte.ts:66
Whether the shown root’s cards are moving: shown and not at rest.
Returns#
boolean
progress#
Get Signature#
get progress():
number
Defined in: arranger/src/animation/unfolding.svelte.ts:61
How far the shown root’s cards have unfolded, eased: 0 at the member card’s places, 1 at rest.
Returns#
number
root#
Get Signature#
get root():
string|null
Defined in: arranger/src/animation/unfolding.svelte.ts:54
The root whose ancestor cards are shown raised: the raised one, else the one folding back, else null.
Returns#
string | null