Forráskód Böngészése

default display bug fixed

bioinsilico 2 éve
szülő
commit
c705345565

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@rcsb/rcsb-saguaro-3d",
-  "version": "2.2.0-uniprot-msa.5",
+  "version": "2.2.0-uniprot-msa.6",
   "description": "RCSB Molstar/Saguaro Web App",
   "main": "build/dist/app.js",
   "files": [

+ 2 - 1
src/RcsbFvStructure/StructureViewers/MolstarViewer/TrajectoryPresetProvider/AlignmentRepresentationPresetProvider.ts

@@ -23,6 +23,7 @@ import {Mat4} from "molstar/lib/mol-math/linear-algebra";
 import {SymmetryOperator} from "molstar/lib/mol-math/geometry/symmetry-operator";
 import {StateTransforms} from "molstar/lib/mol-plugin-state/transforms";
 import {TagDelimiter} from "@rcsb/rcsb-saguaro-app";
+import {type} from "typedoc/dist/lib/output/themes/default/partials/type";
 
 let refData: Structure|undefined = undefined;
 let refId: {entryId:string;entityId:string;}|undefined = undefined;
@@ -159,7 +160,7 @@ export const AlignmentRepresentationPresetProvider = StructureRepresentationPres
             }
             for (const c of plugin.managers.structure.hierarchy.currentComponentGroups){
                 for (const comp of c) {
-                    if(comp.representations[0].cell.state.isHidden)
+                    if(typeof comp.cell.state.isHidden === "undefined" && comp.representations[0].cell.state.isHidden)
                         plugin.managers.structure.component.toggleVisibility(c);
                 }
             }