@deck.gl/aggregation-layers 9.0.30 → 9.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,8 +19,7 @@
19
19
  // THE SOFTWARE.
20
20
  import { CompositeLayer, AttributeManager, _compareProps as compareProps } from '@deck.gl/core';
21
21
  import { filterProps } from "./utils/prop-utils.js";
22
- export default class AggregationLayer extends CompositeLayer {
23
- static { this.layerName = 'AggregationLayer'; }
22
+ class AggregationLayer extends CompositeLayer {
24
23
  initializeAggregationLayer(dimensions) {
25
24
  super.initializeState(this.context);
26
25
  this.setState({
@@ -140,6 +139,8 @@ export default class AggregationLayer extends CompositeLayer {
140
139
  });
141
140
  }
142
141
  }
142
+ AggregationLayer.layerName = 'AggregationLayer';
143
+ export default AggregationLayer;
143
144
  // Helper methods
144
145
  // Returns true if given object is empty, false otherwise.
145
146
  function isObjectEmpty(obj) {
@@ -54,9 +54,7 @@ const DIMENSIONS = {
54
54
  }
55
55
  };
56
56
  /** Aggregate data into iso-lines or iso-bands for a given threshold and cell size. */
57
- export default class ContourLayer extends GridAggregationLayer {
58
- static { this.layerName = 'ContourLayer'; }
59
- static { this.defaultProps = defaultProps; }
57
+ class ContourLayer extends GridAggregationLayer {
60
58
  initializeState() {
61
59
  super.initializeAggregationLayer({
62
60
  dimensions: DIMENSIONS
@@ -238,3 +236,6 @@ export default class ContourLayer extends GridAggregationLayer {
238
236
  this.setState({ thresholdData });
239
237
  }
240
238
  }
239
+ ContourLayer.layerName = 'ContourLayer';
240
+ ContourLayer.defaultProps = defaultProps;
241
+ export default ContourLayer;
@@ -58,9 +58,7 @@ const defaultProps = {
58
58
  _filterData: { type: 'function', value: null, optional: true }
59
59
  };
60
60
  /** Aggregate data into a grid-based heatmap. Aggregation is performed on CPU. */
61
- export default class CPUGridLayer extends AggregationLayer {
62
- static { this.layerName = 'CPUGridLayer'; }
63
- static { this.defaultProps = defaultProps; }
61
+ class CPUGridLayer extends AggregationLayer {
64
62
  initializeState() {
65
63
  const cpuAggregator = new CPUAggregator({
66
64
  getAggregator: props => props.gridAggregator,
@@ -127,3 +125,6 @@ export default class CPUGridLayer extends AggregationLayer {
127
125
  });
128
126
  }
129
127
  }
128
+ CPUGridLayer.layerName = 'CPUGridLayer';
129
+ CPUGridLayer.defaultProps = defaultProps;
130
+ export default CPUGridLayer;
@@ -45,9 +45,7 @@ const defaultProps = {
45
45
  extruded: true,
46
46
  material: true // Use lighting module defaults
47
47
  };
48
- export default class GPUGridCellLayer extends Layer {
49
- static { this.layerName = 'GPUGridCellLayer'; }
50
- static { this.defaultProps = defaultProps; }
48
+ class GPUGridCellLayer extends Layer {
51
49
  getShaders() {
52
50
  return super.getShaders({
53
51
  vs,
@@ -143,3 +141,6 @@ export default class GPUGridCellLayer extends Layer {
143
141
  gl.uniformBlockBinding(programHandle, elevationIndex, ELEVATION_DATA_UBO_INDEX);
144
142
  }
145
143
  }
144
+ GPUGridCellLayer.layerName = 'GPUGridCellLayer';
145
+ GPUGridCellLayer.defaultProps = defaultProps;
146
+ export default GPUGridCellLayer;
@@ -56,9 +56,7 @@ const DIMENSIONS = {
56
56
  };
57
57
  const POSITION_ATTRIBUTE_NAME = 'positions';
58
58
  /** Aggregate data into a grid-based heatmap. Aggregation is performed on GPU. */
59
- export default class GPUGridLayer extends GridAggregationLayer {
60
- static { this.layerName = 'GPUGridLayer'; }
61
- static { this.defaultProps = defaultProps; }
59
+ class GPUGridLayer extends GridAggregationLayer {
62
60
  initializeState({ device }) {
63
61
  const isSupported = GPUGridAggregator.isSupported(device);
64
62
  if (!isSupported) {
@@ -286,3 +284,6 @@ export default class GPUGridLayer extends GridAggregationLayer {
286
284
  elevation.operation = AGGREGATION_OPERATION[elevationAggregation];
287
285
  }
288
286
  }
287
+ GPUGridLayer.layerName = 'GPUGridLayer';
288
+ GPUGridLayer.defaultProps = defaultProps;
289
+ export default GPUGridLayer;
@@ -23,8 +23,7 @@ import AggregationLayer from "./aggregation-layer.js";
23
23
  import GPUGridAggregator from "./utils/gpu-grid-aggregation/gpu-grid-aggregator.js";
24
24
  import BinSorter from "./utils/bin-sorter.js";
25
25
  import { pointToDensityGridDataCPU } from "./cpu-grid-layer/grid-aggregator.js";
26
- export default class GridAggregationLayer extends AggregationLayer {
27
- static { this.layerName = 'GridAggregationLayer'; }
26
+ class GridAggregationLayer extends AggregationLayer {
28
27
  initializeAggregationLayer({ dimensions }) {
29
28
  super.initializeAggregationLayer(dimensions);
30
29
  this.setState({
@@ -170,3 +169,5 @@ export default class GridAggregationLayer extends AggregationLayer {
170
169
  this.updateResults({ aggregationData, maxMinData, maxData, minData });
171
170
  }
172
171
  }
172
+ GridAggregationLayer.layerName = 'GridAggregationLayer';
173
+ export default GridAggregationLayer;
@@ -8,9 +8,7 @@ const defaultProps = {
8
8
  gpuAggregation: false
9
9
  };
10
10
  /** Aggregate data into a grid-based heatmap. The color and height of a cell are determined based on the objects it contains. */
11
- export default class GridLayer extends CompositeLayer {
12
- static { this.layerName = 'GridLayer'; }
13
- static { this.defaultProps = defaultProps; }
11
+ class GridLayer extends CompositeLayer {
14
12
  initializeState() {
15
13
  this.state = {
16
14
  useGPUAggregation: false // TODO(v9): Re-enable GPU aggregation.
@@ -61,3 +59,6 @@ export default class GridLayer extends CompositeLayer {
61
59
  return true;
62
60
  }
63
61
  }
62
+ GridLayer.layerName = 'GridLayer';
63
+ GridLayer.defaultProps = defaultProps;
64
+ export default GridLayer;
@@ -67,9 +67,7 @@ const DIMENSIONS = {
67
67
  }
68
68
  };
69
69
  /** Visualizes the spatial distribution of data. */
70
- export default class HeatmapLayer extends AggregationLayer {
71
- static { this.layerName = 'HeatmapLayer'; }
72
- static { this.defaultProps = defaultProps; }
70
+ class HeatmapLayer extends AggregationLayer {
73
71
  initializeState() {
74
72
  super.initializeAggregationLayer(DIMENSIONS);
75
73
  this.setState({ colorDomain: DEFAULT_COLOR_DOMAIN });
@@ -451,3 +449,6 @@ export default class HeatmapLayer extends AggregationLayer {
451
449
  return bottomLeftWorld.slice(0, 2).concat(topRightWorld.slice(0, 2));
452
450
  }
453
451
  }
452
+ HeatmapLayer.layerName = 'HeatmapLayer';
453
+ HeatmapLayer.defaultProps = defaultProps;
454
+ export default HeatmapLayer;
@@ -21,8 +21,7 @@ import { Model } from '@luma.gl/engine';
21
21
  import { Layer, project32 } from '@deck.gl/core';
22
22
  import vs from "./triangle-layer-vertex.glsl.js";
23
23
  import fs from "./triangle-layer-fragment.glsl.js";
24
- export default class TriangleLayer extends Layer {
25
- static { this.layerName = 'TriangleLayer'; }
24
+ class TriangleLayer extends Layer {
26
25
  getShaders() {
27
26
  return { vs, fs, modules: [project32] };
28
27
  }
@@ -57,3 +56,5 @@ export default class TriangleLayer extends Layer {
57
56
  model.draw(this.context.renderPass);
58
57
  }
59
58
  }
59
+ TriangleLayer.layerName = 'TriangleLayer';
60
+ export default TriangleLayer;
@@ -58,9 +58,7 @@ const defaultProps = {
58
58
  _filterData: { type: 'function', value: null, optional: true }
59
59
  };
60
60
  /** Aggregates data into a hexagon-based heatmap. The color and height of a hexagon are determined based on the objects it contains. */
61
- export default class HexagonLayer extends AggregationLayer {
62
- static { this.layerName = 'HexagonLayer'; }
63
- static { this.defaultProps = defaultProps; }
61
+ class HexagonLayer extends AggregationLayer {
64
62
  initializeState() {
65
63
  const cpuAggregator = new CPUAggregator({
66
64
  getAggregator: props => props.hexagonAggregator,
@@ -171,3 +169,6 @@ export default class HexagonLayer extends AggregationLayer {
171
169
  });
172
170
  }
173
171
  }
172
+ HexagonLayer.layerName = 'HexagonLayer';
173
+ HexagonLayer.defaultProps = defaultProps;
174
+ export default HexagonLayer;
package/dist/index.cjs CHANGED
@@ -21,14 +21,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var dist_exports = {};
22
22
  __export(dist_exports, {
23
23
  AGGREGATION_OPERATION: () => AGGREGATION_OPERATION,
24
- CPUGridLayer: () => CPUGridLayer,
25
- ContourLayer: () => ContourLayer,
26
- GPUGridLayer: () => GPUGridLayer,
27
- GridLayer: () => GridLayer,
28
- HeatmapLayer: () => HeatmapLayer,
29
- HexagonLayer: () => HexagonLayer,
30
- ScreenGridLayer: () => ScreenGridLayer,
31
- _AggregationLayer: () => AggregationLayer,
24
+ CPUGridLayer: () => cpu_grid_layer_default,
25
+ ContourLayer: () => contour_layer_default,
26
+ GPUGridLayer: () => gpu_grid_layer_default,
27
+ GridLayer: () => grid_layer_default,
28
+ HeatmapLayer: () => heatmap_layer_default,
29
+ HexagonLayer: () => hexagon_layer_default,
30
+ ScreenGridLayer: () => screen_grid_layer_default,
31
+ _AggregationLayer: () => aggregation_layer_default,
32
32
  _BinSorter: () => BinSorter,
33
33
  _CPUAggregator: () => CPUAggregator,
34
34
  _GPUGridAggregator: () => GPUGridAggregator
@@ -854,7 +854,7 @@ var defaultProps = {
854
854
  colorDomain: null,
855
855
  colorRange: defaultColorRange
856
856
  };
857
- var _ScreenGridCellLayer = class extends import_core2.Layer {
857
+ var ScreenGridCellLayer = class extends import_core2.Layer {
858
858
  getShaders() {
859
859
  return { vs: screen_grid_layer_vertex_glsl_default, fs: screen_grid_layer_fragment_glsl_default, modules: [import_core2.picking] };
860
860
  }
@@ -981,13 +981,9 @@ var _ScreenGridCellLayer = class extends import_core2.Layer {
981
981
  }
982
982
  }
983
983
  };
984
- var ScreenGridCellLayer = _ScreenGridCellLayer;
985
- (() => {
986
- _ScreenGridCellLayer.layerName = "ScreenGridCellLayer";
987
- })();
988
- (() => {
989
- _ScreenGridCellLayer.defaultProps = defaultProps;
990
- })();
984
+ ScreenGridCellLayer.layerName = "ScreenGridCellLayer";
985
+ ScreenGridCellLayer.defaultProps = defaultProps;
986
+ var screen_grid_cell_layer_default = ScreenGridCellLayer;
991
987
 
992
988
  // dist/grid-aggregation-layer.js
993
989
  var import_constants3 = require("@luma.gl/constants");
@@ -1008,7 +1004,7 @@ function filterProps(props, filterKeys) {
1008
1004
  }
1009
1005
 
1010
1006
  // dist/aggregation-layer.js
1011
- var _AggregationLayer = class extends import_core3.CompositeLayer {
1007
+ var AggregationLayer = class extends import_core3.CompositeLayer {
1012
1008
  initializeAggregationLayer(dimensions) {
1013
1009
  super.initializeState(this.context);
1014
1010
  this.setState({
@@ -1099,10 +1095,8 @@ var _AggregationLayer = class extends import_core3.CompositeLayer {
1099
1095
  });
1100
1096
  }
1101
1097
  };
1102
- var AggregationLayer = _AggregationLayer;
1103
- (() => {
1104
- _AggregationLayer.layerName = "AggregationLayer";
1105
- })();
1098
+ AggregationLayer.layerName = "AggregationLayer";
1099
+ var aggregation_layer_default = AggregationLayer;
1106
1100
  function isObjectEmpty(obj) {
1107
1101
  let isEmpty = true;
1108
1102
  for (const key in obj) {
@@ -1535,7 +1529,7 @@ function getPositionBoundingBox(positionAttribute, numInstance) {
1535
1529
  }
1536
1530
 
1537
1531
  // dist/grid-aggregation-layer.js
1538
- var _GridAggregationLayer = class extends AggregationLayer {
1532
+ var GridAggregationLayer = class extends aggregation_layer_default {
1539
1533
  initializeAggregationLayer({ dimensions }) {
1540
1534
  super.initializeAggregationLayer(dimensions);
1541
1535
  this.setState({
@@ -1670,14 +1664,12 @@ var _GridAggregationLayer = class extends AggregationLayer {
1670
1664
  this.updateResults({ aggregationData, maxMinData, maxData, minData });
1671
1665
  }
1672
1666
  };
1673
- var GridAggregationLayer = _GridAggregationLayer;
1674
- (() => {
1675
- _GridAggregationLayer.layerName = "GridAggregationLayer";
1676
- })();
1667
+ GridAggregationLayer.layerName = "GridAggregationLayer";
1668
+ var grid_aggregation_layer_default = GridAggregationLayer;
1677
1669
 
1678
1670
  // dist/screen-grid-layer/screen-grid-layer.js
1679
1671
  var defaultProps3 = {
1680
- ...ScreenGridCellLayer.defaultProps,
1672
+ ...screen_grid_cell_layer_default.defaultProps,
1681
1673
  getPosition: { type: "accessor", value: (d) => d.position },
1682
1674
  getWeight: { type: "accessor", value: 1 },
1683
1675
  gpuAggregation: false,
@@ -1693,7 +1685,7 @@ var DIMENSIONS = {
1693
1685
  accessors: ["getWeight"]
1694
1686
  }
1695
1687
  };
1696
- var _ScreenGridLayer = class extends GridAggregationLayer {
1688
+ var ScreenGridLayer = class extends grid_aggregation_layer_default {
1697
1689
  initializeState() {
1698
1690
  super.initializeAggregationLayer({
1699
1691
  dimensions: DIMENSIONS,
@@ -1741,7 +1733,7 @@ var _ScreenGridLayer = class extends GridAggregationLayer {
1741
1733
  const { maxTexture, numRow, numCol, weights } = this.state;
1742
1734
  const { updateTriggers } = this.props;
1743
1735
  const { aggregationBuffer } = weights.count;
1744
- const CellLayerClass = this.getSubLayerClass("cells", ScreenGridCellLayer);
1736
+ const CellLayerClass = this.getSubLayerClass("cells", screen_grid_cell_layer_default);
1745
1737
  return new CellLayerClass(this.props, this.getSubLayerProps({
1746
1738
  id: "cell-layer",
1747
1739
  updateTriggers
@@ -1842,13 +1834,9 @@ var _ScreenGridLayer = class extends GridAggregationLayer {
1842
1834
  }
1843
1835
  }
1844
1836
  };
1845
- var ScreenGridLayer = _ScreenGridLayer;
1846
- (() => {
1847
- _ScreenGridLayer.layerName = "ScreenGridLayer";
1848
- })();
1849
- (() => {
1850
- _ScreenGridLayer.defaultProps = defaultProps3;
1851
- })();
1837
+ ScreenGridLayer.layerName = "ScreenGridLayer";
1838
+ ScreenGridLayer.defaultProps = defaultProps3;
1839
+ var screen_grid_layer_default = ScreenGridLayer;
1852
1840
 
1853
1841
  // dist/cpu-grid-layer/cpu-grid-layer.js
1854
1842
  var import_layers = require("@deck.gl/layers");
@@ -2220,7 +2208,7 @@ var defaultProps4 = {
2220
2208
  material: true,
2221
2209
  _filterData: { type: "function", value: null, optional: true }
2222
2210
  };
2223
- var _CPUGridLayer = class extends AggregationLayer {
2211
+ var CPUGridLayer = class extends aggregation_layer_default {
2224
2212
  initializeState() {
2225
2213
  const cpuAggregator = new CPUAggregator({
2226
2214
  getAggregator: (props) => props.gridAggregator,
@@ -2282,13 +2270,9 @@ var _CPUGridLayer = class extends AggregationLayer {
2282
2270
  });
2283
2271
  }
2284
2272
  };
2285
- var CPUGridLayer = _CPUGridLayer;
2286
- (() => {
2287
- _CPUGridLayer.layerName = "CPUGridLayer";
2288
- })();
2289
- (() => {
2290
- _CPUGridLayer.defaultProps = defaultProps4;
2291
- })();
2273
+ CPUGridLayer.layerName = "CPUGridLayer";
2274
+ CPUGridLayer.defaultProps = defaultProps4;
2275
+ var cpu_grid_layer_default = CPUGridLayer;
2292
2276
 
2293
2277
  // dist/hexagon-layer/hexagon-layer.js
2294
2278
  var import_core10 = require("@deck.gl/core");
@@ -2390,7 +2374,7 @@ var defaultProps5 = {
2390
2374
  material: true,
2391
2375
  _filterData: { type: "function", value: null, optional: true }
2392
2376
  };
2393
- var _HexagonLayer = class extends AggregationLayer {
2377
+ var HexagonLayer = class extends aggregation_layer_default {
2394
2378
  initializeState() {
2395
2379
  const cpuAggregator = new CPUAggregator({
2396
2380
  getAggregator: (props) => props.hexagonAggregator,
@@ -2487,13 +2471,9 @@ var _HexagonLayer = class extends AggregationLayer {
2487
2471
  });
2488
2472
  }
2489
2473
  };
2490
- var HexagonLayer = _HexagonLayer;
2491
- (() => {
2492
- _HexagonLayer.layerName = "HexagonLayer";
2493
- })();
2494
- (() => {
2495
- _HexagonLayer.defaultProps = defaultProps5;
2496
- })();
2474
+ HexagonLayer.layerName = "HexagonLayer";
2475
+ HexagonLayer.defaultProps = defaultProps5;
2476
+ var hexagon_layer_default = HexagonLayer;
2497
2477
 
2498
2478
  // dist/contour-layer/contour-layer.js
2499
2479
  var import_layers3 = require("@deck.gl/layers");
@@ -2996,7 +2976,7 @@ var DIMENSIONS2 = {
2996
2976
  accessors: ["getWeight"]
2997
2977
  }
2998
2978
  };
2999
- var _ContourLayer = class extends GridAggregationLayer {
2979
+ var ContourLayer = class extends grid_aggregation_layer_default {
3000
2980
  initializeState() {
3001
2981
  super.initializeAggregationLayer({
3002
2982
  dimensions: DIMENSIONS2
@@ -3162,13 +3142,9 @@ var _ContourLayer = class extends GridAggregationLayer {
3162
3142
  this.setState({ thresholdData });
3163
3143
  }
3164
3144
  };
3165
- var ContourLayer = _ContourLayer;
3166
- (() => {
3167
- _ContourLayer.layerName = "ContourLayer";
3168
- })();
3169
- (() => {
3170
- _ContourLayer.defaultProps = defaultProps6;
3171
- })();
3145
+ ContourLayer.layerName = "ContourLayer";
3146
+ ContourLayer.defaultProps = defaultProps6;
3147
+ var contour_layer_default = ContourLayer;
3172
3148
 
3173
3149
  // dist/grid-layer/grid-layer.js
3174
3150
  var import_core15 = require("@deck.gl/core");
@@ -3307,7 +3283,7 @@ var defaultProps7 = {
3307
3283
  extruded: true,
3308
3284
  material: true
3309
3285
  };
3310
- var _GPUGridCellLayer = class extends import_core13.Layer {
3286
+ var GPUGridCellLayer = class extends import_core13.Layer {
3311
3287
  getShaders() {
3312
3288
  return super.getShaders({
3313
3289
  vs: gpu_grid_cell_layer_vertex_glsl_default,
@@ -3400,13 +3376,9 @@ var _GPUGridCellLayer = class extends import_core13.Layer {
3400
3376
  gl.uniformBlockBinding(programHandle, elevationIndex, ELEVATION_DATA_UBO_INDEX);
3401
3377
  }
3402
3378
  };
3403
- var GPUGridCellLayer = _GPUGridCellLayer;
3404
- (() => {
3405
- _GPUGridCellLayer.layerName = "GPUGridCellLayer";
3406
- })();
3407
- (() => {
3408
- _GPUGridCellLayer.defaultProps = defaultProps7;
3409
- })();
3379
+ GPUGridCellLayer.layerName = "GPUGridCellLayer";
3380
+ GPUGridCellLayer.defaultProps = defaultProps7;
3381
+ var gpu_grid_cell_layer_default = GPUGridCellLayer;
3410
3382
 
3411
3383
  // dist/gpu-grid-layer/gpu-grid-layer.js
3412
3384
  var defaultProps8 = {
@@ -3431,7 +3403,7 @@ var DIMENSIONS3 = {
3431
3403
  }
3432
3404
  };
3433
3405
  var POSITION_ATTRIBUTE_NAME3 = "positions";
3434
- var _GPUGridLayer = class extends GridAggregationLayer {
3406
+ var GPUGridLayer = class extends grid_aggregation_layer_default {
3435
3407
  initializeState({ device }) {
3436
3408
  const isSupported = GPUGridAggregator.isSupported(device);
3437
3409
  if (!isSupported) {
@@ -3567,7 +3539,7 @@ var _GPUGridLayer = class extends GridAggregationLayer {
3567
3539
  const { weights, numRow, numCol, gridOrigin, gridOffset } = this.state;
3568
3540
  const { color, elevation } = weights;
3569
3541
  const colorRange = colorRangeToFlatArray(this.props.colorRange);
3570
- const SubLayerClass = this.getSubLayerClass("gpu-grid-cell", GPUGridCellLayer);
3542
+ const SubLayerClass = this.getSubLayerClass("gpu-grid-cell", gpu_grid_cell_layer_default);
3571
3543
  return new SubLayerClass({
3572
3544
  gridSize: [numCol, numRow],
3573
3545
  gridOrigin,
@@ -3648,21 +3620,17 @@ var _GPUGridLayer = class extends GridAggregationLayer {
3648
3620
  elevation.operation = AGGREGATION_OPERATION[elevationAggregation];
3649
3621
  }
3650
3622
  };
3651
- var GPUGridLayer = _GPUGridLayer;
3652
- (() => {
3653
- _GPUGridLayer.layerName = "GPUGridLayer";
3654
- })();
3655
- (() => {
3656
- _GPUGridLayer.defaultProps = defaultProps8;
3657
- })();
3623
+ GPUGridLayer.layerName = "GPUGridLayer";
3624
+ GPUGridLayer.defaultProps = defaultProps8;
3625
+ var gpu_grid_layer_default = GPUGridLayer;
3658
3626
 
3659
3627
  // dist/grid-layer/grid-layer.js
3660
3628
  var defaultProps9 = {
3661
- ...GPUGridLayer.defaultProps,
3662
- ...CPUGridLayer.defaultProps,
3629
+ ...gpu_grid_layer_default.defaultProps,
3630
+ ...cpu_grid_layer_default.defaultProps,
3663
3631
  gpuAggregation: false
3664
3632
  };
3665
- var _GridLayer = class extends import_core15.CompositeLayer {
3633
+ var GridLayer = class extends import_core15.CompositeLayer {
3666
3634
  initializeState() {
3667
3635
  this.state = {
3668
3636
  useGPUAggregation: false
@@ -3676,7 +3644,7 @@ var _GridLayer = class extends import_core15.CompositeLayer {
3676
3644
  renderLayers() {
3677
3645
  const { data, updateTriggers } = this.props;
3678
3646
  const id = this.state.useGPUAggregation ? "GPU" : "CPU";
3679
- const LayerType = this.state.useGPUAggregation ? this.getSubLayerClass("GPU", GPUGridLayer) : this.getSubLayerClass("CPU", CPUGridLayer);
3647
+ const LayerType = this.state.useGPUAggregation ? this.getSubLayerClass("GPU", gpu_grid_layer_default) : this.getSubLayerClass("CPU", cpu_grid_layer_default);
3680
3648
  return new LayerType(this.props, this.getSubLayerProps({
3681
3649
  id,
3682
3650
  updateTriggers
@@ -3704,13 +3672,9 @@ var _GridLayer = class extends import_core15.CompositeLayer {
3704
3672
  return true;
3705
3673
  }
3706
3674
  };
3707
- var GridLayer = _GridLayer;
3708
- (() => {
3709
- _GridLayer.layerName = "GridLayer";
3710
- })();
3711
- (() => {
3712
- _GridLayer.defaultProps = defaultProps9;
3713
- })();
3675
+ GridLayer.layerName = "GridLayer";
3676
+ GridLayer.defaultProps = defaultProps9;
3677
+ var grid_layer_default = GridLayer;
3714
3678
 
3715
3679
  // dist/heatmap-layer/heatmap-layer-utils.js
3716
3680
  function getBounds(points) {
@@ -3837,7 +3801,7 @@ fragColor = linearColor;
3837
3801
  `;
3838
3802
 
3839
3803
  // dist/heatmap-layer/triangle-layer.js
3840
- var _TriangleLayer = class extends import_core16.Layer {
3804
+ var TriangleLayer = class extends import_core16.Layer {
3841
3805
  getShaders() {
3842
3806
  return { vs: triangle_layer_vertex_glsl_default, fs: triangle_layer_fragment_glsl_default, modules: [import_core16.project32] };
3843
3807
  }
@@ -3872,10 +3836,8 @@ var _TriangleLayer = class extends import_core16.Layer {
3872
3836
  model.draw(this.context.renderPass);
3873
3837
  }
3874
3838
  };
3875
- var TriangleLayer = _TriangleLayer;
3876
- (() => {
3877
- _TriangleLayer.layerName = "TriangleLayer";
3878
- })();
3839
+ TriangleLayer.layerName = "TriangleLayer";
3840
+ var triangle_layer_default = TriangleLayer;
3879
3841
 
3880
3842
  // dist/heatmap-layer/weights-vs.glsl.js
3881
3843
  var weights_vs_glsl_default = `#version 300 es
@@ -3981,7 +3943,7 @@ var DIMENSIONS4 = {
3981
3943
  props: ["radiusPixels"]
3982
3944
  }
3983
3945
  };
3984
- var _HeatmapLayer = class extends AggregationLayer {
3946
+ var HeatmapLayer = class extends aggregation_layer_default {
3985
3947
  initializeState() {
3986
3948
  super.initializeAggregationLayer(DIMENSIONS4);
3987
3949
  this.setState({ colorDomain: DEFAULT_COLOR_DOMAIN });
@@ -4020,7 +3982,7 @@ var _HeatmapLayer = class extends AggregationLayer {
4020
3982
  renderLayers() {
4021
3983
  const { weightsTexture, triPositionBuffer, triTexCoordBuffer, maxWeightsTexture, colorTexture, colorDomain } = this.state;
4022
3984
  const { updateTriggers, intensity, threshold: threshold2, aggregation } = this.props;
4023
- const TriangleLayerClass = this.getSubLayerClass("triangle", TriangleLayer);
3985
+ const TriangleLayerClass = this.getSubLayerClass("triangle", triangle_layer_default);
4024
3986
  return new TriangleLayerClass(this.getSubLayerProps({
4025
3987
  id: "triangle-layer",
4026
3988
  updateTriggers
@@ -4316,11 +4278,7 @@ var _HeatmapLayer = class extends AggregationLayer {
4316
4278
  return bottomLeftWorld.slice(0, 2).concat(topRightWorld.slice(0, 2));
4317
4279
  }
4318
4280
  };
4319
- var HeatmapLayer = _HeatmapLayer;
4320
- (() => {
4321
- _HeatmapLayer.layerName = "HeatmapLayer";
4322
- })();
4323
- (() => {
4324
- _HeatmapLayer.defaultProps = defaultProps10;
4325
- })();
4281
+ HeatmapLayer.layerName = "HeatmapLayer";
4282
+ HeatmapLayer.defaultProps = defaultProps10;
4283
+ var heatmap_layer_default = HeatmapLayer;
4326
4284
  //# sourceMappingURL=index.cjs.map