Ver Fonte

Proteopedia wrapper fix

David Sehnal há 5 anos atrás
pai
commit
56cec343e2

+ 6 - 0
src/examples/proteopedia-wrapper/changelog.md

@@ -1,3 +1,9 @@
+== v3.4 ==
+
+* Fixed HET group reset.
+* Updated core.
+* Removed Camera Cliping.
+
 == v3.3 ==
 
 * Camera Clipping.

+ 2 - 2
src/examples/proteopedia-wrapper/index.html

@@ -133,8 +133,8 @@
             addControl('Reset Position', () => PluginWrapper.camera.resetPosition());
             addControl('Toggle Spin', () => PluginWrapper.camera.toggleSpin());
             // Same as "wheel icon" and Viewport options
-            addControl('Clip', () => PluginWrapper.viewport.setSettings({ clip: [33, 66] }));
-            addControl('Reset Clip', () => PluginWrapper.viewport.setSettings({ clip: [1, 100] }));
+            // addControl('Clip', () => PluginWrapper.viewport.setSettings({ clip: [33, 66] }));
+            // addControl('Reset Clip', () => PluginWrapper.viewport.setSettings({ clip: [1, 100] }));
             
             addSeparator();
 

+ 2 - 2
src/examples/proteopedia-wrapper/index.ts

@@ -37,7 +37,7 @@ require('../../mol-plugin/skin/light.scss')
 
 class MolStarProteopediaWrapper {
     static VERSION_MAJOR = 3;
-    static VERSION_MINOR = 3;
+    static VERSION_MINOR = 4;
 
     private _ev = RxEventHelper.create();
 
@@ -335,7 +335,7 @@ class MolStarProteopediaWrapper {
 
     hetGroups = {
         reset: () => {
-            const update = this.state.build().delete(StateElements.HetGroupFocus);
+            const update = this.state.build().delete(StateElements.HetGroupFocusGroup);
             PluginCommands.State.Update.dispatch(this.plugin, { state: this.state, tree: update });
             PluginCommands.Camera.Reset.dispatch(this.plugin, { });
         },