JavaScript & React libraryAPI

Class: CosmographLinkAggregationManager

Constructors

Constructor

new CosmographLinkAggregationManager(_): CosmographLinkAggregationManager

Parameters

ParameterType
_ICosmographInternalApi

Returns

CosmographLinkAggregationManager

Accessors

countCache

Get Signature

get countCache(): Map<bigint, number> | null

Returns

Map<bigint, number> | null


colorSumCache

Get Signature

get colorSumCache(): Map<bigint, number> | null

Returns

Map<bigint, number> | null


widthSumCache

Get Signature

get widthSumCache(): Map<bigint, number> | null

Returns

Map<bigint, number> | null

Methods

buildCountCache()

buildCountCache(linksTable): void

Parameters

ParameterType
linksTableCosmographData

Returns

void


buildColorSumCache()

buildColorSumCache(linksTable, column): void

Parameters

ParameterType
linksTableCosmographData
columnVector<any> | null

Returns

void


buildWidthSumCache()

buildWidthSumCache(linksTable, column): void

Parameters

ParameterType
linksTableCosmographData
columnVector<any> | null

Returns

void


aggregateFromCache()

aggregateFromCache(linksTable, strategy, useColorCache): number[] | undefined

Parameters

ParameterTypeDefault value
linksTableCosmographDataundefined
strategy"count" | "sum" | "average"undefined
useColorCachebooleantrue

Returns

number[] | undefined


getKeysByValueCondition()

getKeysByValueCondition(cache, condition): bigint[]

Parameters

ParameterType
cacheMap<bigint, number> | null
condition(value) => boolean

Returns

bigint[]


getIndicesSetFromKeys()

getIndicesSetFromKeys(keys): number[]

Parameters

ParameterType
keysbigint[]

Returns

number[]


getIndicesByValueCondition()

getIndicesByValueCondition(cache, condition): number[]

Parameters

ParameterType
cacheMap<bigint, number> | null
condition(value) => boolean

Returns

number[]


getIndicesByAverageCondition()

getIndicesByAverageCondition(countCache, sumCache, condition): number[]

Parameters

ParameterType
countCacheMap<bigint, number> | null
sumCacheMap<bigint, number> | null
condition(average) => boolean

Returns

number[]


clear()

clear(): void

Returns

void


clearColorSumCache()

clearColorSumCache(): void

Returns

void


clearWidthSumCache()

clearWidthSumCache(): void

Returns

void