@deck.gl/aggregation-layers 9.0.0-beta.10 → 9.0.0-beta.11

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.
@@ -1,4 +1,4 @@
1
- import { CompositeLayer, AttributeManager, LayerDataSource, UpdateParameters, CompositeLayerProps } from '@deck.gl/core';
1
+ import { CompositeLayer, AttributeManager, LayerDataSource, UpdateParameters, CompositeLayerProps, Attribute } from '@deck.gl/core';
2
2
  export type AggregationLayerProps<DataT> = CompositeLayerProps & {
3
3
  data: LayerDataSource<DataT>;
4
4
  };
@@ -13,7 +13,7 @@ export default abstract class AggregationLayer<DataT, ExtraPropsT extends {} = {
13
13
  updateState(opts: UpdateParameters<this>): void;
14
14
  updateAttributes(changedAttributes: any): void;
15
15
  getAttributes(): {
16
- [id: string]: import("modules/core/src/lib/attribute/attribute").default;
16
+ [id: string]: Attribute;
17
17
  };
18
18
  getModuleSettings(): any;
19
19
  updateShaders(shaders: any): void;
@@ -1 +1 @@
1
- {"version":3,"file":"aggregation-layer.d.ts","sourceRoot":"","sources":["../src/aggregation-layer.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,eAAe,EAEf,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,eAAe,CAAC;AAGvB,MAAM,MAAM,qBAAqB,CAAC,KAAK,IAAI,mBAAmB,GAAG;IAC/D,IAAI,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,gBAAgB,CAC5C,KAAK,EACL,WAAW,SAAS,EAAE,GAAG,EAAE,CAC3B,SAAQ,cAAc,CAAC,QAAQ,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,GAAG,WAAW,CAAC;IACvE,MAAM,CAAC,SAAS,SAAsB;IAEtC,KAAK,EAAG;QACN,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAA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AAC;QACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KACzC,CAAC;IAEF,0BAA0B,CAAC,UAAU,EAAE,GAAG;IAU1C,WAAW,CAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAexC,gBAAgB,CAAC,iBAAiB,KAAA;IAMlC,aAAa,IAAI;QAAC,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAA;KAAC;IAI1C,iBAAiB;IAiBjB,aAAa,CAAC,OAAO,KAAA;IAIrB;;;;;;;QAOI;IACJ,kBAAkB,CAChB,UAAU,KAAA,EACV,MAAM,GAAE;QAAC,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,SAAS,CAAC,EAAE,GAAG,CAAA;KAAM,GACnD,MAAM,GAAG,OAAO;IAyCnB;;;;;QAKI;IACJ,kBAAkB,CAAC,IAAI,CAAC,EAAE,MAAM;IAYhC,oBAAoB;CAMrB"}
package/dist/dist.dev.js CHANGED
@@ -1470,7 +1470,7 @@ void main()
1470
1470
  }
1471
1471
  }
1472
1472
  _renderToMaxMinTexture(opts) {
1473
- const { id, parameters, gridSize, minOrMaxFb, combineMaxMin, clearParams = {} } = opts;
1473
+ const { id, gridSize, minOrMaxFb, combineMaxMin, clearParams = {} } = opts;
1474
1474
  const { framebuffers } = this.state;
1475
1475
  const { allAggregationModel } = this;
1476
1476
  this.device.withParametersWebGL(
@@ -1934,7 +1934,8 @@ void main(void) {
1934
1934
  0
1935
1935
  ])
1936
1936
  }
1937
- })
1937
+ }),
1938
+ isInstanced: true
1938
1939
  });
1939
1940
  }
1940
1941
  _shouldUseMinMax() {
@@ -5402,7 +5403,7 @@ void main() {
5402
5403
  });
5403
5404
  }
5404
5405
  _updateMaxWeightValue() {
5405
- const { maxWeightTransform, textureSize } = this.state;
5406
+ const { maxWeightTransform } = this.state;
5406
5407
  maxWeightTransform.run({
5407
5408
  parameters: { viewport: [0, 0, 1, 1] },
5408
5409
  clearColor: [0, 0, 0, 0]
@@ -284,7 +284,7 @@ export default class HeatmapLayer extends AggregationLayer {
284
284
  });
285
285
  }
286
286
  _updateMaxWeightValue() {
287
- const { maxWeightTransform, textureSize } = this.state;
287
+ const { maxWeightTransform } = this.state;
288
288
  maxWeightTransform.run({
289
289
  parameters: { viewport: [0, 0, 1, 1] },
290
290
  clearColor: [0, 0, 0, 0]
package/dist/index.cjs CHANGED
@@ -514,7 +514,7 @@ var GPUGridAggregator = class {
514
514
  }
515
515
  }
516
516
  _renderToMaxMinTexture(opts) {
517
- const { id, parameters, gridSize, minOrMaxFb, combineMaxMin, clearParams = {} } = opts;
517
+ const { id, gridSize, minOrMaxFb, combineMaxMin, clearParams = {} } = opts;
518
518
  const { framebuffers } = this.state;
519
519
  const { allAggregationModel } = this;
520
520
  this.device.withParametersWebGL({
@@ -945,7 +945,8 @@ var _ScreenGridCellLayer = class extends import_core2.Layer {
945
945
  0
946
946
  ])
947
947
  }
948
- })
948
+ }),
949
+ isInstanced: true
949
950
  });
950
951
  }
951
952
  _shouldUseMinMax() {
@@ -4180,7 +4181,7 @@ var _HeatmapLayer = class extends AggregationLayer {
4180
4181
  });
4181
4182
  }
4182
4183
  _updateMaxWeightValue() {
4183
- const { maxWeightTransform, textureSize } = this.state;
4184
+ const { maxWeightTransform } = this.state;
4184
4185
  maxWeightTransform.run({
4185
4186
  parameters: { viewport: [0, 0, 1, 1] },
4186
4187
  clearColor: [0, 0, 0, 0]