Browse Source

fingers crossed for init fix

JonStargaryen 3 years ago
parent
commit
447177b9b9
3 changed files with 9151 additions and 3 deletions
  1. 4 0
      CHANGELOG.md
  2. 9144 2
      package-lock.json
  3. 3 1
      src/viewer/index.ts

+ 4 - 0
CHANGELOG.md

@@ -2,6 +2,10 @@
 
 [Semantic Versioning](https://semver.org/)
 
+## [1.6.2] - 2021-05-12
+### Bug fixes
+- Clean up viewer init routine
+
 ## [1.6.1] - 2021-05-04
 ### Bug fixes
 - Multiple region selection (only last one was selected) bug fixed

File diff suppressed because it is too large
+ 9144 - 2
package-lock.json


+ 3 - 1
src/viewer/index.ts

@@ -29,7 +29,7 @@ import { ObjectKeys } from 'molstar/lib/mol-util/type-helpers';
 import { PluginLayoutControlsDisplay } from 'molstar/lib/mol-plugin/layout';
 import { SuperposeColorThemeProvider } from './helpers/superpose/color';
 import { encodeStructureData, downloadAsZipFile } from './helpers/export';
-import {ViewerMethods} from './helpers/viewer';
+import { ViewerMethods } from './helpers/viewer';
 import { StructureRef } from 'molstar/lib/mol-plugin-state/manager/structure/hierarchy-state';
 import { StructureRepresentationRegistry } from 'molstar/lib/mol-repr/structure/registry';
 import { Mp4Export } from 'molstar/lib/extensions/mp4-export';
@@ -166,6 +166,8 @@ export class Viewer {
             .then(async () => {
                 // hide 'Membrane Orientation' preset from UI - has to happen 'before' react render, apparently
                 this.plugin.builders.structure.representation.unregisterPreset(MembraneOrientationPreset);
+                this.plugin.representation.structure.registry.remove(MembraneOrientationRepresentationProvider);
+
                 ReactDOM.render(React.createElement(Plugin, { plugin: this.plugin }), element);
 
                 // TODO confirm if this.plugin.canvas3d is still null

Some files were not shown because too many files changed in this diff