Skip to content

@sqlrooms/cosmos / CosmosSliceState

Type Alias: CosmosSliceState

CosmosSliceState: object

Core state interface for the Cosmos graph visualization. Contains the graph instance, simulation state, and all control functions.

Type declaration

NameType
cosmos{ graph: Graph | null; isSimulationRunning: boolean; createGraph: (container) => void; toggleSimulation: () => void; fitView: () => void; startWithEnergy: () => void; destroyGraph: () => void; updateSimulationConfig: (config) => void; updateGraphConfig: (config) => void; updateGraphData: (data) => void; setFocusedPoint: (index) => void; setZoomLevel: (level) => void; }