Class StructureVisualizer

A structure-only chemiscope visualizer: two panels (map, info) updating one another when the user interact with any of them.

Hierarchy

  • StructureVisualizer

Properties

structure: ViewersGrid

Methods

  • Apply the given settings to the structure panels in the visualizer

    Parameters

    Returns void

  • 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.

    Parameters

    • callback: ((keys: string[], value: unknown) => void)
        • (keys: string[], value: unknown): void
        • Parameters

          • keys: string[]
          • value: unknown

          Returns void

    Returns void

  • Removes all the chemiscope widgets from the DOM

    Returns void