Class: CosmographConfigManager
Constructors
Constructor
new CosmographConfigManager(
_):CosmographConfigManager
Parameters
| Parameter | Type |
|---|---|
_ | ICosmographInternalApi |
Returns
CosmographConfigManager
Properties
| Property | Modifier | Type | Default value |
|---|---|---|---|
config | public | CosmographConfig | defaultCosmographConfig |
Accessors
activePointColorStrategy
Get Signature
get activePointColorStrategy():
"map"|"categorical"|"continuous"|"degree"|"preciseDegree"|"linkDirection"|"direct"|"single"
Returns
"map" | "categorical" | "continuous" | "degree" | "preciseDegree" | "linkDirection" | "direct" | "single"
activeLinkColorStrategy
Get Signature
get activeLinkColorStrategy():
"count"|"categorical"|"direct"|"single"|"sum"|"average"
Returns
"count" | "categorical" | "direct" | "single" | "sum" | "average"
activePointSizeStrategy
Get Signature
get activePointSizeStrategy():
"auto"|"degree"|"preciseDegree"|"direct"|"single"
Returns
"auto" | "degree" | "preciseDegree" | "direct" | "single"
activeLinkWidthStrategy
Get Signature
get activeLinkWidthStrategy():
"count"|"direct"|"single"|"sum"|"average"
Returns
"count" | "direct" | "single" | "sum" | "average"
activePointColorFn
Get Signature
get activePointColorFn():
undefined|ColorAccessorFn<string>
Returns
undefined | ColorAccessorFn<string>
activePointSizeFn
Get Signature
get activePointSizeFn():
undefined|SizeAccessorFn<number>
Returns
undefined | SizeAccessorFn<number>
activeLinkColorFn
Get Signature
get activeLinkColorFn():
undefined|ColorAccessorFn<string>
Returns
undefined | ColorAccessorFn<string>
activeLinkWidthFn
Get Signature
get activeLinkWidthFn():
undefined|SizeAccessorFn<number>
Returns
undefined | SizeAccessorFn<number>
clusterMapping
Get Signature
get clusterMapping():
Map<string, {index:number;count:number; }>
Returns
Map<string, { index: number; count: number; }>
clusterIndexToNameMapping
Get Signature
get clusterIndexToNameMapping():
Map<number, {name:string;count:number; }>
Returns
Map<number, { name: string; count: number; }>
cosmosConfig
Get Signature
get cosmosConfig():
GraphConfigInterface
Returns
Methods
configUpdated()
configUpdated():
Promise<void>
Returns
Promise<void>
cosmosInitialized()
cosmosInitialized():
Promise<void>
Returns
Promise<void>
setConfig()
setConfig(
config?):void
Parameters
| Parameter | Type |
|---|---|
config? | CosmographConfig |
Returns
void
resetCosmographConfig()
resetCosmographConfig():
void
Returns
void
updatePointProperties()
updatePointProperties(
prevConfig?,merge?):Promise<void>
Parameters
| Parameter | Type | Default value |
|---|---|---|
prevConfig? | CosmographConfig | undefined |
merge? | boolean | false |
Returns
Promise<void>
updateLinkProperties()
updateLinkProperties(
prevConfig?):Promise<void>
Parameters
| Parameter | Type |
|---|---|
prevConfig? | CosmographConfig |
Returns
Promise<void>
updatePreservedPointPositions()
updatePreservedPointPositions(
positions):void
Parameters
| Parameter | Type |
|---|---|
positions | Map<number, [number, number]> |
Returns
void
clearCosmosBuffers()
clearCosmosBuffers(
linksOnly?):void
Parameters
| Parameter | Type |
|---|---|
linksOnly? | boolean |
Returns
void