From a056c191ae8bdd646862be01a7401431cd6f3721 Mon Sep 17 00:00:00 2001 From: Ben Kuster Date: Thu, 18 May 2023 12:17:12 +0200 Subject: [PATCH] fixed datasource display visualizer callback typedef --- packages/engine/Source/DataSources/DataSourceDisplay.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/engine/Source/DataSources/DataSourceDisplay.js b/packages/engine/Source/DataSources/DataSourceDisplay.js index e71989ea47b4..6ea22ddf41ba 100644 --- a/packages/engine/Source/DataSources/DataSourceDisplay.js +++ b/packages/engine/Source/DataSources/DataSourceDisplay.js @@ -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;