From 0a976d2be99a0d5c6e778b3ffeea3d50f129f4cb Mon Sep 17 00:00:00 2001 From: Don McCurdy Date: Wed, 27 Mar 2024 09:45:58 -0400 Subject: [PATCH 1/2] fix(aggregation-layers): Fix missing types export --- modules/aggregation-layers/src/aggregation-layer.ts | 5 +++-- modules/core/src/index.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/aggregation-layers/src/aggregation-layer.ts b/modules/aggregation-layers/src/aggregation-layer.ts index fe223015bfe..65930d676e6 100644 --- a/modules/aggregation-layers/src/aggregation-layer.ts +++ b/modules/aggregation-layers/src/aggregation-layer.ts @@ -24,7 +24,8 @@ import { LayerDataSource, _compareProps as compareProps, UpdateParameters, - CompositeLayerProps + CompositeLayerProps, + Attribute } from '@deck.gl/core'; import {filterProps} from './utils/prop-utils'; @@ -75,7 +76,7 @@ export default abstract class AggregationLayer< this.setState({changedAttributes}); } - getAttributes() { + getAttributes(): {[id: string]: Attribute} { return this.getAttributeManager()!.getAttributes(); } diff --git a/modules/core/src/index.ts b/modules/core/src/index.ts index 1092a5d2a64..73af0dc997a 100644 --- a/modules/core/src/index.ts +++ b/modules/core/src/index.ts @@ -45,6 +45,7 @@ export {default as _PickLayersPass} from './passes/pick-layers-pass'; export {default as Deck} from './lib/deck'; export {default as LayerManager} from './lib/layer-manager'; +export {default as Attribute} from './lib/attribute/attribute'; export {default as AttributeManager} from './lib/attribute/attribute-manager'; export {default as Layer} from './lib/layer'; export {default as CompositeLayer} from './lib/composite-layer'; From e46d30330915e0507e9f9c613d7540d9f60482d4 Mon Sep 17 00:00:00 2001 From: Don McCurdy Date: Wed, 27 Mar 2024 09:56:55 -0400 Subject: [PATCH 2/2] Fix broken test --- modules/main/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/main/src/index.ts b/modules/main/src/index.ts index 467ed93450f..d0b33509830 100644 --- a/modules/main/src/index.ts +++ b/modules/main/src/index.ts @@ -56,6 +56,7 @@ export { OrthographicController, _GlobeController, // For custom layers + Attribute, AttributeManager, // Shader modules picking,