Ken Youens-Clark

Results 23 comments of Ken Youens-Clark

For the positioning, my parent `div` has: position: relative; height: 620px; width: 820px; top: 10px; And the `div` containing the Mol* viewer has: position: absolute; height: 600px; width: 800px; It...

As for the esbuild point, I've implemented the Mol* viewer as a custom HTML element like so: ``` import "https://cdn.jsdelivr.net/npm/[email protected]/build/viewer/molstar.min.js"; function molstarView(urlBase) { console.log("molstarView urlBase = ", urlBase); molstar.Viewer.create("molstarView", {...

Well, something changed! I think I had some caching issues. I am seeing this now:

Thanks for your previous help. I have been able to integrate the viewer nicely into my framework, cf https://staging.mdrepo.org/explore/1. My next question is how I might be able to add...

Apparently Elm Land uses Vite, so I've install Mol* with npm and now have my custom element defined like so: ``` import { Viewer } from 'molstar/build/viewer/molstar'; window.customElements.define('molstar-view', class extends...

Thank you for the continued guidance! I'm closer. Now my data is being loaded, but I'm getting the following error: ``` molstar.js:34 Uncaught (in promise) ReferenceError: plugin is not defined...

I'm very confused about how async/await works in JS. In this code, I get "Cannot read properties of undefined (reading 'plugin')" when I try to call `viewer.plugin.managers.animation.play`. I can't put...

Also, I'm not seeing the Mol* controls in the upper-left of the viewer. Did I accidentally turn them off?

Thank you! I have the trajectory loading and the animation playing, and I'm much closer to being able to do many more advanced visualizations with Mol*! For anyone who finds...

I'd like to update that I've added a few calls to `dispose` of the viewer that may or may not be advisable, so I was curious to know if you...