diff --git a/src/lib/controls/Scene.svelte b/src/lib/controls/Scene.svelte new file mode 100644 index 0000000..a6f3b24 --- /dev/null +++ b/src/lib/controls/Scene.svelte @@ -0,0 +1,27 @@ + + + + + diff --git a/src/lib/elements/StructureAlphaFold.svelte b/src/lib/elements/StructureAlphaFold.svelte new file mode 100644 index 0000000..ccdf39a --- /dev/null +++ b/src/lib/elements/StructureAlphaFold.svelte @@ -0,0 +1,101 @@ + diff --git a/src/lib/elements/StructureURL.svelte b/src/lib/elements/StructureURL.svelte index 90e214d..40ae41c 100644 --- a/src/lib/elements/StructureURL.svelte +++ b/src/lib/elements/StructureURL.svelte @@ -33,7 +33,7 @@ const model = await plugin.builders.structure.createModel(trajectory); const struct = await plugin.builders.structure.createStructure(model); structure = struct; - await plugin.builders.structure.hierarchy.applyPreset(structure, 'default'); + await plugin.builders.structure.hierarchy.applyPreset(trajectory, 'default'); }; onMount(() => { init(); diff --git a/src/routes/components/simple-controls/+page.md b/src/routes/components/simple-controls/+page.md index 301b91e..3f87a6f 100644 --- a/src/routes/components/simple-controls/+page.md +++ b/src/routes/components/simple-controls/+page.md @@ -7,14 +7,31 @@ return m.default; }); + const loadComponentDemoWithControls2 = async () => + import('./DemoControls2.svelte').then((m) => { + return m.default; + }); + # SimpleWrapper + controls -## Highlight info +## Highlight info + ButtonBar {#if browser} {#await loadComponentDemoWithControls() then MolstarComp} +
{structureURL.url} ({structureURL.type})
+ {/each} +