Class: CosmographSizeLegend
Internal
Abstract component that enforces exclusive selection across all instances. Only one component of this type can have an active selection at any time.
Extends
CosmographExclusiveSelectionComponent<CosmographSizeLegendConfig,SizeLegend,"min"|"max"|undefined>
Constructors
Constructor
new CosmographSizeLegend(
cosmograph,targetElement,config):CosmographSizeLegend
Constructs a filtering component that connects Cosmograph data to a UI component.
Parameters
| Parameter | Type | Description | 
|---|---|---|
cosmograph | Cosmograph | The Cosmograph instance to connect to | 
targetElement | HTMLElement | HTML element for rendering the UI component | 
config | CosmographSizeLegendConfig | Configuration for the filtering component | 
Returns
CosmographSizeLegend
Inherited from
CosmographExclusiveSelectionComponent.constructor
Accessors
domain
Get Signature
get domain():
undefined| [number,number]
Returns
undefined | [number, number]
defaultConfig
Get Signature
get defaultConfig():
CosmographSizeLegendConfig
Returns
Overrides
CosmographExclusiveSelectionComponent.defaultConfig
accessor
Get Signature
get accessor():
undefined|string
Returns
undefined | string
Overrides
CosmographExclusiveSelectionComponent.accessor
hasClickableEvents
Get Signature
get hasClickableEvents():
boolean
Returns
boolean
Methods
setConfig()
setConfig(
config):Promise<void>
Parameters
| Parameter | Type | 
|---|---|
config | Partial<TConfig> | 
Returns
Promise<void>
Inherited from
CosmographExclusiveSelectionComponent.setConfig
hide()
hide():
void
Hides the CosmographSizeLegend.
Returns
void
show()
show():
void
Shows the CosmographSizeLegend.
Returns
void
remove()
remove():
void
Removes the CosmographSizeLegend instance and cleans up associated event listeners.
Returns
void