@deck.gl/aggregation-layers 8.8.0-alpha.5 → 8.8.0-alpha.6

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.
Files changed (104) hide show
  1. package/dist/dist.dev.js +30 -25
  2. package/dist/es5/heatmap-layer/heatmap-layer-utils.js +5 -2
  3. package/dist/es5/heatmap-layer/heatmap-layer-utils.js.map +1 -1
  4. package/dist/es5/heatmap-layer/heatmap-layer.js +2 -1
  5. package/dist/es5/heatmap-layer/heatmap-layer.js.map +1 -1
  6. package/dist/esm/heatmap-layer/heatmap-layer-utils.js +5 -2
  7. package/dist/esm/heatmap-layer/heatmap-layer-utils.js.map +1 -1
  8. package/dist/esm/heatmap-layer/heatmap-layer.js +2 -1
  9. package/dist/esm/heatmap-layer/heatmap-layer.js.map +1 -1
  10. package/dist.min.js +1 -1
  11. package/package.json +3 -3
  12. package/src/heatmap-layer/heatmap-layer-utils.js +10 -5
  13. package/src/heatmap-layer/heatmap-layer.js +6 -2
  14. package/typed/aggregation-layer.d.ts +33 -0
  15. package/typed/aggregation-layer.d.ts.map +1 -0
  16. package/typed/contour-layer/contour-layer.d.ts +39 -0
  17. package/typed/contour-layer/contour-layer.d.ts.map +1 -0
  18. package/typed/contour-layer/contour-utils.d.ts +19 -0
  19. package/typed/contour-layer/contour-utils.d.ts.map +1 -0
  20. package/typed/contour-layer/marching-squares-codes.d.ts +32 -0
  21. package/typed/contour-layer/marching-squares-codes.d.ts.map +1 -0
  22. package/typed/contour-layer/marching-squares.d.ts +10 -0
  23. package/typed/contour-layer/marching-squares.d.ts.map +1 -0
  24. package/typed/cpu-grid-layer/cpu-grid-layer.d.ts +131 -0
  25. package/typed/cpu-grid-layer/cpu-grid-layer.d.ts.map +1 -0
  26. package/typed/cpu-grid-layer/grid-aggregator.d.ts +23 -0
  27. package/typed/cpu-grid-layer/grid-aggregator.d.ts.map +1 -0
  28. package/typed/gpu-grid-layer/gpu-grid-cell-layer-fragment.glsl.d.ts +3 -0
  29. package/typed/gpu-grid-layer/gpu-grid-cell-layer-fragment.glsl.d.ts.map +1 -0
  30. package/typed/gpu-grid-layer/gpu-grid-cell-layer-vertex.glsl.d.ts +3 -0
  31. package/typed/gpu-grid-layer/gpu-grid-cell-layer-vertex.glsl.d.ts.map +1 -0
  32. package/typed/gpu-grid-layer/gpu-grid-cell-layer.d.ts +85 -0
  33. package/typed/gpu-grid-layer/gpu-grid-cell-layer.d.ts.map +1 -0
  34. package/typed/gpu-grid-layer/gpu-grid-layer.d.ts +65 -0
  35. package/typed/gpu-grid-layer/gpu-grid-layer.d.ts.map +1 -0
  36. package/typed/grid-aggregation-layer.d.ts +19 -0
  37. package/typed/grid-aggregation-layer.d.ts.map +1 -0
  38. package/typed/grid-layer/grid-layer.d.ts +93 -0
  39. package/typed/grid-layer/grid-layer.d.ts.map +1 -0
  40. package/typed/heatmap-layer/heatmap-layer-utils.d.ts +13 -0
  41. package/typed/heatmap-layer/heatmap-layer-utils.d.ts.map +1 -0
  42. package/typed/heatmap-layer/heatmap-layer.d.ts +96 -0
  43. package/typed/heatmap-layer/heatmap-layer.d.ts.map +1 -0
  44. package/typed/heatmap-layer/max-fs.glsl.d.ts +3 -0
  45. package/typed/heatmap-layer/max-fs.glsl.d.ts.map +1 -0
  46. package/typed/heatmap-layer/max-vs.glsl.d.ts +3 -0
  47. package/typed/heatmap-layer/max-vs.glsl.d.ts.map +1 -0
  48. package/typed/heatmap-layer/triangle-layer-fragment.glsl.d.ts +3 -0
  49. package/typed/heatmap-layer/triangle-layer-fragment.glsl.d.ts.map +1 -0
  50. package/typed/heatmap-layer/triangle-layer-vertex.glsl.d.ts +3 -0
  51. package/typed/heatmap-layer/triangle-layer-vertex.glsl.d.ts.map +1 -0
  52. package/typed/heatmap-layer/triangle-layer.d.ts +10 -0
  53. package/typed/heatmap-layer/triangle-layer.d.ts.map +1 -0
  54. package/typed/heatmap-layer/weights-fs.glsl.d.ts +3 -0
  55. package/typed/heatmap-layer/weights-fs.glsl.d.ts.map +1 -0
  56. package/typed/heatmap-layer/weights-vs.glsl.d.ts +3 -0
  57. package/typed/heatmap-layer/weights-vs.glsl.d.ts.map +1 -0
  58. package/typed/hexagon-layer/hexagon-aggregator.d.ts +24 -0
  59. package/typed/hexagon-layer/hexagon-aggregator.d.ts.map +1 -0
  60. package/typed/hexagon-layer/hexagon-layer.d.ts +130 -0
  61. package/typed/hexagon-layer/hexagon-layer.d.ts.map +1 -0
  62. package/typed/index.d.ts +13 -0
  63. package/typed/index.d.ts.map +1 -0
  64. package/typed/package.json +6 -0
  65. package/typed/screen-grid-layer/screen-grid-cell-layer.d.ts +33 -0
  66. package/typed/screen-grid-layer/screen-grid-cell-layer.d.ts.map +1 -0
  67. package/typed/screen-grid-layer/screen-grid-layer-fragment.glsl.d.ts +3 -0
  68. package/typed/screen-grid-layer/screen-grid-layer-fragment.glsl.d.ts.map +1 -0
  69. package/typed/screen-grid-layer/screen-grid-layer-vertex.glsl.d.ts +3 -0
  70. package/typed/screen-grid-layer/screen-grid-layer-vertex.glsl.d.ts.map +1 -0
  71. package/typed/screen-grid-layer/screen-grid-layer.d.ts +34 -0
  72. package/typed/screen-grid-layer/screen-grid-layer.d.ts.map +1 -0
  73. package/typed/utils/aggregation-operation-utils.d.ts +13 -0
  74. package/typed/utils/aggregation-operation-utils.d.ts.map +1 -0
  75. package/typed/utils/bin-sorter.d.ts +46 -0
  76. package/typed/utils/bin-sorter.d.ts.map +1 -0
  77. package/typed/utils/color-utils.d.ts +3 -0
  78. package/typed/utils/color-utils.d.ts.map +1 -0
  79. package/typed/utils/cpu-aggregator.d.ts +155 -0
  80. package/typed/utils/cpu-aggregator.d.ts.map +1 -0
  81. package/typed/utils/gpu-grid-aggregation/aggregate-all-fs.glsl.d.ts +3 -0
  82. package/typed/utils/gpu-grid-aggregation/aggregate-all-fs.glsl.d.ts.map +1 -0
  83. package/typed/utils/gpu-grid-aggregation/aggregate-all-vs.glsl.d.ts +3 -0
  84. package/typed/utils/gpu-grid-aggregation/aggregate-all-vs.glsl.d.ts.map +1 -0
  85. package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-fs.glsl.d.ts +3 -0
  86. package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-fs.glsl.d.ts.map +1 -0
  87. package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-vs.glsl.d.ts +3 -0
  88. package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-vs.glsl.d.ts.map +1 -0
  89. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.d.ts +36 -0
  90. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.d.ts.map +1 -0
  91. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-utils.d.ts +1 -0
  92. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-utils.d.ts.map +1 -0
  93. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator.d.ts +66 -0
  94. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator.d.ts.map +1 -0
  95. package/typed/utils/gpu-grid-aggregation/transform-mean-vs.glsl.d.ts +3 -0
  96. package/typed/utils/gpu-grid-aggregation/transform-mean-vs.glsl.d.ts.map +1 -0
  97. package/typed/utils/grid-aggregation-utils.d.ts +24 -0
  98. package/typed/utils/grid-aggregation-utils.d.ts.map +1 -0
  99. package/typed/utils/prop-utils.d.ts +2 -0
  100. package/typed/utils/prop-utils.d.ts.map +1 -0
  101. package/typed/utils/resource-utils.d.ts +4 -0
  102. package/typed/utils/resource-utils.d.ts.map +1 -0
  103. package/typed/utils/scale-utils.d.ts +15 -0
  104. package/typed/utils/scale-utils.d.ts.map +1 -0
