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

animation TODOs

parent c03a35ae
Branches
Tags
No related merge requests found
...@@ -11,6 +11,9 @@ import { ParamDefinition as PD } from 'mol-util/param-definition'; ...@@ -11,6 +11,9 @@ import { ParamDefinition as PD } from 'mol-util/param-definition';
export { PluginAnimationManager } 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> { class PluginAnimationManager extends PluginComponent<PluginAnimationManager.State> {
private map = new Map<string, PluginStateAnimation>(); private map = new Map<string, PluginStateAnimation>();
private animations: PluginStateAnimation[] = []; private animations: PluginStateAnimation[] = [];
......
...@@ -9,6 +9,9 @@ import { PluginContext } from 'mol-plugin/context'; ...@@ -9,6 +9,9 @@ import { PluginContext } from 'mol-plugin/context';
export { PluginStateAnimation } 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> { interface PluginStateAnimation<P extends PD.Params = any, S = any> {
name: string, name: string,
readonly display: { readonly name: string, readonly description?: 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.
Please register or to comment