|
@@ -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,
|