molstar icon indicating copy to clipboard operation
molstar copied to clipboard

The default options for downloading structures representation

Open Cauwth opened this issue 2 years ago • 1 comments

In the example on Mol* Viewer, the default value for the “representation” option when downloading a structure is “automatic (w/annotation)”. image However, in the case of the Vue 3 code I’m using, the default value is “empty”. This results in the structure not automatically updating after downloading. Could you please advise which API I should use to adjust this and enable automatic updates in the display? Thank you very much! 🙌 image

Cauwth avatar Nov 13 '23 06:11 Cauwth

The preset is registered here

https://github.com/molstar/molstar/blob/e6a4122d1c5fa2655f417847167a1b4e197076a2/src/apps/viewer/app.ts#L208-L214

and defined as default here

https://github.com/molstar/molstar/blob/e6a4122d1c5fa2655f417847167a1b4e197076a2/src/apps/viewer/app.ts#L195

arose avatar Nov 18 '23 22:11 arose