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

ParameterTypeDescription
cosmographCosmographThe Cosmograph instance
config?Partial<CosmographPopupConfig>Initial popup configuration

Returns

CosmographPopup

Methods

setConfig()

setConfig(config?): void

Update the popup configuration

Parameters

ParameterType
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