|
@@ -2,11 +2,6 @@ import {RcsbFv3DCustom, RcsbFv3DCustomInterface} from "../../RcsbFv3D/RcsbFv3DCu
|
|
|
import { DebugUtil } from "./tmdet-extension/debug-utils";
|
|
|
import { createFeatureViewerConfing } from "./FeatureViewConfig";
|
|
|
import { registerRegionDescriptorData } from "./UniTmpHelper";
|
|
|
-import { TmDetDescriptorCache } from "./tmdet-extension/prop";
|
|
|
-import { applyTransformations } from "./tmdet-extension/transformation";
|
|
|
-import { PluginContext } from "molstar/lib/mol-plugin/context";
|
|
|
-import { StateTransforms } from "molstar/lib/mol-plugin-state/transforms";
|
|
|
-import { Vec3 } from "molstar/lib/mol-math/linear-algebra";
|
|
|
|
|
|
export { DebugUtil };
|
|
|
|
|
@@ -43,21 +38,5 @@ document.addEventListener("DOMContentLoaded", (event) => {
|
|
|
const panel3d = new RcsbFv3DCustom(panel3dConfig);
|
|
|
panel3d.render();
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
- const descriptor = TmDetDescriptorCache.get('1afo');
|
|
|
- const plugin = (window as any).plugin as PluginContext;
|
|
|
- applyTransformations(plugin, descriptor!);
|
|
|
- plugin.state.data.build().to('assembly')
|
|
|
- .apply(StateTransforms.Model.TransformStructureConformation, {
|
|
|
- transform: {
|
|
|
- name: 'components',
|
|
|
- params: { axis: Vec3.unitY, angle: 90, translation: Vec3.zero() }
|
|
|
- }
|
|
|
- })
|
|
|
- .commit();
|
|
|
-
|
|
|
- },
|
|
|
- 2000
|
|
|
- );
|
|
|
})();
|
|
|
});
|