Interface: BasicConfig
Extended by
Properties
enableSimulation?
optionalenableSimulation:boolean
Controls whether to disable force-directed layout simulation. If undefined, the simulation will be automatically disabled if there are no links or points have layout coordinates provided.
When disabled (true):
- Uses x/y values from data for point positions. If positions not provided, random positions will be used.
 
Default
undefined
rectangularSelectorClassName?
optionalrectangularSelectorClassName:string
Specifies the CSS class to use for the rectangular selector.
polygonalSelectorStrokeColor?
optionalpolygonalSelectorStrokeColor:string
Stroke color for the lasso selection
Default
'#ffffff'polygonalSelectorLineWidth?
optionalpolygonalSelectorLineWidth:number
Line width for the lasso selection
Default
2selectPointOnClick?
optionalselectPointOnClick:boolean|"single"
Controls whether to select a clicked point with the connected points.
- When 
true: Selects the clicked point and all connected points to it - When 
'single': Selects only the clicked point - Will also focus (render ring around) the clicked point if 
focusPointOnClickisundefined 
selectPointOnLabelClick?
optionalselectPointOnLabelClick:boolean|"single"
Controls whether to select a point with the connected points when the point’s label is clicked.
- When 
true: Selects the clicked point and all connected points to it - When 
'single': Selects only the clicked point - Will also focus (render ring around) the clicked point if 
focusPointOnClickisundefined 
selectClusterOnLabelClick?
optionalselectClusterOnLabelClick:boolean
Controls whether to select points of a cluster when its label is clicked.
focusPointOnClick?
optionalfocusPointOnClick:boolean
Controls whether to focus on a point when the point itself is clicked.
focusPointOnLabelClick?
optionalfocusPointOnLabelClick:boolean
Controls whether to focus on a point when the point’s label is clicked.
componentsDisplayStateMode?
optionalcomponentsDisplayStateMode:false|"loading"
Controls display state messages behavior for all Cosmograph components.
- When 
undefined: Show all state messages (loading, no data) - When 
'loading': Show only loading state message, hide no data message - When 
false: Disable all state messages 
This will be applied to all components unless explicitly overridden in component-specific configuration.
Default
undefined
statusIndicatorMode?
optionalstatusIndicatorMode:false|"text"|"spinner"
Chooses which kind of status indicator to show during loading or errors.
'spinner'(default): show a spinner during loading, falling back to text on errors.'text': always show descriptive messages.false: hide the status indicator entirely.
Default
'spinner'disableLogging?
optionaldisableLogging:boolean
Disables logging of Cosmograph messages in the console.
Default
falsepreservePointPositionsOnDataUpdate?
optionalpreservePointPositionsOnDataUpdate:boolean
Preserve positions for points with same ids (pointIdBy) during point data update
When true:
- Points with same ids will stay where they were instead of generating new positions
 - New points get new positions (or positions from 
pointXBy/pointYByif set) - Preserved positions take priority over new coordinates from 
pointXBy/pointYByfor existing points 
Default
falseresetSelectionOnEmptyCanvasClick?
optionalresetSelectionOnEmptyCanvasClick:boolean
Reset selection on empty canvas click
When true:
- Resets the selection when the canvas is clicked and no points are selected
 
Default
true