Interface DefaultConfig

Configuration for the DefaultVisualizer

interface DefaultConfig {
    info: string | HTMLElement;
    loadStructure?: ((index: number, structure: unknown) => Structure);
    map: string | HTMLElement;
    maxStructureViewers?: number;
    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

map: string | HTMLElement

Id of the DOM element to use for the properties map

maxStructureViewers?: number

Maximum number of structure viewers allowed in ViewersGrid

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