Handles the communication between client and server.
- Source:
Methods
(inner) generateWordCloudsOnServer(dataReceivedCallback)
Provides the server with the word Cloud attribute.
Then loads the the wordClouds.
Parameters:
Name | Type | Description |
---|---|---|
dataReceivedCallback |
function | Function that is called after all wordClouds were loaded |
- Source:
(inner) getEdgesOfSelectedSupernodesFromServer(dataReceivedCallback)
Provides the server with the IDs of the selected supernodes
Then pulls the edge matrices and wordClouds for these supernodes from the server.
Parameters:
Name | Type | Description |
---|---|---|
dataReceivedCallback |
function | Function that is called when the edge matrices were received |
- Source:
(inner) getSupernodesFromServer(dataReceivedCallback)
Provides the server with the cluster features and the number of clusters.
Then pulls the cluster result from the server
Parameters:
Name | Type | Description |
---|---|---|
dataReceivedCallback |
function | Function that is called when the cluser result was received |
- Source:
(async, inner) loadWordClouds(wordCloudIDs, materialLoadedCallback)
loads all wordClouds into Three.Materials
Parameters:
Name | Type | Description |
---|---|---|
wordCloudIDs |
array | |
materialLoadedCallback |
function | Function that is called after all wordClouds were loaded |
- Source:
(async, inner) loadWordCloudTexture(wordCloudID)
loads a wordClouds image from the disk into a Three.Material
Parameters:
Name | Type | Description |
---|---|---|
wordCloudID |
Number |
- Source:
Returns:
a promise to load a word cloud texture and create a material