Browse Source

remove Animate State Snapshots option

JonStargaryen 3 years ago
parent
commit
13c6d52337
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/viewer/index.ts

+ 2 - 1
src/viewer/index.ts

@@ -40,6 +40,7 @@ import { MembraneOrientationRepresentationProvider } from 'molstar/lib/extension
 import { PLDDTConfidenceScore } from './helpers/plddt-confidence/behavior';
 import { PluginContext } from 'molstar/lib/mol-plugin/context';
 import { TrajectoryHierarchyPresetProvider } from 'molstar/lib/mol-plugin-state/builder/structure/hierarchy-preset';
+import { AnimateStateSnapshots } from 'molstar/lib/mol-plugin-state/animation/built-in/state-snapshots';
 
 /** package version, filled in at bundle build time */
 declare const __RCSB_MOLSTAR_VERSION__: string;
@@ -119,7 +120,7 @@ export class Viewer {
                 ...defaultSpec.behaviors,
                 ...o.extensions.map(e => Extensions[e]),
             ],
-            animations: [...defaultSpec.animations || []],
+            animations: [...defaultSpec.animations?.filter(a => a.name !== AnimateStateSnapshots.name) || []],
             layout: {
                 initial: {
                     isExpanded: o.layoutIsExpanded,