Skip to content

Commit

Permalink
[Chore]: Technical: Translate deckgl-layers/grid-layer (#1816)
Browse files Browse the repository at this point in the history
* Renamed js file

Signed-off-by: Maksim Suslov <[email protected]>

* Removed unused ts exclude

Signed-off-by: Maksim Suslov <[email protected]>
  • Loading branch information
HeimEndyd authored May 23, 2022
1 parent cbd2674 commit 959f1e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
// THE SOFTWARE.

import {CPUGridLayer} from '@deck.gl/aggregation-layers';
import CPUAggregator, {getAggregatedData} from '../layer-utils/cpu-aggregator';
import CPUAggregator, {AggregationType, getAggregatedData} from '../layer-utils/cpu-aggregator';

export const gridAggregation = {
export const gridAggregation: AggregationType = {
key: 'position',
updateSteps: [
{
Expand All @@ -43,7 +43,7 @@ export const gridAggregation = {
]
};

export default class ScaleEnhancedGridLayer extends CPUGridLayer {
export default class ScaleEnhancedGridLayer extends CPUGridLayer<any> {
initializeState() {
const cpuAggregator = new CPUAggregator({
aggregation: gridAggregation
Expand Down
11 changes: 1 addition & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,5 @@
}
},
"include": ["src"],
"exclude": [
"src/deckgl-layers/3d-building-layer",
"src/deckgl-layers/cluster-layer",
"src/deckgl-layers/column-layer",
"src/deckgl-layers/grid-layer",
"src/deckgl-layers/hexagon-layer",
"src/deckgl-layers/line-layer",
"src/deckgl-layers/svg-icon-layer",
"src/layers"
]
"exclude": ["src/deckgl-layers/cluster-layer", "src/deckgl-layers/hexagon-layer", "src/layers"]
}

0 comments on commit 959f1e0

Please sign in to comment.