Skip to content

Commit a4fb740

Browse files
authored
fix(aggregation-layers): Fix missing types export (visgl#8713)
1 parent d9a78da commit a4fb740

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

modules/aggregation-layers/src/aggregation-layer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ import {
2424
LayerDataSource,
2525
_compareProps as compareProps,
2626
UpdateParameters,
27-
CompositeLayerProps
27+
CompositeLayerProps,
28+
Attribute
2829
} from '@deck.gl/core';
2930
import {filterProps} from './utils/prop-utils';
3031

@@ -75,7 +76,7 @@ export default abstract class AggregationLayer<
7576
this.setState({changedAttributes});
7677
}
7778

78-
getAttributes() {
79+
getAttributes(): {[id: string]: Attribute} {
7980
return this.getAttributeManager()!.getAttributes();
8081
}
8182

modules/core/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export {default as _PickLayersPass} from './passes/pick-layers-pass';
4545
export {default as Deck} from './lib/deck';
4646

4747
export {default as LayerManager} from './lib/layer-manager';
48+
export {default as Attribute} from './lib/attribute/attribute';
4849
export {default as AttributeManager} from './lib/attribute/attribute-manager';
4950
export {default as Layer} from './lib/layer';
5051
export {default as CompositeLayer} from './lib/composite-layer';

modules/main/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export {
5656
OrthographicController,
5757
_GlobeController,
5858
// For custom layers
59+
Attribute,
5960
AttributeManager,
6061
// Shader modules
6162
picking,

0 commit comments

Comments
 (0)