Browse Source

Issue #820: receiving block configs

cycle20 1 year ago
parent
commit
89df137c17
1 changed files with 3 additions and 15 deletions
  1. 3 15
      src/TmFv3DApp/FeatureViewConfig.ts

+ 3 - 15
src/TmFv3DApp/FeatureViewConfig.ts

@@ -41,24 +41,12 @@ export async function createFeatureViewerConfing(params: TmFvConfigParams) {
     const modelId = `${params.pdbEntry}_model`;
 
     const fvConfig: FeatureViewInterface<LoadMolstarInterface<unknown,unknown>,LoadMolstarReturnType> =
-        params.fvConfigData;
+        params.fvConfigData.blockConfig[0].featureViewConfig[0];
 
-    fvConfig.boardId = `${params.pdbEntry}_board`;
-    fvConfig.boardConfig = {
-        rowTitleWidth: 190,
-        includeAxis: true,
-        length: (fvConfig.rowConfig[0]!.trackData![0].value as string).length
-    };
     setFvConfigCallbacks(fvConfig, modelId, params.labelAsymId);
 
-    const block: FeatureBlockInterface<LoadMolstarInterface<unknown,unknown>,LoadMolstarReturnType> = {
-        blockId: `${params.pdbEntry}_${params.labelAsymId}_block_id`,
-        featureViewConfig: [fvConfig]
-    };
-
-    const customConfig: CustomViewInterface<LoadMolstarInterface<unknown,unknown>,LoadMolstarReturnType> = {
-        blockConfig:[block]
-    }
+    const customConfig: CustomViewInterface<LoadMolstarInterface<unknown,unknown>,LoadMolstarReturnType> =
+        params.fvConfigData;
 
     const sequenceConfig = {
         title: params.title,