From ea313a442c0161353e399fc6f6ef303d15c02e14 Mon Sep 17 00:00:00 2001 From: Alexander Rose <alexander.rose@weirdbyte.de> Date: Sat, 11 Feb 2023 10:45:09 -0800 Subject: [PATCH] remove pca transform from components ui focus - too distracting --- CHANGELOG.md | 2 ++ src/mol-plugin-ui/structure/components.tsx | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db18619bb..9e8339369 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 d15b498e4..0454a5772 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() { -- GitLab