diff --git a/src/mol-plugin/state/animation/manager.ts b/src/mol-plugin/state/animation/manager.ts index 18bd9e36c972ed3516122e11b8ca3aab9b036a40..8ba64a74932f7372782f4977b506c1f1b671aa5e 100644 --- a/src/mol-plugin/state/animation/manager.ts +++ b/src/mol-plugin/state/animation/manager.ts @@ -11,6 +11,9 @@ import { ParamDefinition as PD } from 'mol-util/param-definition'; export { PluginAnimationManager } +// TODO: pause functionality (this needs to reset if the state tree changes) +// TODO: handle unregistered animations on state restore + class PluginAnimationManager extends PluginComponent<PluginAnimationManager.State> { private map = new Map<string, PluginStateAnimation>(); private animations: PluginStateAnimation[] = []; diff --git a/src/mol-plugin/state/animation/model.ts b/src/mol-plugin/state/animation/model.ts index 050c30600df28f1e41dab29c8b7823bc150a4632..82ba43ca9f3fccb271e97d59388221ea2f02d62b 100644 --- a/src/mol-plugin/state/animation/model.ts +++ b/src/mol-plugin/state/animation/model.ts @@ -9,6 +9,9 @@ import { PluginContext } from 'mol-plugin/context'; export { PluginStateAnimation } +// TODO: helpers for building animations (once more animations are added) +// for example "composite animation" + interface PluginStateAnimation<P extends PD.Params = any, S = any> { name: string, readonly display: { readonly name: string, readonly description?: string },