flowSwitchMotion.svelte#
Classes#
SwitchMotion#
Defined in: arranger/src/flowSwitchMotion.svelte.ts:31
Follows a block’s drawing (drawn) as CardMotions does: each new drawing
whose cards became switched moves their chunks over the canvas’s motion
duration. Made while a component is initialised; its motion stops when the
component is destroyed.
Constructors#
Constructor#
new SwitchMotion(
drawn,reduced,still):SwitchMotion
Defined in: arranger/src/flowSwitchMotion.svelte.ts:37
Parameters#
drawn#
() => Switched
reduced#
() => boolean
still#
() => boolean
Returns#
Methods#
transformOf()#
transformOf(
element,text):string|null
Defined in: arranger/src/flowSwitchMotion.svelte.ts:59
The transform of the element at element of the drawing shown, a text or not; null at rest.
Parameters#
element#
number
text#
boolean
Returns#
string | null
Interfaces#
Switched#
Defined in: arranger/src/flowSwitchMotion.svelte.ts:20
What a block’s motion follows: its manifest and its drawing.
Properties#
drawing#
readonlydrawing:Drawing
Defined in: arranger/src/flowSwitchMotion.svelte.ts:22
manifest#
readonlymanifest:Manifest
Defined in: arranger/src/flowSwitchMotion.svelte.ts:21