Interface StructureConfig

Configuration for the StructureVisualizer

interface StructureConfig {
    info: string | HTMLElement;
    loadStructure?: ((index: number, structure: unknown) => Structure);
    meta: string | HTMLElement;
    structure: string | HTMLElement;
}

Properties

info: string | HTMLElement

Id of the DOM element to use for the environment information

loadStructure?: ((index: number, structure: unknown) => Structure)

Custom structure loading callback, used to set ViewersGrid.loadStructure

meta: string | HTMLElement

Id of the DOM element to use to display metadata

structure: string | HTMLElement

Id of the DOM element to use for the structure viewer grid