Browse Source

hide 'Membrane Orientation' representation

JonStargaryen 4 years ago
parent
commit
45974b3daf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/viewer/index.ts

+ 2 - 0
src/viewer/index.ts

@@ -41,6 +41,7 @@ import { Mp4Export } from 'molstar/lib/extensions/mp4-export';
 import { DefaultPluginUISpec, PluginUISpec } from 'molstar/lib/mol-plugin-ui/spec';
 import { PluginUIContext } from 'molstar/lib/mol-plugin-ui/context';
 import { ANVILMembraneOrientation, MembraneOrientationPreset } from 'molstar/lib/extensions/anvil/behavior';
+import { MembraneOrientationRepresentationProvider } from 'molstar/lib/extensions/anvil/representation';
 
 /** package version, filled in at bundle build time */
 declare const __RCSB_MOLSTAR_VERSION__: string;
@@ -169,6 +170,7 @@ export class Viewer {
         this.plugin.init().then(() => {
             // hide 'Membrane Orientation' preset from UI
             this.plugin.builders.structure.representation.unregisterPreset(MembraneOrientationPreset);
+            this.plugin.representation.structure.registry.remove(MembraneOrientationRepresentationProvider);
         });
         ReactDOM.render(React.createElement(Plugin, { plugin: this.plugin }), element);