diff --git a/src/lib/elements/StructureAlphaFold.svelte b/src/lib/elements/StructureAlphaFold.svelte index ccdf39a..c32185a 100644 --- a/src/lib/elements/StructureAlphaFold.svelte +++ b/src/lib/elements/StructureAlphaFold.svelte @@ -29,9 +29,11 @@ | undefined; const plugin = getContext<{ getPlugin: () => PluginContext }>('molstar').getPlugin(); + let structure: Awaited>; - //plugin.representation.structure.themes.colorThemeRegistry.add(); + // FIXME: move this at molstar wrapper level. + // when unmounting + mounting again, molstar understably complains about the preset already being registred. plugin.builders.structure.representation.registerPreset(QualityAssessmentPLDDTPreset); const init = async () => { @@ -49,7 +51,8 @@ await plugin.builders.structure.hierarchy.applyPreset( trajectory, - 'preset-structure-representation-ma-quality-assessment-plddt' + 'preset-structure-representation-ma-quality-assessment-plddt', + params ); //await plugin.builders.structure.hierarchy.applyPreset(model, 'default', params); diff --git a/src/routes/components/simple-controls/DemoControls.svelte b/src/routes/components/simple-controls/DemoControls.svelte index 5aebb86..7d1a9db 100644 --- a/src/routes/components/simple-controls/DemoControls.svelte +++ b/src/routes/components/simple-controls/DemoControls.svelte @@ -10,7 +10,7 @@ let selectedStructuresURLs = [...structuresURLs]; - + {#each selectedStructuresURLs as structureURL (`${structureURL.url}-${structureURL.type}`)} diff --git a/src/routes/components/simple-elements/DemoRCSB.svelte b/src/routes/components/simple-elements/DemoRCSB.svelte index 51d5376..c57dfee 100644 --- a/src/routes/components/simple-elements/DemoRCSB.svelte +++ b/src/routes/components/simple-elements/DemoRCSB.svelte @@ -10,7 +10,7 @@

Selected: {selectedPdbIds.join(', ')}

- + {#each selectedPdbIds as pdbId (pdbId)} diff --git a/src/routes/components/simple-elements/DemoURL.svelte b/src/routes/components/simple-elements/DemoURL.svelte index 81f51f9..4089cbd 100644 --- a/src/routes/components/simple-elements/DemoURL.svelte +++ b/src/routes/components/simple-elements/DemoURL.svelte @@ -17,7 +17,7 @@ >{selectedStructuresURLs.map((e) => e.url).join(', ')}

- + {#each selectedStructuresURLs as structureURL (`${structureURL.url}-${structureURL.type}`)} diff --git a/src/routes/components/simple-elements/DemoURLChain.svelte b/src/routes/components/simple-elements/DemoURLChain.svelte index 9275edf..b587d94 100644 --- a/src/routes/components/simple-elements/DemoURLChain.svelte +++ b/src/routes/components/simple-elements/DemoURLChain.svelte @@ -21,7 +21,7 @@ >{selectedStructuresURLs.map((e) => e.url).join(', ')}

- + {#each selectedStructuresURLs as structureURL (`${structureURL.url}-${structureURL.type}-${structureURL.chainId}`)}