|
@@ -7,19 +7,15 @@
|
|
|
import { ParamDefinition as PD } from 'molstar/lib/mol-util/param-definition';
|
|
|
import { TrajectoryHierarchyPresetProvider } from 'molstar/lib/mol-plugin-state/builder/structure/hierarchy-preset';
|
|
|
import { PluginStateObject } from 'molstar/lib/mol-plugin-state/objects';
|
|
|
-import { RootStructureDefinition } from 'molstar/lib/mol-plugin-state/helpers/root-structure';
|
|
|
-import { StructureRepresentationPresetProvider } from 'molstar/lib/mol-plugin-state/builder/structure/representation-preset';
|
|
|
import {
|
|
|
StateObjectSelector,
|
|
|
StateObject,
|
|
|
StateTransformer,
|
|
|
StateObjectRef,
|
|
|
- StateTransform
|
|
|
} from 'molstar/lib/mol-state';
|
|
|
import { Mat4, Vec3 } from 'molstar/lib/mol-math/linear-algebra';
|
|
|
-import { MembraneOrientationPreset } from 'molstar/lib/extensions/anvil/behavior';
|
|
|
import { Target } from '@rcsb/rcsb-molstar/build/src/viewer/helpers/selection';
|
|
|
-import { TMDET_STRUCTURE_PRESET_ID } from './tmdet-extension/behavior';
|
|
|
+import { MembraneOrientationPreset } from './tmdet-extension/behavior';
|
|
|
import { TmDetDescriptorCache } from './tmdet-extension/prop';
|
|
|
import { DebugUtil } from './tmdet-extension/debug-utils';
|
|
|
import { StateTransforms } from 'molstar/lib/mol-plugin-state/transforms';
|
|
@@ -136,8 +132,10 @@ export const TmDetRcsbPreset = TrajectoryHierarchyPresetProvider({
|
|
|
const modelProperties = await builder.insertModelProperties(model.ref);
|
|
|
const structure = new StateObjectSelector(plugin.state.data.build().to('assembly').ref, plugin.state.data);
|
|
|
const structureProperties = await builder.insertStructureProperties(structure);
|
|
|
- const representation = await plugin.builders.structure.representation.applyPreset(
|
|
|
- structureProperties, 'auto', { theme: { globalName: 'tmdet-custom-color-theme' } });
|
|
|
+ // const representation = await plugin.builders.structure.representation.applyPreset(
|
|
|
+ // structureProperties, 'auto', { theme: { globalName: 'tmdet-custom-color-theme' } });
|
|
|
+
|
|
|
+ const representation = await plugin.builders.structure.representation.applyPreset<any>(structureProperties, MembraneOrientationPreset, {});
|
|
|
|
|
|
// await plugin.builders.structure.hierarchy.applyPreset(
|
|
|
// trajectory, 'default', { representationPreset: TMDET_STRUCTURE_PRESET_ID as any });
|