@@ -0,0 +1,93 @@
1
+ declare class GridLayer extends CompositeLayer<any> {
2
+ constructor(...propObjects: Partial<any>[]);
3
+ canUseGPUAggregation(props: any): boolean;
4
+ }
5
+ declare namespace GridLayer {
6
+ export const layerName: string;
7
+ export { defaultProps };
8
+ }
9
+ export default GridLayer;
10
+ import { CompositeLayer } from '@deck.gl/core/typed';
11
+ declare const defaultProps: {
12
+ gpuAggregation: boolean;
13
+ colorDomain: null;
14
+ colorRange: number[][];
15
+ getColorValue: {
16
+ type: string;
17
+ value: null;
18
+ };
19
+ getColorWeight: {
20
+ type: string;
21
+ value: number;
22
+ };
23
+ colorAggregation: string;
24
+ lowerPercentile: {
25
+ type: string;
26
+ min: number;
27
+ max: number;
28
+ value: number;
29
+ };
30
+ upperPercentile: {
31
+ type: string;
32
+ min: number;
33
+ max: number;
34
+ value: number;
35
+ };
36
+ colorScaleType: string;
37
+ onSetColorDomain: () => void;
38
+ elevationDomain: null;
39
+ elevationRange: number[];
40
+ getElevationValue: {
41
+ type: string;
42
+ value: null;
43
+ };
44
+ getElevationWeight: {
45
+ type: string;
46
+ value: number;
47
+ };
48
+ elevationAggregation: string;
49
+ elevationLowerPercentile: {
50
+ type: string;
51
+ min: number;
52
+ max: number;
53
+ value: number;
54
+ };
55
+ elevationUpperPercentile: {
56
+ type: string;
57
+ min: number;
58
+ max: number;
59
+ value: number;
60
+ };
61
+ elevationScale: {
62
+ type: string;
63
+ min: number;
64
+ value: number;
65
+ };
66
+ elevationScaleType: string;
67
+ onSetElevationDomain: () => void;
68
+ gridAggregator: typeof import("../cpu-grid-layer/grid-aggregator").pointToDensityGridDataCPU;
69
+ cellSize: {
70
+ type: string;
71
+ min: number;
72
+ max: number;
73
+ value: number;
74
+ };
75
+ coverage: {
76
+ type: string;
77
+ min: number;
78
+ max: number;
79
+ value: number;
80
+ };
81
+ getPosition: {
82
+ type: string;
83
+ value: (x: any) => any;
84
+ };
85
+ extruded: boolean;
86
+ material: boolean;
87
+ _filterData: {
88
+ type: string;
89
+ value: null;
90
+ optional: boolean;
91
+ };
92
+ };
93
+ //# sourceMappingURL=grid-layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-layer.d.ts","sourceRoot":"","sources":["../../src/grid-layer/grid-layer.js"],"names":[],"mappings":"AAWA;IAS6B,4CACf;IAuBZ,0CA6BC;CACF;;;;;;;AArED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIE"}
@@ -0,0 +1,13 @@
1
+ export function getBounds(points: any): number[];
2
+ export function boundsContain(currentBounds: any, targetBounds: any): boolean;
3
+ export function packVertices(points: any, dimensions?: number): Float32Array;
4
+ export function scaleToAspectRatio(boundingBox: any, width: any, height: any): number[];
5
+ export function getTextureCoordinates(point: any, bounds: any): number[];
6
+ export function getTextureParams({ gl, floatTargetSupport }: {
7
+ gl: any;
8
+ floatTargetSupport: any;
9
+ }): {
10
+ format: number;
11
+ type: number;
12
+ };
13
+ //# sourceMappingURL=heatmap-layer-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heatmap-layer-utils.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/heatmap-layer-utils.js"],"names":[],"mappings":"AAGA,iDAWC;AAGD,8EAUC;AAKD,6EAQC;AAGD,wFA6BC;AAGD,yEAGC;AAGD;;;;;;EAWC"}
@@ -0,0 +1,96 @@
1
+ declare class HeatmapLayer extends AggregationLayer {
2
+ _updateHeatmapState(opts: any): void;
3
+ _getChangeFlags(opts: any): {
4
+ dataChanged: boolean;
5
+ viewportChanged: any;
6
+ viewportZoomChanged: boolean;
7
+ };
8
+ _createTextures(): void;
9
+ _setupAttributes(): void;
10
+ _setupTextureParams(): void;
11
+ _createWeightsTransform(shaders?: {}): void;
12
+ _setupResources(): void;
13
+ _updateMaxWeightValue(): void;
14
+ _updateBounds(forceUpdate?: boolean): boolean;
15
+ _updateTextureRenderingBounds(): void;
16
+ _updateColorTexture(opts: any): void;
17
+ _updateWeightmap(): void;
18
+ _debouncedUpdateWeightmap(fromTimer?: boolean): void;
19
+ _worldToCommonBounds(worldBounds: any, opts?: {}): number[];
20
+ _commonToWorldBounds(commonBounds: any): number[];
21
+ }
22
+ declare namespace HeatmapLayer {
23
+ export const layerName: string;
24
+ export { defaultProps };
25
+ }
26
+ export default HeatmapLayer;
27
+ import AggregationLayer from "../aggregation-layer";
28
+ declare namespace defaultProps {
29
+ export namespace getPosition {
30
+ const type: string;
31
+ function value(x: any): any;
32
+ }
33
+ export namespace getWeight {
34
+ const type_1: string;
35
+ export { type_1 as type };
36
+ const value_1: number;
37
+ export { value_1 as value };
38
+ }
39
+ export namespace intensity {
40
+ const type_2: string;
41
+ export { type_2 as type };
42
+ export const min: number;
43
+ const value_2: number;
44
+ export { value_2 as value };
45
+ }
46
+ export namespace radiusPixels {
47
+ const type_3: string;
48
+ export { type_3 as type };
49
+ const min_1: number;
50
+ export { min_1 as min };
51
+ export const max: number;
52
+ const value_3: number;
53
+ export { value_3 as value };
54
+ }
55
+ export { defaultColorRange as colorRange };
56
+ export namespace threshold {
57
+ const type_4: string;
58
+ export { type_4 as type };
59
+ const min_2: number;
60
+ export { min_2 as min };
61
+ const max_1: number;
62
+ export { max_1 as max };
63
+ const value_4: number;
64
+ export { value_4 as value };
65
+ }
66
+ export namespace colorDomain {
67
+ const type_5: string;
68
+ export { type_5 as type };
69
+ const value_5: null;
70
+ export { value_5 as value };
71
+ export const optional: boolean;
72
+ }
73
+ export const aggregation: string;
74
+ export namespace weightsTextureSize {
75
+ const type_6: string;
76
+ export { type_6 as type };
77
+ const min_3: number;
78
+ export { min_3 as min };
79
+ const max_2: number;
80
+ export { max_2 as max };
81
+ const value_6: number;
82
+ export { value_6 as value };
83
+ }
84
+ export namespace debounceTimeout {
85
+ const type_7: string;
86
+ export { type_7 as type };
87
+ const min_4: number;
88
+ export { min_4 as min };
89
+ const max_3: number;
90
+ export { max_3 as max };
91
+ const value_7: number;
92
+ export { value_7 as value };
93
+ }
94
+ }
95
+ import { defaultColorRange } from "../utils/color-utils";
96
+ //# sourceMappingURL=heatmap-layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heatmap-layer.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/heatmap-layer.js"],"names":[],"mappings":"AAuFA;IA6BE,qCA4BC;IA+ED;;;;MAiBC;IAED,wBAcC;IAED,yBAOC;IAED,4BAcC;IAgBD,4CAcC;IAED,wBAkCC;IAQD,8BAUC;IAGD,8CAgDC;IAED,sCAaC;IAED,qCAmBC;IAED,yBAmDC;IAED,qDAiBC;IAKD,4DAsCC;IAID,kDAOC;CACF;;;;;;;;;;QAzgBwC,4BAAe"}
@@ -0,0 +1,3 @@
1
+ declare var _default: "varying vec4 outTexture;\nvoid main() {\n gl_FragColor = outTexture;\n gl_FragColor.g = outTexture.r / max(1.0, outTexture.a);\n}\n";
2
+ export default _default;
3
+ //# sourceMappingURL=max-fs.glsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"max-fs.glsl.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/max-fs.glsl.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare var _default: "attribute vec4 inTexture;\nvarying vec4 outTexture;\n\nvoid main()\n{\noutTexture = inTexture;\ngl_Position = vec4(0, 0, 0, 1.);\n// Enforce default value for ANGLE issue (https://bugs.chromium.org/p/angleproject/issues/detail?id=3941)\ngl_PointSize = 1.0;\n}\n";
2
+ export default _default;
3
+ //# sourceMappingURL=max-vs.glsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"max-vs.glsl.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/max-vs.glsl.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare var _default: "#define SHADER_NAME triangle-layer-fragment-shader\n\nprecision highp float;\n\nuniform float opacity;\nuniform sampler2D texture;\nuniform sampler2D colorTexture;\nuniform float aggregationMode;\n\nvarying vec2 vTexCoords;\nvarying float vIntensityMin;\nvarying float vIntensityMax;\n\nvec4 getLinearColor(float value) {\n float factor = clamp(value * vIntensityMax, 0., 1.);\n vec4 color = texture2D(colorTexture, vec2(factor, 0.5));\n color.a *= min(value * vIntensityMin, 1.0);\n return color;\n}\n\nvoid main(void) {\n vec4 weights = texture2D(texture, vTexCoords);\n float weight = weights.r;\n\n if (aggregationMode > 0.5) {\n weight /= max(1.0, weights.a);\n }\n\n // discard pixels with 0 weight.\n if (weight <= 0.) {\n discard;\n }\n\n vec4 linearColor = getLinearColor(weight);\n linearColor.a *= opacity;\n gl_FragColor =linearColor;\n}\n";
2
+ export default _default;
3
+ //# sourceMappingURL=triangle-layer-fragment.glsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triangle-layer-fragment.glsl.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/triangle-layer-fragment.glsl.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare var _default: "#define SHADER_NAME heatp-map-layer-vertex-shader\n\nuniform sampler2D maxTexture;\nuniform float intensity;\nuniform vec2 colorDomain;\nuniform float threshold;\nuniform float aggregationMode;\n\nattribute vec3 positions;\nattribute vec2 texCoords;\n\nvarying vec2 vTexCoords;\nvarying float vIntensityMin;\nvarying float vIntensityMax;\n\nvoid main(void) {\n gl_Position = project_position_to_clipspace(positions, vec3(0.0), vec3(0.0));\n vTexCoords = texCoords;\n vec4 maxTexture = texture2D(maxTexture, vec2(0.5));\n float maxValue = aggregationMode < 0.5 ? maxTexture.r : maxTexture.g;\n float minValue = maxValue * threshold;\n if (colorDomain[1] > 0.) {\n // if user specified custom domain use it.\n maxValue = colorDomain[1];\n minValue = colorDomain[0];\n }\n vIntensityMax = intensity / maxValue;\n vIntensityMin = intensity / minValue;\n}\n";
2
+ export default _default;
3
+ //# sourceMappingURL=triangle-layer-vertex.glsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triangle-layer-vertex.glsl.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/triangle-layer-vertex.glsl.js"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ declare class TriangleLayer extends Layer<any> {
2
+ constructor(...propObjects: Partial<any>[]);
3
+ _getModel(gl: any): any;
4
+ }
5
+ declare namespace TriangleLayer {
6
+ const layerName: string;
7
+ }
8
+ export default TriangleLayer;
9
+ import { Layer } from '@deck.gl/core/typed';
10
+ //# sourceMappingURL=triangle-layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triangle-layer.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/triangle-layer.js"],"names":[],"mappings":"AA0BA;IAhBoB,4CAEN;IA+BZ,wBAWC;CAqBF"}
@@ -0,0 +1,3 @@
1
+ declare var _default: "varying vec4 weightsTexture;\n// Epanechnikov function, keeping for reference\n// float epanechnikovKDE(float u) {\n// return 0.75 * (1.0 - u * u);\n// }\nfloat gaussianKDE(float u){\n return pow(2.71828, -u*u/0.05555)/(1.77245385*0.166666);\n}\nvoid main()\n{\n float dist = length(gl_PointCoord - vec2(0.5, 0.5));\n if (dist > 0.5) {\n discard;\n }\n gl_FragColor = weightsTexture * gaussianKDE(2. * dist);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n";
2
+ export default _default;
3
+ //# sourceMappingURL=weights-fs.glsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weights-fs.glsl.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/weights-fs.glsl.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare var _default: "attribute vec3 positions;\nattribute vec3 positions64Low;\nattribute float weights;\nvarying vec4 weightsTexture;\nuniform float radiusPixels;\nuniform float textureWidth;\nuniform vec4 commonBounds;\nuniform float weightsScale;\nvoid main()\n{\n weightsTexture = vec4(weights * weightsScale, 0., 0., 1.);\n\n float radiusTexels = project_pixel_size(radiusPixels) * textureWidth / (commonBounds.z - commonBounds.x);\n gl_PointSize = radiusTexels * 2.;\n\n vec3 commonPosition = project_position(positions, positions64Low);\n\n // map xy from commonBounds to [-1, 1]\n gl_Position.xy = (commonPosition.xy - commonBounds.xy) / (commonBounds.zw - commonBounds.xy) ;\n gl_Position.xy = (gl_Position.xy * 2.) - (1.);\n}\n";
2
+ export default _default;
3
+ //# sourceMappingURL=weights-vs.glsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weights-vs.glsl.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/weights-vs.glsl.js"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Use d3-hexbin to performs hexagonal binning from geo points to hexagons
3
+ * @param {Iterable} data - array of points
4
+ * @param {Number} radius - hexagon radius in meter
5
+ * @param {function} getPosition - get points lon lat
6
+ * @param {Object} viewport - current viewport object
7
+
8
+ * @return {Object} - hexagons and countRange
9
+ */
10
+ export function pointToHexbin(props: any, aggregationParams: any): any;
11
+ /**
12
+ * Get the bounding box of all data points
13
+ */
14
+ export function getPointsCenter(data: any, aggregationParams: any): number[] | null;
15
+ /**
16
+ * Get radius in mercator world space coordinates from meter
17
+ * @param {Number} radius - in meter
18
+ * @param {Object} viewport - current viewport object
19
+ * @param {Array<Number>} center - data center
20
+
21
+ * @return {Number} radius in mercator world spcae coordinates
22
+ */
23
+ export function getRadiusInCommon(radius: number, viewport: any, center: Array<number>): number;
24
+ //# sourceMappingURL=hexagon-aggregator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hexagon-aggregator.d.ts","sourceRoot":"","sources":["../../src/hexagon-layer/hexagon-aggregator.js"],"names":[],"mappings":"AAuBA;;;;;;;;GAQG;AACH,uEA2CC;AAED;;GAEG;AACH,oFA4BC;AAED;;;;;;;GAOG;AACH,yEAJW,aAAa,UAQvB"}
@@ -0,0 +1,130 @@
1
+ declare class HexagonLayer extends AggregationLayer {
2
+ convertLatLngToMeterOffset(hexagonVertices: any): number[][] | null;
3
+ _onGetSublayerColor(cell: any): any;
4
+ _onGetSublayerElevation(cell: any): any;
5
+ _getSublayerUpdateTriggers(): any;
6
+ }
7
+ declare namespace HexagonLayer {
8
+ export const layerName: string;
9
+ export { defaultProps };
10
+ }
11
+ export default HexagonLayer;
12
+ import AggregationLayer from "../aggregation-layer";
13
+ declare namespace defaultProps {
14
+ export const colorDomain: null;
15
+ export { defaultColorRange as colorRange };
16
+ export namespace getColorValue {
17
+ const type: string;
18
+ const value: null;
19
+ }
20
+ export namespace getColorWeight {
21
+ const type_1: string;
22
+ export { type_1 as type };
23
+ const value_1: number;
24
+ export { value_1 as value };
25
+ }
26
+ export const colorAggregation: string;
27
+ export namespace lowerPercentile {
28
+ const type_2: string;
29
+ export { type_2 as type };
30
+ const value_2: number;
31
+ export { value_2 as value };
32
+ export const min: number;
33
+ export const max: number;
34
+ }
35
+ export namespace upperPercentile {
36
+ const type_3: string;
37
+ export { type_3 as type };
38
+ const value_3: number;
39
+ export { value_3 as value };
40
+ const min_1: number;
41
+ export { min_1 as min };
42
+ const max_1: number;
43
+ export { max_1 as max };
44
+ }
45
+ export const colorScaleType: string;
46
+ export { nop as onSetColorDomain };
47
+ export const elevationDomain: null;
48
+ export const elevationRange: number[];
49
+ export namespace getElevationValue {
50
+ const type_4: string;
51
+ export { type_4 as type };
52
+ const value_4: null;
53
+ export { value_4 as value };
54
+ }
55
+ export namespace getElevationWeight {
56
+ const type_5: string;
57
+ export { type_5 as type };
58
+ const value_5: number;
59
+ export { value_5 as value };
60
+ }
61
+ export const elevationAggregation: string;
62
+ export namespace elevationLowerPercentile {
63
+ const type_6: string;
64
+ export { type_6 as type };
65
+ const value_6: number;
66
+ export { value_6 as value };
67
+ const min_2: number;
68
+ export { min_2 as min };
69
+ const max_2: number;
70
+ export { max_2 as max };
71
+ }
72
+ export namespace elevationUpperPercentile {
73
+ const type_7: string;
74
+ export { type_7 as type };
75
+ const value_7: number;
76
+ export { value_7 as value };
77
+ const min_3: number;
78
+ export { min_3 as min };
79
+ const max_3: number;
80
+ export { max_3 as max };
81
+ }
82
+ export namespace elevationScale {
83
+ const type_8: string;
84
+ export { type_8 as type };
85
+ const min_4: number;
86
+ export { min_4 as min };
87
+ const value_8: number;
88
+ export { value_8 as value };
89
+ }
90
+ export const elevationScaleType: string;
91
+ export { nop as onSetElevationDomain };
92
+ export namespace radius {
93
+ const type_9: string;
94
+ export { type_9 as type };
95
+ const value_9: number;
96
+ export { value_9 as value };
97
+ const min_5: number;
98
+ export { min_5 as min };
99
+ }
100
+ export namespace coverage {
101
+ const type_10: string;
102
+ export { type_10 as type };
103
+ const min_6: number;
104
+ export { min_6 as min };
105
+ const max_4: number;
106
+ export { max_4 as max };
107
+ const value_10: number;
108
+ export { value_10 as value };
109
+ }
110
+ export const extruded: boolean;
111
+ export { pointToHexbin as hexagonAggregator };
112
+ export namespace getPosition {
113
+ const type_11: string;
114
+ export { type_11 as type };
115
+ export function value_11(x: any): any;
116
+ export { value_11 as value };
117
+ }
118
+ export const material: boolean;
119
+ export namespace _filterData {
120
+ const type_12: string;
121
+ export { type_12 as type };
122
+ const value_12: null;
123
+ export { value_12 as value };
124
+ export const optional: boolean;
125
+ }
126
+ }
127
+ import { defaultColorRange } from "../utils/color-utils";
128
+ declare function nop(): void;
129
+ import { pointToHexbin } from "./hexagon-aggregator";
130
+ //# sourceMappingURL=hexagon-layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hexagon-layer.d.ts","sourceRoot":"","sources":["../../src/hexagon-layer/hexagon-layer.js"],"names":[],"mappings":"AAqEA;IA4CE,oEA2BC;IAOD,oCAEC;IAGD,wCAEC;IAED,kCAEC;CA0CF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA3IwC,sCAAe;;;;;;;;;;;;;AA9BxD,6BAAiB"}
@@ -0,0 +1,13 @@
1
+ export { default as ScreenGridLayer } from './screen-grid-layer/screen-grid-layer';
2
+ export { default as CPUGridLayer } from './cpu-grid-layer/cpu-grid-layer';
3
+ export { default as HexagonLayer } from './hexagon-layer/hexagon-layer';
4
+ export { default as ContourLayer } from './contour-layer/contour-layer';
5
+ export { default as GridLayer } from './grid-layer/grid-layer';
6
+ export { default as GPUGridLayer } from './gpu-grid-layer/gpu-grid-layer';
7
+ export { AGGREGATION_OPERATION } from './utils/aggregation-operation-utils';
8
+ export { default as HeatmapLayer } from './heatmap-layer/heatmap-layer';
9
+ export { default as _GPUGridAggregator } from './utils/gpu-grid-aggregation/gpu-grid-aggregator';
10
+ export { default as _CPUAggregator } from './utils/cpu-aggregator';
11
+ export { default as _AggregationLayer } from './aggregation-layer';
12
+ export { default as _BinSorter } from './utils/bin-sorter';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAC,qBAAqB,EAAC,MAAM,qCAAqC,CAAC;AAG1E,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,kDAAkD,CAAC;AAC/F,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,6 @@
1
+ {
2
+ "internal": true,
3
+ "main": "../dist/es5/index.js",
4
+ "module": "../dist/esm/index.js",
5
+ "types": "index.d.ts"
6
+ }
@@ -0,0 +1,33 @@
1
+ declare class ScreenGridCellLayer extends Layer<any> {
2
+ static isSupported(gl: any): any;
3
+ constructor(...propObjects: Partial<any>[]);
4
+ calculateInstancePositions(attribute: any, { numInstances }: {
5
+ numInstances: any;
6
+ }): void;
7
+ _getModel(gl: any): any;
8
+ _shouldUseMinMax(): boolean;
9
+ _updateUniforms(oldProps: any, props: any, changeFlags: any): void;
10
+ }
11
+ declare namespace ScreenGridCellLayer {
12
+ export const layerName: string;
13
+ export { defaultProps };
14
+ }
15
+ export default ScreenGridCellLayer;
16
+ import { Layer } from '@deck.gl/core/typed';
17
+ declare namespace defaultProps {
18
+ export namespace cellSizePixels {
19
+ const value: number;
20
+ const min: number;
21
+ }
22
+ export namespace cellMarginPixels {
23
+ const value_1: number;
24
+ export { value_1 as value };
25
+ const min_1: number;
26
+ export { min_1 as min };
27
+ export const max: number;
28
+ }
29
+ export const colorDomain: null;
30
+ export { defaultColorRange as colorRange };
31
+ }
32
+ import { defaultColorRange } from "../utils/color-utils";
33
+ //# sourceMappingURL=screen-grid-cell-layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screen-grid-cell-layer.d.ts","sourceRoot":"","sources":["../../src/screen-grid-layer/screen-grid-cell-layer.js"],"names":[],"mappings":"AAuCA;IACE,iCAEC;IAhCiB,4CAEN;IA4FZ;;aAcC;IAID,wBAYC;IAED,4BAaC;IAED,mEA0BC;CACF"}
@@ -0,0 +1,3 @@
1
+ declare var _default: "#define SHADER_NAME screen-grid-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying float vSampleCount;\n\nvoid main(void) {\n if (vSampleCount <= 0.0) {\n discard;\n }\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n";
2
+ export default _default;
3
+ //# sourceMappingURL=screen-grid-layer-fragment.glsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screen-grid-layer-fragment.glsl.d.ts","sourceRoot":"","sources":["../../src/screen-grid-layer/screen-grid-layer-fragment.glsl.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare var _default: "#define SHADER_NAME screen-grid-layer-vertex-shader\n#define RANGE_COUNT 6\n\nattribute vec3 positions;\nattribute vec3 instancePositions;\nattribute vec4 instanceCounts;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform vec3 cellScale;\nuniform vec4 minColor;\nuniform vec4 maxColor;\nuniform vec4 colorRange[RANGE_COUNT];\nuniform vec2 colorDomain;\nuniform bool shouldUseMinMax;\nuniform sampler2D maxTexture;\n\nvarying vec4 vColor;\nvarying float vSampleCount;\n\nvec4 quantizeScale(vec2 domain, vec4 range[RANGE_COUNT], float value) {\n vec4 outColor = vec4(0., 0., 0., 0.);\n if (value >= domain.x && value <= domain.y) {\n float domainRange = domain.y - domain.x;\n if (domainRange <= 0.) {\n outColor = colorRange[0];\n } else {\n float rangeCount = float(RANGE_COUNT);\n float rangeStep = domainRange / rangeCount;\n float idx = floor((value - domain.x) / rangeStep);\n idx = clamp(idx, 0., rangeCount - 1.);\n int intIdx = int(idx);\n outColor = colorRange[intIdx];\n }\n }\n outColor = outColor / 255.;\n return outColor;\n}\n\nvoid main(void) {\n vSampleCount = instanceCounts.a;\n\n float weight = instanceCounts.r;\n float maxWeight = texture2D(maxTexture, vec2(0.5)).r;\n\n float step = weight / maxWeight;\n vec4 minMaxColor = mix(minColor, maxColor, step) / 255.;\n\n vec2 domain = colorDomain;\n float domainMaxValid = float(colorDomain.y != 0.);\n domain.y = mix(maxWeight, colorDomain.y, domainMaxValid);\n vec4 rangeColor = quantizeScale(domain, colorRange, weight);\n\n float rangeMinMax = float(shouldUseMinMax);\n vec4 color = mix(rangeColor, minMaxColor, rangeMinMax);\n vColor = vec4(color.rgb, color.a * opacity);\n\n // Set color to be rendered to picking fbo (also used to check for selection highlight).\n picking_setPickingColor(instancePickingColors);\n\n gl_Position = vec4(instancePositions + positions * cellScale, 1.);\n}\n";
2
+ export default _default;
3
+ //# sourceMappingURL=screen-grid-layer-vertex.glsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screen-grid-layer-vertex.glsl.d.ts","sourceRoot":"","sources":["../../src/screen-grid-layer/screen-grid-layer-vertex.glsl.js"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ declare class ScreenGridLayer extends GridAggregationLayer {
2
+ _updateAccessors(opts: any): void;
3
+ _resetResults(): void;
4
+ }
5
+ declare namespace ScreenGridLayer {
6
+ export const layerName: string;
7
+ export { defaultProps };
8
+ }
9
+ export default ScreenGridLayer;
10
+ import GridAggregationLayer from "../grid-aggregation-layer";
11
+ declare const defaultProps: {
12
+ getPosition: {
13
+ type: string;
14
+ value: (d: any) => any;
15
+ };
16
+ getWeight: {
17
+ type: string;
18
+ value: number;
19
+ };
20
+ gpuAggregation: boolean;
21
+ aggregation: string;
22
+ cellSizePixels: {
23
+ value: number;
24
+ min: number;
25
+ };
26
+ cellMarginPixels: {
27
+ value: number;
28
+ min: number;
29
+ max: number;
30
+ };
31
+ colorDomain: null;
32
+ colorRange: number[][];
33
+ };
34
+ //# sourceMappingURL=screen-grid-layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screen-grid-layer.d.ts","sourceRoot":"","sources":["../../src/screen-grid-layer/screen-grid-layer.js"],"names":[],"mappings":"AAgDA;IAqLE,kCAQC;IAED,sBAKC;CACF;;;;;;;AAzND;;;;;;;;;;;;;;;;;;;;;;EAOE"}
@@ -0,0 +1,13 @@
1
+ export function getMean(pts: any, accessor: any): any;
2
+ export function getSum(pts: any, accessor: any): any;
3
+ export function getMax(pts: any, accessor: any): any;
4
+ export function getMin(pts: any, accessor: any): any;
5
+ export function getValueFunc(aggregation: any, accessor: any, context: any): ((pts: any) => any) | null;
6
+ export function wrapGetValueFunc(getValue: any, context?: {}): (pts: any) => any;
7
+ export namespace AGGREGATION_OPERATION {
8
+ const SUM: number;
9
+ const MEAN: number;
10
+ const MIN: number;
11
+ const MAX: number;
12
+ }
13
+ //# sourceMappingURL=aggregation-operation-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregation-operation-utils.d.ts","sourceRoot":"","sources":["../../src/utils/aggregation-operation-utils.js"],"names":[],"mappings":"AAuCA,sDAOC;AAED,qDAOC;AAED,qDAOC;AAED,qDAOC;AAGD,wGAeC;AAYD,iFAQC"}
@@ -0,0 +1,46 @@
1
+ export default class BinSorter {
2
+ constructor(bins?: any[], props?: {
3
+ getValue: (points: any) => any;
4
+ getPoints: (bin: any) => any;
5
+ getIndex: (bin: any) => any;
6
+ filterData: null;
7
+ });
8
+ aggregatedBins: any[];
9
+ binMap: any;
10
+ /**
11
+ * Get an array of object with aggregated values and index of bins
12
+ * Array object will be sorted by value optionally.
13
+ * @param {Array} bins
14
+ * @param {Function} getValue
15
+ * @return {Array} array of values and index lookup
16
+ */
17
+ getAggregatedBins(bins: any[], props: any): any[];
18
+ _percentileToIndex(percentileRange: any): number[];
19
+ /**
20
+ * Get a mapping from cell/hexagon index to sorted bin
21
+ * This is used to retrieve bin value for color calculation
22
+ * @return {Object} bin index to aggregatedBins
23
+ */
24
+ getBinMap(): any;
25
+ /**
26
+ * Get ths max count of all bins
27
+ * @return {Number | Boolean} max count
28
+ */
29
+ _updateMinMaxValues(): number | boolean;
30
+ maxCount: number | undefined;
31
+ maxValue: number | undefined;
32
+ minValue: number | undefined;
33
+ totalCount: number | undefined;
34
+ /**
35
+ * Get range of values of all bins
36
+ * @param {Number[]} range
37
+ * @param {Number} range[0] - lower bound
38
+ * @param {Number} range[1] - upper bound
39
+ * @return {Array} array of new value range
40
+ */
41
+ getValueRange(percentileRange: any): any[];
42
+ sortedBins: any[] | undefined;
43
+ getValueDomainByScale(scale: any, [lower, upper]?: [(number | undefined)?, (number | undefined)?]): any;
44
+ _getScaleDomain(scaleType: any, [lowerIdx, upperIdx]: [any, any]): any;
45
+ }
46
+ //# sourceMappingURL=bin-sorter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin-sorter.d.ts","sourceRoot":"","sources":["../../src/utils/bin-sorter.js"],"names":[],"mappings":"AA6CA;IACE;;;;;OAIC;IAHC,sBAAyD;IAEzD,YAA8B;IAGhC;;;;;;OAMG;IACH,kDAmCC;IAED,mDAYC;IAED;;;;OAIG;IACH,iBAMC;IAID;;;OAGG;IACH,uBAFY,gBAAgB,CAiB3B;IAJC,6BAAwB;IACxB,6BAAwB;IACxB,6BAAwB;IACxB,+BAA4B;IAG9B;;;;;;OAMG;IACH,2CAiBC;IAfG,8BAAiF;IAiBrF,wGAUC;IAED,uEAiBC;CACF"}
@@ -0,0 +1,3 @@
1
+ export function colorRangeToFlatArray(colorRange: any, normalize?: boolean, ArrayType?: Float32ArrayConstructor): Float32Array;
2
+ export const defaultColorRange: number[][];
3
+ //# sourceMappingURL=color-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-utils.d.ts","sourceRoot":"","sources":["../../src/utils/color-utils.js"],"names":[],"mappings":"AA8BA,+HA0BC;AApCD,2CAOE"}