ChemPal Documentation - v1.12.0
    Preparing search index...

    Module utils/molecule/scene

    Builds and animates a three.js ball-and-stick scene for a parsed molecule.

    This module statically imports three, so every consumer should reach it through a dynamic import() — that keeps the WebGL renderer out of the initial popup bundle and loads it only when a structure is actually going to be drawn.

    Types - Utils

    MoleculeSceneOptions

    Tunables for createMoleculeScene.

    MoleculeSceneHandle

    Live controls over a running molecule scene.

    Functions - Utils

    createMoleculeScene

    Builds a ball-and-stick scene for molecule on canvas and starts animating it.