JavaScript & React libraryAPI

Interface: ICosmographInternalApi

Properties

public

readonly public: Cosmograph


labels?

readonly optional labels: Labels


cosmos?

readonly optional cosmos: Graph


summary

readonly summary: CosmographSummary


config

readonly config: CosmographConfig


eventManager

readonly eventManager: CosmographEventManager


configManager

readonly configManager: CosmographConfigManager


dataManager

readonly dataManager: CosmographDataManager


dataValidator

readonly dataValidator: CosmographDataValidator


crossfilter

readonly crossfilter: CosmographCrossfilter


rectangularSelection

readonly rectangularSelection: RectangularSelect


polygonalSelection

readonly polygonalSelection: PolygonalSelect


selectionClient?

readonly optional selectionClient: PointsSelectionClient


dbCoordinator?

readonly optional dbCoordinator: MosaicDBCoordinator


containerElement?

readonly optional containerElement: HTMLElement


cosmosElement?

readonly optional cosmosElement: HTMLDivElement


popupElement?

readonly optional popupElement: HTMLElement


cosmosInitialized

readonly cosmosInitialized: boolean


pointsHaveLayout

readonly pointsHaveLayout: boolean


addEventListener()

addEventListener: (type, listener, options?) => void

Parameters

ParameterType
typestring
listenerEventListenerOrEventListenerObject
options?boolean | AddEventListenerOptions

Returns

void


removeEventListener()

removeEventListener: (type, listener, options?) => void

Parameters

ParameterType
typestring
listenerEventListenerOrEventListenerObject
options?boolean | EventListenerOptions

Returns

void


dispatchEvent()

dispatchEvent: (event) => void

Parameters

ParameterType
eventEvent

Returns

void

Methods

dbReady()

dbReady(): Promise<void>

Returns

Promise<void>


dropLocalTables()

dropLocalTables(linksOnly): Promise<void>

Parameters

ParameterType
linksOnlyboolean

Returns

Promise<void>


updateMessage()

updateMessage(msg): void

Parameters

ParameterType
msgnull | string

Returns

void


initializeCosmos()

initializeCosmos(): Promise<void>

Returns

Promise<void>


initializeLabels()

initializeLabels(): void

Returns

void


updateStats()

updateStats(): void

Returns

void


updateSummary()

updateSummary(): Promise<void>

Returns

Promise<void>