midlik

Results 22 comments of midlik

Hi, it might be the same issue as here: https://github.com/molstar/pdbe-molstar/issues/94

Hi, I'm thinking this issue could be caused by calling the `update` function before the plugin is fully initialized (i.e. before the asynchronous `render` function has completed). I expect your...

Or alternatively ```js const viewerContainer = document.getElementById('myViewer')!; const viewerInstance = new PDBeMolstarPlugin(); viewerInstance.render(viewerContainer, initOptions); viewerInstance.events.loadComplete.subscribe(() => viewerInstance.visual.update(newOptions, false)); ```

Oh, sorry. Loading the second structure actually triggers the `loadComplete` event again and creates an infinite loop. The jumping chains you saw were probably the same structure being loaded again...

Hi, this issue seems to be fixed in version 3.3.0. Both `hideStructure: ['water']` initial option and calling `viewerInstance.visual.visibility({ water: false });` should work. Update you JS and CSS URLs based...

Hi, A short answer: PDBe Molstar is not designed to retrieve this kind of information. A long answer: It is technically possible to retrieve this information, but it is not...

Hi, perhaps something like this would work: index.html: ``` ... ... const viewerContainer = document.getElementById('myViewer'); viewerInstance.render(viewerContainer, options).then(() => { registerCustomColorTheme(viewerInstance.plugin); }); ... ``` Your hack.ts (or hack.js): ``` import {...

Another option is creating your custom build. But instead of forking the `pdbe-molstar` repo I would recommend including `pdbe-molstar` as dependency of your project. Then you can just `import {...

https://github.com/molstar/molstar/pull/1479 has been merged, please check if it solves you issue

Hi, this is possible in PDBe Molstar version 3.3.0: ``` const options = { moleculeId: '1cbs', visualStyle: { type:'cartoon', color: 'sequence-id' }, }; ``` If you want to keep default...