Skip to content

Commit

Permalink
export GPUAggregator
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed May 13, 2024
1 parent 9106b95 commit 21358eb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
7 changes: 7 additions & 0 deletions modules/aggregation-layers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export {default as _CPUAggregator} from './utils/cpu-aggregator';
export {default as _AggregationLayer} from './aggregation-layer';
export {default as _BinSorter} from './utils/bin-sorter';

export {GPUAggregator} from './aggregation-layer-v9/gpu-aggregator/gpu-aggregator';

// types
export type {ContourLayerProps} from './contour-layer/contour-layer';
export type {HeatmapLayerProps} from './heatmap-layer/heatmap-layer';
Expand All @@ -41,3 +43,8 @@ export type {CPUGridLayerProps} from './cpu-grid-layer/cpu-grid-layer';
export type {GridLayerProps} from './grid-layer/grid-layer';
export type {GPUGridLayerProps} from './gpu-grid-layer/gpu-grid-layer';
export type {ScreenGridLayerProps} from './screen-grid-layer/screen-grid-layer';

export type {
GPUAggregationProps,
GPUAggregatorSettings
} from './aggregation-layer-v9/gpu-aggregator/gpu-aggregator';
3 changes: 2 additions & 1 deletion modules/main/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ export {
GridLayer,
GPUGridLayer,
AGGREGATION_OPERATION,
HeatmapLayer
HeatmapLayer,
GPUAggregator
} from '@deck.gl/aggregation-layers';

export {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'tape-promise/tape';
import {Attribute} from '@deck.gl/core';
import {GPUAggregator} from '@deck.gl/aggregation-layers/aggregation-layer-v9/gpu-aggregator/gpu-aggregator';
import {GPUAggregator} from '@deck.gl/aggregation-layers';
import {device} from '@deck.gl/test-utils';

import {IncomeSurvey} from './data-sample';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import {BinaryAttribute} from '@deck.gl/core';
import {luma} from '@luma.gl/core';

export function binaryAttributeToArray(accessor: BinaryAttribute, length: number): number[] {
export function binaryAttributeToArray(
accessor: BinaryAttribute | null,
length: number
): number[] | null {
if (!accessor) {
return null;
}

let value = accessor.value;
if (!value) {
const buffer = accessor.buffer;
Expand Down

0 comments on commit 21358eb

Please sign in to comment.