Browse Source

motifs: show everything else with transparency

Sebastian Bittrich 1 year ago
parent
commit
87f7d2f6bb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/viewer/helpers/preset.ts

+ 2 - 2
src/viewer/helpers/preset.ts

@@ -227,7 +227,7 @@ export const RcsbPreset = TrajectoryHierarchyPresetProvider({
             const targets = normalizeTargets(p.targets, structure!.obj.data);
             let selectionExpressions = createSelectionExpressions(p.label || model.data!.entryId, targets);
             const globalExpressions = createSelectionExpressions(p.label || model.data!.entryId);
-            selectionExpressions = selectionExpressions.concat(globalExpressions.map(e => { return e.type === 'cartoon' ? { ...e, alpha: 0.21 } : { ...e, isHidden: true }; }));
+            selectionExpressions = selectionExpressions.concat(globalExpressions.map(e => { return { ...e, alpha: 0.21 }; }));
 
             if (p.color) {
                 selectionExpressions = selectionExpressions.map(e => { return { ...e, color: p.color }; });
@@ -279,7 +279,7 @@ export const RcsbPreset = TrajectoryHierarchyPresetProvider({
             representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, 'auto', presetParams);
         }
 
-        // TODO align with 'motif'
+        // TODO align with 'motif'?
         if ((p.kind === 'feature' || p.kind === 'feature-density') && structure?.obj) {
             let loci = targetToLoci(p.target, structure!.obj.data);
             // if requested: then don't force first residue