Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed datasource display visualizer callback typedef #11294

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/engine/Source/DataSources/DataSourceDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,12 +499,13 @@ DataSourceDisplay.prototype._onDataSourceMoved = function (
* @callback DataSourceDisplay.VisualizersCallback
*
* @param {Scene} scene The scene to create visualizers for.
* @param {EntityCluster} entityCluster The entity cluster to create visualizers for.
* @param {DataSource} dataSource The data source to create visualizers for.
* @returns {Visualizer[]} An array of visualizers used for visualization.
*
* @example
* function createVisualizers(scene, dataSource) {
* return [new Cesium.BillboardVisualizer(scene, dataSource.entities)];
* function createVisualizers(scene, entityCluster, dataSource) {
* return [new Cesium.BillboardVisualizer(entityCluster, dataSource.entities)];
* }
*/
export default DataSourceDisplay;