The default visualization state of chemiscope: three panels (map, structure, info) updating one another when the user interact with any of them.
Apply the given settings to all panels in the visualizer
settings for all panels
Get the dataset used to create the current visualization
If the dataset is using user-specified structures and a loading callback loadStructure; you can request all structure to be fully resolved and placed inside the dataset.
the dataset currently visualized
should all UserStructure resolved and placed inside the dataset?
Add the given
callback to be called whenever a setting changes. The
callback will be given the path to the settings as a list of keys; and
the new value of the setting.
There is currently no way to remove a callback.
Removes all the chemiscope widgets from the DOM
Load a dataset and create a visualizer.
This function returns a
Promise<DefaultVisualizer> to prevent blocking
the browser while everything is loading.
Promise that resolves to a DefaultVisualizer