Interface: CallbackConfig
Extended by
Properties
onPointsFiltered()?
optional
onPointsFiltered: (filteredPoints
) =>void
Callback function that will be called when the points was filtered by point crossfilter.
Parameters
Parameter | Type | Description |
---|---|---|
filteredPoints | CosmographData | A Table of filtered points. |
Returns
void
onLinksFiltered()?
optional
onLinksFiltered: (filteredLinks
) =>void
Callback function that will be called when the links was filtered by link crossfilter.
Parameters
Parameter | Type | Description |
---|---|---|
filteredLinks | CosmographData | A Table of filtered links. |
Returns
void
onLabelClick()?
optional
onLabelClick: (index
,id
,event
) =>void
Callback function that will be called when clicked on a label.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | Point index for this label. |
id | string | Point id for this label. |
event | MouseEvent | Corresponding mouse event. |
Returns
void
onClusterLabelClick()?
optional
onClusterLabelClick: (index
,id
,event
) =>void
Callback function that will be called when clicked on a cluster label.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | Cluster index for this label. |
id | string | Cluster id for this label. |
event | MouseEvent | Corresponding mouse event. |
Returns
void
onGraphRebuilt()?
optional
onGraphRebuilt: (stats
) =>void
Callback function that executes after the graph completes rebuilding with new data.
Parameters
Parameter | Type | Description |
---|---|---|
stats | { pointsCount : number ; linksCount : number ; pointsSummary? : Record <string , unknown >[]; linksSummary? : Record <string , unknown >[]; } | Graph statistics after rebuilding |
stats.pointsCount | number | Number of rendered points in the graph |
stats.linksCount | number | Number of rendered links in the graph |
stats.pointsSummary? | Record <string , unknown >[] | Summary information for the rendered points |
stats.linksSummary? | Record <string , unknown >[] | Summary information for the rendered links |
Returns
void
onGraphDataUpdated()?
optional
onGraphDataUpdated: () =>void
Callback function that will be called when points or links data is replaced or modified at the local database.
Returns
void
onConfigUpdated()?
optional
onConfigUpdated: () =>void
Callback function that will be called after the config was updated.
Returns
void
onRectSelected()?
optional
onRectSelected: (selection
) =>void
Callback function that will be called when area selection was performed.
Parameters
Parameter | Type | Description |
---|---|---|
selection | null | [[number , number ], [number , number ]] | ā The selected area or null if the selection was cleared. |
Returns
void
onPolygonSelected()?
optional
onPolygonSelected: (polygonPoints
) =>void
Callback function that will be called when polygonal selection was performed.
Parameters
Parameter | Type | Description |
---|---|---|
polygonPoints | [number , number ][] | The points of the polygon. |
Returns
void