Skip to content
Snippets Groups Projects
Commit a9c4c899 authored by David Sehnal's avatar David Sehnal
Browse files

animation TODOs

parent c03a35ae
No related branches found
No related tags found
No related merge requests found
......@@ -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[] = [];
......
......@@ -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 },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment