Class: CosmographPopup
CosmographPopup displays a single HTML popup at arbitrary graph coordinates or anchored to a point index.
Constructors
Constructor
new CosmographPopup(
cosmograph,config?):CosmographPopup
Parameters
| Parameter | Type | Description | 
|---|---|---|
cosmograph | Cosmograph | The Cosmograph instance | 
config? | Partial<CosmographPopupConfig> | Initial popup configuration | 
Returns
CosmographPopup
Methods
setConfig()
setConfig(
config?):void
Update the popup configuration
Parameters
| Parameter | Type | 
|---|---|
config? | CosmographPopupConfig | 
Returns
void
hide()
hide():
void
Hide the popup
Returns
void
show()
show():
void
Show the popup.
Returns
void
remove()
remove():
void
Destroy the popup, removing it from the DOM
Returns
void