diff --git a/CHANGELOG.md b/CHANGELOG.md index db18619bb4de4dd0f95fa80bfcb7af7162777020..9e83393698a619f6d180f3d8375c3b50e829d920 100644 --- a/CHANGELOG.md +++ b/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: diff --git a/src/mol-plugin-ui/structure/components.tsx b/src/mol-plugin-ui/structure/components.tsx index d15b498e434405b2a3dec1e3d8a95d5bb8b83b79..0454a5772864732cb86e42c7ee48a5380e2a60c6 100644 --- a/src/mol-plugin-ui/structure/components.tsx +++ b/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() {