| 12 | * Allows start/stop control of the animation |
| 13 | */ |
| 14 | export interface AnimationController<P = unknown> { |
| 15 | /** |
| 16 | * The original animation parent. |
| 17 | */ |
| 18 | readonly parent: Element |
| 19 | /** |
| 20 | * A function that enables future animations. |
| 21 | */ |
| 22 | enable: () => void |
| 23 | /** |
| 24 | * A function that disables future animations. |
| 25 | */ |
| 26 | disable: () => void |
| 27 | /** |
| 28 | * A function that returns true if the animations are currently enabled. |
| 29 | */ |
| 30 | isEnabled: () => boolean |
| 31 | /** |
| 32 | * (Svelte Specific) A function that runs if the parameters are changed. |
| 33 | */ |
| 34 | update?: (newParams: P) => void |
| 35 | /** |
| 36 | * (Svelte Specific) A function that runs when the component is removed from the DOM. |
| 37 | */ |
| 38 | destroy?: () => void |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * A set of all the parents currently being observe. This is the only non weak |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…