Skip to content

Commit

Permalink
minors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakura-Book committed Dec 17, 2024
1 parent 1b7eb37 commit 6a697e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/structures.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const structures = [
name: 'Inner layer of Rice dwarf virus (1uf2)',
url: 'https://files.rcsb.org/download/1UF2.pdb',
format: 'pdb',
tag: ['T2', 'paper'],
tag: ['T2'],
snapshot: 'https://raw.githubusercontent.com/matsunagalab/capsid_view/main/snapshots/T2/1uf2.molj',
},
{
Expand Down
5 changes: 5 additions & 0 deletions js/viewers.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ async function updateGrid(structures) {
// viewer = null;
// }
// }
// if (viewer) {
// console.log(`viewer ${structure.id} が存在します`);
// viewer.dispose(); // 古いコンテキストを破棄
// // viewer = null; // 参照を削除
// }

const viewer = await molstar.Viewer.create(
structure.id,
Expand Down

0 comments on commit 6a697e7

Please sign in to comment.