Browse Source

viewer props bug fixed

bioinsilico 2 years ago
parent
commit
f9854d62ba

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@rcsb/rcsb-saguaro-3d",
-  "version": "3.0.0-data-provider.28",
+  "version": "3.0.0-data-provider.29",
   "description": "RCSB Molstar/Saguaro Web App",
   "main": "build/dist/app.js",
   "files": [

+ 1 - 1
src/RcsbFvStructure/StructureViewers/MolstarViewer/MolstarManagerFactory.ts

@@ -19,7 +19,7 @@ export class MolstarManagerFactory<P,L> implements ViewerManagerFactoryInterface
         const innerSelectionFlag: DataContainer<boolean> = new DataContainer(false);
         const innerReprChangeFlag: DataContainer<boolean> = new DataContainer(false);
         const viewer = new Viewer(viewerParams.viewerElement, {
-            ...viewerParams,
+            ...viewerParams.viewerProps,
             layoutShowControls:false,
             layoutShowSequence: true,
             canvas3d: {

+ 3 - 0
src/examples/alignment-provider/index.ts

@@ -17,6 +17,9 @@ document.addEventListener("DOMContentLoaded", function(event) {
             externalUiComponents: {
                 replace: []
             }
+        },
+        molstarProps: {
+            showStrucmotifSubmitControls: false
         }
     });
     panel3D.render();