Browse Source

update CHANGELOG + cleanup

JonStargaryen 3 years ago
parent
commit
607bca92cd
2 changed files with 2 additions and 21 deletions
  1. 2 1
      CHANGELOG.md
  2. 0 20
      src/viewer/helpers/model.ts

+ 2 - 1
CHANGELOG.md

@@ -5,7 +5,8 @@
 ## [2.0.0]
 ### Breaking changes
 - `loadStructureFromData()` is not async anymore
-- removed `pluginCall()` and `getPlugin()` - use `plugin()` getter instead
+- Removed `pluginCall()` and `getPlugin()` - use `plugin()` getter instead
+- Signature changes to `setFocus()`, `select()`, `clearSelection()`, and `createComponent()`: effectively the overloaded methods were replaced by ones that use `Target` objects to reference residues/ranges
 
 ## [1.7.0] - 2021-06-24
 ### Added

+ 0 - 20
src/viewer/helpers/model.ts

@@ -48,26 +48,6 @@ export class ModelLoader {
         }
     }
 
-    /* async handleTrajectoryWithCustomPreset(data: any, format: BuiltInTrajectoryFormat, config: {props?: PresetProps; matrix?: Mat4; preset?: TrajectoryHierarchyPresetProvider;}) {
-        const trajectory = await this.plugin.builders.structure.parseTrajectory(data, format);
-
-        const selector = await this.plugin.builders.structure.hierarchy.applyPreset(trajectory, config?.preset ?? RcsbPreset, {
-            preset: config.props || { kind: 'standard', assemblyId: '' }
-        });
-
-        if (config?.matrix && selector?.structureProperties) {
-            const params = {
-                transform: {
-                    name: 'matrix' as const,
-                    params: { data: matrix, transpose: false }
-                }
-            };
-            const b = this.plugin.state.data.build().to(selector.structureProperties)
-                .insert(StateTransforms.Model.TransformStructureConformation, params);
-            await this.plugin.runTask(this.plugin.state.data.updateTree(b));
-        }
-    } */
-
     constructor(private plugin: PluginContext) {
 
     }