Quellcode durchsuchen

remove pca transform from components ui focus

- too distracting
Alexander Rose vor 2 Jahren
Ursprung
Commit
ea313a442c
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 2 0
      CHANGELOG.md
  2. 2 4
      src/mol-plugin-ui/structure/components.tsx

+ 2 - 0
CHANGELOG.md

@@ -6,6 +6,8 @@ Note that since we don't clearly distinguish between a public and private interf
 
 ## [Unreleased]
 
+- Remove pca transform from components ui focus (too distracting)
+
 ## [v3.31.1] - 2023-02-05
 
 - Improve Component camera focus based on the PCA of the structure and the following rules:

+ 2 - 4
src/mol-plugin-ui/structure/components.tsx

@@ -1,14 +1,12 @@
 /**
- * Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author David Sehnal <david.sehnal@gmail.com>
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
- * @author Ke Ma <mark.ma@rcsb.org>
  */
 
 import * as React from 'react';
 import { getStructureThemeTypes } from '../../mol-plugin-state/helpers/structure-representation-params';
-import { getPcaTransform } from '../../mol-plugin-state/manager/focus-camera/focus-first-residue';
 import { StructureComponentManager } from '../../mol-plugin-state/manager/structure/component';
 import { StructureHierarchyManager } from '../../mol-plugin-state/manager/structure/hierarchy';
 import { StructureComponentRef, StructureRepresentationRef } from '../../mol-plugin-state/manager/structure/hierarchy-state';
@@ -317,7 +315,7 @@ class StructureComponentGroup extends PurePluginUIComponent<{ group: StructureCo
         this.plugin.managers.camera.focusSpheres(this.props.group, e => {
             if (e.cell.state.isHidden) return;
             return e.cell.obj?.data.boundary.sphere;
-        }, getPcaTransform(this.props.group));
+        });
     };
 
     get reprLabel() {