JavaScript & React libraryAPIFunctionsprepareCosmographDataFiles

Function: prepareCosmographDataFiles()

prepareCosmographDataFiles(config, pointsData, linksData?): Promise<undefined | CosmographDataPrepResult<Blob>>

Prepares the Cosmograph data in the specified format and Cosmograph configuration object for this data.

Parameters

ParameterTypeDescription
configCosmographDataPrepConfigThe configuration for preparing the Cosmograph data.
pointsDataDataThe data for the Cosmograph points.
linksData?DataThe data for the Cosmograph links (optional).

Returns

Promise<undefined | CosmographDataPrepResult<Blob>>

The prepared Cosmograph data in the specified format as Blob with configuration, or undefined if the preparation failed.