@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,155 @@
1
+ export default class CPUAggregator {
2
+ static defaultDimensions(): ({
3
+ key: string;
4
+ accessor: string;
5
+ pickingInfo: string;
6
+ getBins: {
7
+ triggers: {
8
+ value: {
9
+ prop: string;
10
+ updateTrigger: string;
11
+ };
12
+ weight: {
13
+ prop: string;
14
+ updateTrigger: string;
15
+ };
16
+ aggregation: {
17
+ prop: string;
18
+ };
19
+ filterData: {
20
+ prop: string;
21
+ updateTrigger: string;
22
+ };
23
+ };
24
+ };
25
+ getDomain: {
26
+ triggers: {
27
+ lowerPercentile: {
28
+ prop: string;
29
+ };
30
+ upperPercentile: {
31
+ prop: string;
32
+ };
33
+ scaleType: {
34
+ prop: string;
35
+ };
36
+ };
37
+ };
38
+ getScaleFunc: {
39
+ triggers: {
40
+ domain: {
41
+ prop: string;
42
+ };
43
+ range: {
44
+ prop: string;
45
+ };
46
+ };
47
+ onSet: {
48
+ props: string;
49
+ };
50
+ };
51
+ nullValue: number[];
52
+ } | {
53
+ key: string;
54
+ accessor: string;
55
+ pickingInfo: string;
56
+ getBins: {
57
+ triggers: {
58
+ value: {
59
+ prop: string;
60
+ updateTrigger: string;
61
+ };
62
+ weight: {
63
+ prop: string;
64
+ updateTrigger: string;
65
+ };
66
+ aggregation: {
67
+ prop: string;
68
+ };
69
+ filterData: {
70
+ prop: string;
71
+ updateTrigger: string;
72
+ };
73
+ };
74
+ };
75
+ getDomain: {
76
+ triggers: {
77
+ lowerPercentile: {
78
+ prop: string;
79
+ };
80
+ upperPercentile: {
81
+ prop: string;
82
+ };
83
+ scaleType: {
84
+ prop: string;
85
+ };
86
+ };
87
+ };
88
+ getScaleFunc: {
89
+ triggers: {
90
+ domain: {
91
+ prop: string;
92
+ };
93
+ range: {
94
+ prop: string;
95
+ };
96
+ };
97
+ onSet: {
98
+ props: string;
99
+ };
100
+ };
101
+ nullValue: number;
102
+ })[];
103
+ constructor(opts: any);
104
+ state: {
105
+ layerData: {};
106
+ dimensions: {};
107
+ };
108
+ changeFlags: {};
109
+ dimensionUpdaters: {};
110
+ _getCellSize: any;
111
+ _getAggregator: any;
112
+ updateState(opts: any, aggregationParams: any): {
113
+ layerData: {};
114
+ dimensions: {};
115
+ };
116
+ setState(updateObject: any): void;
117
+ setDimensionState(key: any, updateObject: any): void;
118
+ normalizeResult(result?: {}): {};
119
+ getAggregatedData(props: any, aggregationParams: any): void;
120
+ updateGetValueFuncs(oldProps: any, props: any, changeFlags: any): void;
121
+ needsReProjectPoints(oldProps: any, props: any, changeFlags: any): any;
122
+ addDimension(dimensions: any): void;
123
+ _addDimension(dimensions?: any[]): void;
124
+ getDimensionUpdaters({ key, accessor, pickingInfo, getBins, getDomain, getScaleFunc, nullValue }: {
125
+ key: any;
126
+ accessor: any;
127
+ pickingInfo: any;
128
+ getBins: any;
129
+ getDomain: any;
130
+ getScaleFunc: any;
131
+ nullValue: any;
132
+ }): {
133
+ key: any;
134
+ accessor: any;
135
+ pickingInfo: any;
136
+ getBins: any;
137
+ getDomain: any;
138
+ getScaleFunc: any;
139
+ attributeAccessor: (cell: any) => any;
140
+ };
141
+ needUpdateDimensionStep(dimensionStep: any, oldProps: any, props: any, changeFlags: any): boolean;
142
+ getDimensionChanges(oldProps: any, props: any, changeFlags: any): any[] | null;
143
+ getUpdateTriggers(props: any): {};
144
+ getSortedBins(props: any): void;
145
+ getDimensionSortedBins(props: any, dimensionUpdater: any): void;
146
+ getDimensionValueDomain(props: any, dimensionUpdater: any): void;
147
+ getDimensionScale(props: any, dimensionUpdater: any): void;
148
+ getSubLayerDimensionAttribute(key: any, nullValue: any): (cell: any) => any;
149
+ getSubLayerAccessors(props: any): {};
150
+ getPickingInfo({ info }: {
151
+ info: any;
152
+ }): any;
153
+ getAccessor(dimensionKey: any): any;
154
+ }
155
+ //# sourceMappingURL=cpu-aggregator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpu-aggregator.d.ts","sourceRoot":"","sources":["../../src/utils/cpu-aggregator.js"],"names":[],"mappings":"AA2HA;IA2BE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAEC;IA5BD,uBAwBC;IAvBC;;;MAgBC;IACD,gBAAqB;IACrB,sBAA2B;IAE3B,kBAA0D;IAC1D,oBAAwC;IAQ1C;;;MAkBC;IAGD,kCAEC;IAGD,qDAOC;IAED,iCASC;IAED,4DAWC;IAED,uEAwBC;IAED,uEAOC;IAGD,oCAEC;IAED,wCAWC;IAED;;;;;;;;;;;;;;;;MAUC;IAED,kGAgCC;IAED,+EA4BC;IAED,kCAiCC;IAED,gCAIC;IAED,gEAUC;IAED,iEAYC;IAED,2DAeC;IAED,4EAiBC;IAED,qCAQC;IAED;;YA2BC;IAED,oCAKC;CACF"}
@@ -0,0 +1,3 @@
1
+ declare var _default: "#version 300 es\n#define SHADER_NAME gpu-aggregation-all-fs\n\nprecision highp float;\n\nin vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform bool combineMaxMin;\nout vec4 fragColor;\nvoid main(void) {\n vec4 textureColor = texture(uSampler, vec2(vTextureCoord.s, vTextureCoord.t));\n if (textureColor.a == 0.) {\n discard;\n }\n fragColor.rgb = textureColor.rgb;\n // if combineMinMax is true, use Alpha channel for first weights min value.\n fragColor.a = combineMaxMin ? textureColor.r : textureColor.a;\n}\n";
2
+ export default _default;
3
+ //# sourceMappingURL=aggregate-all-fs.glsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregate-all-fs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/aggregate-all-fs.glsl.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare var _default: "#version 300 es\n#define SHADER_NAME gpu-aggregation-all-vs-64\n\nin vec2 position;\nuniform ivec2 gridSize;\nout vec2 vTextureCoord;\n\nvoid main(void) {\n // Map each position to single pixel\n vec2 pos = vec2(-1.0, -1.0);\n\n // Move to pixel center, pixel-size in screen sapce (2/gridSize) * 0.5 => 1/gridSize\n vec2 offset = 1.0 / vec2(gridSize);\n pos = pos + offset;\n\n gl_Position = vec4(pos, 0.0, 1.0);\n\n int yIndex = gl_InstanceID / gridSize[0];\n int xIndex = gl_InstanceID - (yIndex * gridSize[0]);\n\n vec2 yIndexFP64 = vec2(float(yIndex), 0.);\n vec2 xIndexFP64 = vec2(float(xIndex), 0.);\n vec2 gridSizeYFP64 = vec2(gridSize[1], 0.);\n vec2 gridSizeXFP64 = vec2(gridSize[0], 0.);\n\n vec2 texCoordXFP64 = div_fp64(yIndexFP64, gridSizeYFP64);\n vec2 texCoordYFP64 = div_fp64(xIndexFP64, gridSizeXFP64);\n\n vTextureCoord = vec2(texCoordYFP64.x, texCoordXFP64.x);\n // Enforce default value for ANGLE issue (https://bugs.chromium.org/p/angleproject/issues/detail?id=3941)\n gl_PointSize = 1.0;\n}\n";
2
+ export default _default;
3
+ //# sourceMappingURL=aggregate-all-vs.glsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregate-all-vs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/aggregate-all-vs.glsl.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare var _default: "#define SHADER_NAME gpu-aggregation-to-grid-fs\n\nprecision highp float;\n\nvarying vec3 vWeights;\n\nvoid main(void) {\n gl_FragColor = vec4(vWeights, 1.0);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n";
2
+ export default _default;
3
+ //# sourceMappingURL=aggregate-to-grid-fs.glsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregate-to-grid-fs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/aggregate-to-grid-fs.glsl.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare var _default: "#define SHADER_NAME gpu-aggregation-to-grid-vs\n\nattribute vec3 positions;\nattribute vec3 positions64Low;\nattribute vec3 weights;\nuniform vec2 cellSize;\nuniform vec2 gridSize;\nuniform bool projectPoints;\nuniform vec2 translation;\nuniform vec3 scaling;\n\nvarying vec3 vWeights;\n\nvec2 project_to_pixel(vec4 pos) {\n vec4 result;\n pos.xy = pos.xy/pos.w;\n result = pos + vec4(translation, 0., 0.);\n result.xy = scaling.z > 0. ? result.xy * scaling.xy : result.xy;\n return result.xy;\n}\n\nvoid main(void) {\n\n vWeights = weights;\n\n vec4 windowPos = vec4(positions, 1.);\n if (projectPoints) {\n windowPos = project_position_to_clipspace(positions, positions64Low, vec3(0));\n }\n\n vec2 pos = project_to_pixel(windowPos);\n\n vec2 pixelXY64[2];\n pixelXY64[0] = vec2(pos.x, 0.);\n pixelXY64[1] = vec2(pos.y, 0.);\n\n // Transform (0,0):windowSize -> (0, 0): gridSize\n vec2 gridXY64[2];\n gridXY64[0] = div_fp64(pixelXY64[0], vec2(cellSize.x, 0));\n gridXY64[1] = div_fp64(pixelXY64[1], vec2(cellSize.y, 0));\n float x = floor(gridXY64[0].x);\n float y = floor(gridXY64[1].x);\n pos = vec2(x, y);\n\n // Transform (0,0):gridSize -> (-1, -1):(1,1)\n pos = (pos * (2., 2.) / (gridSize)) - (1., 1.);\n\n // Move to pixel center, pixel-size in screen sapce (2/gridSize) * 0.5 => 1/gridSize\n vec2 offset = 1.0 / gridSize;\n pos = pos + offset;\n\n gl_Position = vec4(pos, 0.0, 1.0);\n\n // Enforce default value for ANGLE issue (https://bugs.chromium.org/p/angleproject/issues/detail?id=3941)\n gl_PointSize = 1.0;\n}\n";
2
+ export default _default;
3
+ //# sourceMappingURL=aggregate-to-grid-vs.glsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregate-to-grid-vs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/aggregate-to-grid-vs.glsl.js"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ export namespace DEFAULT_RUN_PARAMS {
2
+ const projectPoints: boolean;
3
+ const viewport: null;
4
+ const createBufferObjects: boolean;
5
+ const moduleSettings: {};
6
+ }
7
+ export const MAX_32_BIT_FLOAT: 3.402823466e+38;
8
+ export const MIN_BLEND_EQUATION: number[];
9
+ export const MAX_BLEND_EQUATION: number[];
10
+ export const MAX_MIN_BLEND_EQUATION: number[];
11
+ export const EQUATION_MAP: {
12
+ [x: number]: number | number[];
13
+ };
14
+ export const ELEMENTCOUNT: 4;
15
+ export namespace DEFAULT_WEIGHT_PARAMS {
16
+ const size: number;
17
+ const operation: number;
18
+ const needMin: boolean;
19
+ const needMax: boolean;
20
+ const combineMaxMin: boolean;
21
+ }
22
+ export const PIXEL_SIZE: 4;
23
+ export const WEIGHT_SIZE: 3;
24
+ export namespace MAX_MIN_TEXTURE_OPTS {
25
+ const format: number;
26
+ const type: number;
27
+ const border: number;
28
+ const mipmaps: boolean;
29
+ const parameters: {
30
+ [x: number]: number;
31
+ };
32
+ const dataFormat: number;
33
+ const width: number;
34
+ const height: number;
35
+ }
36
+ //# sourceMappingURL=gpu-grid-aggregator-constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpu-grid-aggregator-constants.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.js"],"names":[],"mappings":";;;;;;AAUA,+CAA+C;AAC/C,0CAAwD;AACxD,0CAAwD;AACxD,8CAAuD;AACvD;;EAKE;AAEF,6BAA8B;;;;;;;;AAS9B,2BAA4B;AAC5B,4BAA6B"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=gpu-grid-aggregator-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpu-grid-aggregator-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/gpu-grid-aggregator-utils.js"],"names":[],"mappings":""}
@@ -0,0 +1,66 @@
1
+ export default class GPUGridAggregator {
2
+ static getAggregationData({ aggregationData, maxData, minData, maxMinData, pixelIndex }: {
3
+ aggregationData: any;
4
+ maxData: any;
5
+ minData: any;
6
+ maxMinData: any;
7
+ pixelIndex: any;
8
+ }): {
9
+ cellCount: any;
10
+ cellWeight: any;
11
+ maxCellWieght: any;
12
+ minCellWeight: any;
13
+ totalCount: any;
14
+ };
15
+ static getCellData({ countsData, size }: {
16
+ countsData: any;
17
+ size?: number | undefined;
18
+ }): {
19
+ cellCounts: Uint32Array;
20
+ cellWeights: Float32Array;
21
+ };
22
+ static isSupported(gl: any): any;
23
+ constructor(gl: any, opts?: {});
24
+ id: any;
25
+ gl: any;
26
+ state: {
27
+ weightAttributes: {};
28
+ textures: {};
29
+ meanTextures: {};
30
+ buffers: {};
31
+ framebuffers: {};
32
+ maxMinFramebuffers: {};
33
+ minFramebuffers: {};
34
+ maxFramebuffers: {};
35
+ equations: {};
36
+ resources: {};
37
+ results: {};
38
+ };
39
+ _hasGPUSupport: any;
40
+ delete(): void;
41
+ run(opts?: {}): {};
42
+ getData(weightId: any): {
43
+ aggregationData: any;
44
+ };
45
+ updateShaders(shaderOptions?: {}): void;
46
+ _normalizeAggregationParams(opts: any): any;
47
+ setState(updateObject: any): void;
48
+ _getAggregateData(opts: any): {};
49
+ _renderAggregateData(opts: any): void;
50
+ _renderToMaxMinTexture(opts: any): void;
51
+ _renderToWeightsTexture(opts: any): void;
52
+ meanTransform: any;
53
+ _runAggregation(opts: any): {};
54
+ _setupFramebuffers(opts: any): void;
55
+ _getMinMaxTexture(name: any): any;
56
+ _setupModels({ numCol, numRow }?: {
57
+ numCol?: number | undefined;
58
+ numRow?: number | undefined;
59
+ }): void;
60
+ gridAggregationModel: any;
61
+ allAggregationModel: any;
62
+ _setupWeightAttributes(opts: any): void;
63
+ _trackGPUResultBuffers(results: any, weights: any): void;
64
+ _updateModels(opts: any): void;
65
+ }
66
+ //# sourceMappingURL=gpu-grid-aggregator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpu-grid-aggregator.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/gpu-grid-aggregator.js"],"names":[],"mappings":"AAmEA;IAEE;;;;;;;;;;;;MAqBC;IAGD;;;;;;MAaC;IAED,iCAEC;IA2BD,gCAgCC;IA/BC,QAA0C;IAC1C,QAAY;IACZ;;;;;;;;;;;;MAiBC;IACD,oBAOG;IAOL,eAyBC;IAGD,mBAQC;IAKD;;MAqBC;IAED,wCAEC;IAID,4CAOC;IAGD,kCAEC;IAID,iCA6CC;IAED,sCAwEC;IAGD,wCAyBC;IAGD,yCAoDC;IAZK,mBAA2D;IAcjE,+BAOC;IAID,oCAsEC;IAGD,kCAMC;IAED;;;aASC;IALC,0BAAkE;IAGhE,yBAAoE;IAKxE,wCAMC;IAID,yDAiBC;IAGD,+BAgBC;CACF"}
@@ -0,0 +1,3 @@
1
+ declare var _default: "#define SHADER_NAME gpu-aggregation-transform-mean-vs\nattribute vec4 aggregationValues;\nvarying vec4 meanValues;\n\nvoid main()\n{\n // TODO: Use 64-bit division ?? not needed given this is aggregation ??\n bool isCellValid = bool(aggregationValues.w > 0.);\n // aggregationValues: XYZ contain aggregated values, W contains count\n meanValues.xyz = isCellValid ? aggregationValues.xyz/aggregationValues.w : vec3(0, 0, 0);\n meanValues.w = aggregationValues.w;\n\n // Enforce default value for ANGLE issue (https://bugs.chromium.org/p/angleproject/issues/detail?id=3941)\n gl_PointSize = 1.0;\n}\n";
2
+ export default _default;
3
+ //# sourceMappingURL=transform-mean-vs.glsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transform-mean-vs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/transform-mean-vs.glsl.js"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ export function getBoundingBox(attributes: any, vertexCount: any): {
2
+ xMin: any;
3
+ xMax: any;
4
+ yMin: any;
5
+ yMax: any;
6
+ };
7
+ export function alignToCell(inValue: any, cellSize: any): number;
8
+ /**
9
+ * Based on geometric center of sample points, calculate cellSize in lng/lat (degree) space
10
+ * @param {object} boundingBox - {xMin, yMin, xMax, yMax} contains bounding box of data
11
+ * @param {number} cellSize - grid cell size in meters
12
+ * @param {boolean, optional} converToDegrees - when true offsets are converted from meters to lng/lat (degree) space
13
+ * @returns {xOffset, yOffset} - cellSize size
14
+ */
15
+ export function getGridOffset(boundingBox: object, cellSize: number, convertToMeters?: boolean): any;
16
+ export function getGridParams(boundingBox: any, cellSize: any, viewport: any, coordinateSystem: any): {
17
+ gridOffset: any;
18
+ translation: number[];
19
+ width: any;
20
+ height: any;
21
+ numCol: number;
22
+ numRow: number;
23
+ };
24
+ //# sourceMappingURL=grid-aggregation-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-aggregation-utils.d.ts","sourceRoot":"","sources":["../../src/utils/grid-aggregation-utils.js"],"names":[],"mappings":"AASA;;;;;EA4BC;AA4BD,iEAQC;AAED;;;;;;GAMG;AAEH,2CANW,MAAM,YACN,MAAM,kCAchB;AAED;;;;;;;EAiBC"}
@@ -0,0 +1,2 @@
1
+ export function filterProps(props: any, filterKeys: any): {};
2
+ //# sourceMappingURL=prop-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prop-utils.d.ts","sourceRoot":"","sources":["../../src/utils/prop-utils.js"],"names":[],"mappings":"AAoBA,6DAQC"}
@@ -0,0 +1,4 @@
1
+ export function getFloatTexture(gl: any, opts?: {}): any;
2
+ export function getFramebuffer(gl: any, opts: any): any;
3
+ export function getFloatArray(array: any, size: any, fillValue?: number): any;
4
+ //# sourceMappingURL=resource-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource-utils.d.ts","sourceRoot":"","sources":["../../src/utils/resource-utils.js"],"names":[],"mappings":"AAQA,yDAqBC;AAED,wDAYC;AAED,8EAKC"}
@@ -0,0 +1,15 @@
1
+ export function getScale(domain: any, range: any, scaleFunction: any): any;
2
+ export function getQuantizeScale(domain: any, range: any): any;
3
+ export function getLinearScale(domain: any, range: any): any;
4
+ export function getQuantileScale(domain: any, range: any): any;
5
+ export function getOrdinalScale(domain: any, range: any): any;
6
+ export function quantizeScale(domain: any, range: any, value: any): any;
7
+ export function linearScale(domain: any, range: any, value: any): any;
8
+ export function unique(values: any): any[];
9
+ export function getLinearDomain(data: any, valueAccessor: any): any[];
10
+ export function getQuantileDomain(data: any, valueAccessor: any): any;
11
+ export function getOrdinalDomain(data: any, valueAccessor: any): any[];
12
+ export function getScaleDomain(scaleType: any, data: any, valueAccessor: any): any;
13
+ export function clamp(value: any, min: any, max: any): number;
14
+ export function getScaleFunctionByScaleType(scaleType: any): typeof getQuantizeScale;
15
+ //# sourceMappingURL=scale-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale-utils.d.ts","sourceRoot":"","sources":["../../src/utils/scale-utils.js"],"names":[],"mappings":"AAuBA,2EAMC;AAKD,+DAIC;AAGD,6DAIC;AAED,+DAcC;AAqDD,8DAaC;AAID,wEAWC;AAGD,sEAEC;AAOD,2CASC;AAOD,sEAGC;AAED,sEAEC;AAED,uEAEC;AAED,mFAeC;AAED,8DAEC;AAED,qFAcC"}