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

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 (229) hide show
  1. package/dist/dist.dev.js +757 -645
  2. package/dist/es5/aggregation-layer.js +19 -7
  3. package/dist/es5/aggregation-layer.js.map +1 -1
  4. package/dist/es5/contour-layer/contour-layer.js +5 -5
  5. package/dist/es5/contour-layer/contour-layer.js.map +1 -1
  6. package/dist/es5/contour-layer/contour-utils.js +1 -1
  7. package/dist/es5/contour-layer/contour-utils.js.map +1 -1
  8. package/dist/es5/contour-layer/marching-squares-codes.js.map +1 -1
  9. package/dist/es5/contour-layer/marching-squares.js.map +1 -1
  10. package/dist/es5/cpu-grid-layer/cpu-grid-layer.js +5 -3
  11. package/dist/es5/cpu-grid-layer/cpu-grid-layer.js.map +1 -1
  12. package/dist/es5/gpu-grid-layer/gpu-grid-cell-layer-vertex.glsl.js +1 -1
  13. package/dist/es5/gpu-grid-layer/gpu-grid-cell-layer.js +8 -8
  14. package/dist/es5/gpu-grid-layer/gpu-grid-cell-layer.js.map +1 -1
  15. package/dist/es5/gpu-grid-layer/gpu-grid-layer.js +12 -12
  16. package/dist/es5/gpu-grid-layer/gpu-grid-layer.js.map +1 -1
  17. package/dist/es5/grid-aggregation-layer.js +25 -12
  18. package/dist/es5/grid-aggregation-layer.js.map +1 -1
  19. package/dist/es5/grid-layer/grid-layer.js +18 -9
  20. package/dist/es5/grid-layer/grid-layer.js.map +1 -1
  21. package/dist/es5/heatmap-layer/heatmap-layer-utils.js.map +1 -1
  22. package/dist/es5/heatmap-layer/heatmap-layer.js +17 -6
  23. package/dist/es5/heatmap-layer/heatmap-layer.js.map +1 -1
  24. package/dist/es5/heatmap-layer/max-vs.glsl.js +1 -1
  25. package/dist/es5/heatmap-layer/triangle-layer-fragment.glsl.js +1 -1
  26. package/dist/es5/heatmap-layer/triangle-layer-vertex.glsl.js +1 -1
  27. package/dist/es5/heatmap-layer/triangle-layer.js +7 -7
  28. package/dist/es5/heatmap-layer/triangle-layer.js.map +1 -1
  29. package/dist/es5/heatmap-layer/weights-fs.glsl.js +1 -1
  30. package/dist/es5/heatmap-layer/weights-vs.glsl.js +1 -1
  31. package/dist/es5/hexagon-layer/hexagon-layer.js +16 -5
  32. package/dist/es5/hexagon-layer/hexagon-layer.js.map +1 -1
  33. package/dist/es5/index.js.map +1 -1
  34. package/dist/es5/screen-grid-layer/screen-grid-cell-layer.js +26 -19
  35. package/dist/es5/screen-grid-layer/screen-grid-cell-layer.js.map +1 -1
  36. package/dist/es5/screen-grid-layer/screen-grid-layer-vertex.glsl.js +1 -1
  37. package/dist/es5/screen-grid-layer/screen-grid-layer.js +18 -8
  38. package/dist/es5/screen-grid-layer/screen-grid-layer.js.map +1 -1
  39. package/dist/es5/types.js +2 -0
  40. package/dist/es5/types.js.map +1 -0
  41. package/dist/es5/utils/bin-sorter.js +9 -0
  42. package/dist/es5/utils/bin-sorter.js.map +1 -1
  43. package/dist/esm/aggregation-layer.js +12 -5
  44. package/dist/esm/aggregation-layer.js.map +1 -1
  45. package/dist/esm/contour-layer/contour-layer.js +6 -3
  46. package/dist/esm/contour-layer/contour-layer.js.map +1 -1
  47. package/dist/esm/contour-layer/contour-utils.js +1 -1
  48. package/dist/esm/contour-layer/contour-utils.js.map +1 -1
  49. package/dist/esm/contour-layer/marching-squares-codes.js.map +1 -1
  50. package/dist/esm/contour-layer/marching-squares.js.map +1 -1
  51. package/dist/esm/cpu-grid-layer/cpu-grid-layer.js +6 -3
  52. package/dist/esm/cpu-grid-layer/cpu-grid-layer.js.map +1 -1
  53. package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer-fragment.glsl.js.map +1 -1
  54. package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer-vertex.glsl.js +1 -1
  55. package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer-vertex.glsl.js.map +1 -1
  56. package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer.js +8 -6
  57. package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer.js.map +1 -1
  58. package/dist/esm/gpu-grid-layer/gpu-grid-layer.js +11 -9
  59. package/dist/esm/gpu-grid-layer/gpu-grid-layer.js.map +1 -1
  60. package/dist/esm/grid-aggregation-layer.js +13 -5
  61. package/dist/esm/grid-aggregation-layer.js.map +1 -1
  62. package/dist/esm/grid-layer/grid-layer.js +15 -8
  63. package/dist/esm/grid-layer/grid-layer.js.map +1 -1
  64. package/dist/esm/heatmap-layer/heatmap-layer-utils.js.map +1 -1
  65. package/dist/esm/heatmap-layer/heatmap-layer.js +22 -13
  66. package/dist/esm/heatmap-layer/heatmap-layer.js.map +1 -1
  67. package/dist/esm/heatmap-layer/max-fs.glsl.js.map +1 -1
  68. package/dist/esm/heatmap-layer/max-vs.glsl.js +1 -1
  69. package/dist/esm/heatmap-layer/max-vs.glsl.js.map +1 -1
  70. package/dist/esm/heatmap-layer/triangle-layer-fragment.glsl.js +1 -1
  71. package/dist/esm/heatmap-layer/triangle-layer-fragment.glsl.js.map +1 -1
  72. package/dist/esm/heatmap-layer/triangle-layer-vertex.glsl.js +1 -1
  73. package/dist/esm/heatmap-layer/triangle-layer-vertex.glsl.js.map +1 -1
  74. package/dist/esm/heatmap-layer/triangle-layer.js +6 -5
  75. package/dist/esm/heatmap-layer/triangle-layer.js.map +1 -1
  76. package/dist/esm/heatmap-layer/weights-fs.glsl.js +1 -1
  77. package/dist/esm/heatmap-layer/weights-fs.glsl.js.map +1 -1
  78. package/dist/esm/heatmap-layer/weights-vs.glsl.js +1 -1
  79. package/dist/esm/heatmap-layer/weights-vs.glsl.js.map +1 -1
  80. package/dist/esm/hexagon-layer/hexagon-layer.js +11 -2
  81. package/dist/esm/hexagon-layer/hexagon-layer.js.map +1 -1
  82. package/dist/esm/index.js.map +1 -1
  83. package/dist/esm/screen-grid-layer/screen-grid-cell-layer.js +16 -10
  84. package/dist/esm/screen-grid-layer/screen-grid-cell-layer.js.map +1 -1
  85. package/dist/esm/screen-grid-layer/screen-grid-layer-fragment.glsl.js.map +1 -1
  86. package/dist/esm/screen-grid-layer/screen-grid-layer-vertex.glsl.js +1 -1
  87. package/dist/esm/screen-grid-layer/screen-grid-layer-vertex.glsl.js.map +1 -1
  88. package/dist/esm/screen-grid-layer/screen-grid-layer.js +15 -7
  89. package/dist/esm/screen-grid-layer/screen-grid-layer.js.map +1 -1
  90. package/dist/esm/types.js +2 -0
  91. package/dist/esm/types.js.map +1 -0
  92. package/dist/esm/utils/bin-sorter.js +16 -0
  93. package/dist/esm/utils/bin-sorter.js.map +1 -1
  94. package/dist.min.js +1 -1
  95. package/package.json +6 -4
  96. package/src/{aggregation-layer.js → aggregation-layer.ts} +32 -15
  97. package/src/contour-layer/{contour-layer.js → contour-layer.ts} +95 -15
  98. package/src/contour-layer/{contour-utils.js → contour-utils.ts} +11 -5
  99. package/src/contour-layer/{marching-squares-codes.js → marching-squares-codes.ts} +0 -0
  100. package/src/contour-layer/{marching-squares.js → marching-squares.ts} +6 -6
  101. package/src/cpu-grid-layer/cpu-grid-layer.ts +310 -0
  102. package/src/gpu-grid-layer/{gpu-grid-cell-layer-fragment.glsl.js → gpu-grid-cell-layer-fragment.glsl.ts} +0 -0
  103. package/src/gpu-grid-layer/{gpu-grid-cell-layer-vertex.glsl.js → gpu-grid-cell-layer-vertex.glsl.ts} +0 -0
  104. package/src/gpu-grid-layer/{gpu-grid-cell-layer.js → gpu-grid-cell-layer.ts} +22 -14
  105. package/src/gpu-grid-layer/{gpu-grid-layer.js → gpu-grid-layer.ts} +122 -17
  106. package/src/{grid-aggregation-layer.js → grid-aggregation-layer.ts} +25 -13
  107. package/src/grid-layer/{grid-layer.js → grid-layer.ts} +38 -13
  108. package/src/heatmap-layer/{heatmap-layer-utils.js → heatmap-layer-utils.ts} +5 -5
  109. package/src/heatmap-layer/{heatmap-layer.js → heatmap-layer.ts} +138 -29
  110. package/src/heatmap-layer/{max-fs.glsl.js → max-fs.glsl.ts} +0 -0
  111. package/src/heatmap-layer/{max-vs.glsl.js → max-vs.glsl.ts} +0 -0
  112. package/src/heatmap-layer/{triangle-layer-fragment.glsl.js → triangle-layer-fragment.glsl.ts} +0 -0
  113. package/src/heatmap-layer/{triangle-layer-vertex.glsl.js → triangle-layer-vertex.glsl.ts} +0 -0
  114. package/src/heatmap-layer/{triangle-layer.js → triangle-layer.ts} +20 -10
  115. package/src/heatmap-layer/{weights-fs.glsl.js → weights-fs.glsl.ts} +0 -0
  116. package/src/heatmap-layer/{weights-vs.glsl.js → weights-vs.glsl.ts} +0 -0
  117. package/src/hexagon-layer/{hexagon-layer.js → hexagon-layer.ts} +174 -9
  118. package/src/index.ts +9 -0
  119. package/src/screen-grid-layer/{screen-grid-cell-layer.js → screen-grid-cell-layer.ts} +31 -14
  120. package/src/screen-grid-layer/{screen-grid-layer-fragment.glsl.js → screen-grid-layer-fragment.glsl.ts} +0 -0
  121. package/src/screen-grid-layer/{screen-grid-layer-vertex.glsl.js → screen-grid-layer-vertex.glsl.ts} +0 -0
  122. package/src/screen-grid-layer/{screen-grid-layer.js → screen-grid-layer.ts} +117 -15
  123. package/src/types.ts +10 -0
  124. package/src/utils/{bin-sorter.js → bin-sorter.ts} +26 -11
  125. package/typed/aggregation-layer.d.ts +16 -11
  126. package/typed/aggregation-layer.d.ts.map +1 -1
  127. package/typed/aggregation-layer.js +151 -0
  128. package/typed/contour-layer/contour-layer.d.ts +92 -36
  129. package/typed/contour-layer/contour-layer.d.ts.map +1 -1
  130. package/typed/contour-layer/contour-layer.js +234 -0
  131. package/typed/contour-layer/contour-utils.d.ts +8 -9
  132. package/typed/contour-layer/contour-utils.d.ts.map +1 -1
  133. package/typed/contour-layer/contour-utils.js +64 -0
  134. package/typed/contour-layer/marching-squares-codes.d.ts +2 -2
  135. package/typed/contour-layer/marching-squares-codes.d.ts.map +1 -1
  136. package/typed/contour-layer/marching-squares-codes.js +337 -0
  137. package/typed/contour-layer/marching-squares.d.ts +6 -6
  138. package/typed/contour-layer/marching-squares.d.ts.map +1 -1
  139. package/typed/contour-layer/marching-squares.js +147 -0
  140. package/typed/cpu-grid-layer/cpu-grid-layer.d.ts +221 -126
  141. package/typed/cpu-grid-layer/cpu-grid-layer.d.ts.map +1 -1
  142. package/typed/cpu-grid-layer/cpu-grid-layer.js +129 -0
  143. package/typed/cpu-grid-layer/grid-aggregator.js +141 -0
  144. package/typed/gpu-grid-layer/gpu-grid-cell-layer-fragment.glsl.d.ts +1 -1
  145. package/typed/gpu-grid-layer/gpu-grid-cell-layer-fragment.glsl.d.ts.map +1 -1
  146. package/typed/gpu-grid-layer/gpu-grid-cell-layer-fragment.glsl.js +34 -0
  147. package/typed/gpu-grid-layer/gpu-grid-cell-layer-vertex.glsl.d.ts +1 -1
  148. package/typed/gpu-grid-layer/gpu-grid-cell-layer-vertex.glsl.d.ts.map +1 -1
  149. package/typed/gpu-grid-layer/gpu-grid-cell-layer-vertex.glsl.js +141 -0
  150. package/typed/gpu-grid-layer/gpu-grid-cell-layer.d.ts +67 -81
  151. package/typed/gpu-grid-layer/gpu-grid-cell-layer.d.ts.map +1 -1
  152. package/typed/gpu-grid-layer/gpu-grid-cell-layer.js +143 -0
  153. package/typed/gpu-grid-layer/gpu-grid-layer.d.ts +131 -62
  154. package/typed/gpu-grid-layer/gpu-grid-layer.d.ts.map +1 -1
  155. package/typed/gpu-grid-layer/gpu-grid-layer.js +289 -0
  156. package/typed/grid-aggregation-layer.d.ts +19 -6
  157. package/typed/grid-aggregation-layer.d.ts.map +1 -1
  158. package/typed/grid-aggregation-layer.js +172 -0
  159. package/typed/grid-layer/grid-layer.d.ts +109 -90
  160. package/typed/grid-layer/grid-layer.d.ts.map +1 -1
  161. package/typed/grid-layer/grid-layer.js +60 -0
  162. package/typed/heatmap-layer/heatmap-layer-utils.d.ts +6 -6
  163. package/typed/heatmap-layer/heatmap-layer-utils.d.ts.map +1 -1
  164. package/typed/heatmap-layer/heatmap-layer-utils.js +78 -0
  165. package/typed/heatmap-layer/heatmap-layer.d.ts +147 -82
  166. package/typed/heatmap-layer/heatmap-layer.d.ts.map +1 -1
  167. package/typed/heatmap-layer/heatmap-layer.js +478 -0
  168. package/typed/heatmap-layer/max-fs.glsl.d.ts +1 -1
  169. package/typed/heatmap-layer/max-fs.glsl.d.ts.map +1 -1
  170. package/typed/heatmap-layer/max-fs.glsl.js +7 -0
  171. package/typed/heatmap-layer/max-vs.glsl.d.ts +1 -1
  172. package/typed/heatmap-layer/max-vs.glsl.d.ts.map +1 -1
  173. package/typed/heatmap-layer/max-vs.glsl.js +12 -0
  174. package/typed/heatmap-layer/triangle-layer-fragment.glsl.d.ts +1 -1
  175. package/typed/heatmap-layer/triangle-layer-fragment.glsl.d.ts.map +1 -1
  176. package/typed/heatmap-layer/triangle-layer-fragment.glsl.js +58 -0
  177. package/typed/heatmap-layer/triangle-layer-vertex.glsl.d.ts +1 -1
  178. package/typed/heatmap-layer/triangle-layer-vertex.glsl.d.ts.map +1 -1
  179. package/typed/heatmap-layer/triangle-layer-vertex.glsl.js +51 -0
  180. package/typed/heatmap-layer/triangle-layer.d.ts +25 -8
  181. package/typed/heatmap-layer/triangle-layer.d.ts.map +1 -1
  182. package/typed/heatmap-layer/triangle-layer.js +67 -0
  183. package/typed/heatmap-layer/weights-fs.glsl.d.ts +1 -1
  184. package/typed/heatmap-layer/weights-fs.glsl.d.ts.map +1 -1
  185. package/typed/heatmap-layer/weights-fs.glsl.js +19 -0
  186. package/typed/heatmap-layer/weights-vs.glsl.d.ts +1 -1
  187. package/typed/heatmap-layer/weights-vs.glsl.d.ts.map +1 -1
  188. package/typed/heatmap-layer/weights-vs.glsl.js +23 -0
  189. package/typed/hexagon-layer/hexagon-aggregator.js +112 -0
  190. package/typed/hexagon-layer/hexagon-layer.d.ts +232 -125
  191. package/typed/hexagon-layer/hexagon-layer.d.ts.map +1 -1
  192. package/typed/hexagon-layer/hexagon-layer.js +171 -0
  193. package/typed/index.d.ts +7 -0
  194. package/typed/index.d.ts.map +1 -1
  195. package/typed/index.js +33 -0
  196. package/typed/screen-grid-layer/screen-grid-cell-layer.d.ts +46 -25
  197. package/typed/screen-grid-layer/screen-grid-cell-layer.d.ts.map +1 -1
  198. package/typed/screen-grid-layer/screen-grid-cell-layer.js +159 -0
  199. package/typed/screen-grid-layer/screen-grid-layer-fragment.glsl.d.ts +1 -1
  200. package/typed/screen-grid-layer/screen-grid-layer-fragment.glsl.d.ts.map +1 -1
  201. package/typed/screen-grid-layer/screen-grid-layer-fragment.glsl.js +37 -0
  202. package/typed/screen-grid-layer/screen-grid-layer-vertex.glsl.d.ts +1 -1
  203. package/typed/screen-grid-layer/screen-grid-layer-vertex.glsl.d.ts.map +1 -1
  204. package/typed/screen-grid-layer/screen-grid-layer-vertex.glsl.js +83 -0
  205. package/typed/screen-grid-layer/screen-grid-layer.d.ts +113 -30
  206. package/typed/screen-grid-layer/screen-grid-layer.d.ts.map +1 -1
  207. package/typed/screen-grid-layer/screen-grid-layer.js +216 -0
  208. package/typed/types.d.ts +11 -0
  209. package/typed/types.d.ts.map +1 -0
  210. package/typed/types.js +1 -0
  211. package/typed/utils/aggregation-operation-utils.js +94 -0
  212. package/typed/utils/bin-sorter.d.ts +27 -21
  213. package/typed/utils/bin-sorter.d.ts.map +1 -1
  214. package/typed/utils/bin-sorter.js +167 -0
  215. package/typed/utils/color-utils.js +53 -0
  216. package/typed/utils/cpu-aggregator.js +417 -0
  217. package/typed/utils/gpu-grid-aggregation/aggregate-all-fs.glsl.js +39 -0
  218. package/typed/utils/gpu-grid-aggregation/aggregate-all-vs.glsl.js +53 -0
  219. package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-fs.glsl.js +31 -0
  220. package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-vs.glsl.js +77 -0
  221. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.js +41 -0
  222. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-utils.js +1 -0
  223. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator.js +562 -0
  224. package/typed/utils/gpu-grid-aggregation/transform-mean-vs.glsl.js +36 -0
  225. package/typed/utils/grid-aggregation-utils.js +114 -0
  226. package/typed/utils/prop-utils.js +28 -0
  227. package/typed/utils/resource-utils.js +40 -0
  228. package/typed/utils/scale-utils.js +184 -0
  229. package/src/cpu-grid-layer/cpu-grid-layer.js +0 -153
@@ -1,10 +1,27 @@
1
- declare class TriangleLayer extends Layer<any> {
2
- constructor(...propObjects: Partial<any>[]);
3
- _getModel(gl: any): any;
1
+ import { Model, Texture2D } from '@luma.gl/core';
2
+ import { Layer, LayerContext } from '@deck.gl/core/typed';
3
+ declare type _TriangleLayerProps = {
4
+ colorDomain: number[];
5
+ aggregationMode: string;
6
+ threshold: number;
7
+ intensity: number;
8
+ vertexCount: number;
9
+ colorTexture: Texture2D;
10
+ maxTexture: Texture2D;
11
+ texture: Texture2D;
12
+ };
13
+ export default class TriangleLayer extends Layer<_TriangleLayerProps> {
14
+ static layerName: string;
15
+ getShaders(): {
16
+ vs: string;
17
+ fs: string;
18
+ modules: import("@deck.gl/core")._ShaderModule<any>[];
19
+ };
20
+ initializeState({ gl }: LayerContext): void;
21
+ _getModel(gl: WebGLRenderingContext): Model;
22
+ draw({ uniforms }: {
23
+ uniforms: any;
24
+ }): void;
4
25
  }
5
- declare namespace TriangleLayer {
6
- const layerName: string;
7
- }
8
- export default TriangleLayer;
9
- import { Layer } from '@deck.gl/core/typed';
26
+ export {};
10
27
  //# sourceMappingURL=triangle-layer.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"triangle-layer.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/triangle-layer.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,KAAK,EAAY,SAAS,EAAC,MAAM,eAAe,CAAC;AACzD,OAAO,EAAC,KAAK,EAAE,YAAY,EAAY,MAAM,eAAe,CAAC;AAI7D,aAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,SAAS,CAAC;IACxB,UAAU,EAAE,SAAS,CAAC;IACtB,OAAO,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK,CAAC,mBAAmB,CAAC;IACnE,MAAM,CAAC,SAAS,SAAmB;IAEnC,UAAU;;;;;IAIV,eAAe,CAAC,EAAC,EAAE,EAAC,EAAE,YAAY,GAAG,IAAI;IAWzC,SAAS,CAAC,EAAE,EAAE,qBAAqB,GAAG,KAAK;IAa3C,IAAI,CAAC,EAAC,QAAQ,EAAC;;KAAA,GAAG,IAAI;CAmBvB"}
@@ -0,0 +1,67 @@
1
+ // Copyright (c) 2015 - 2019 Uber Technologies, Inc.
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in
11
+ // all copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ // THE SOFTWARE.
20
+ import GL from '@luma.gl/constants';
21
+ import { Model, Geometry } from '@luma.gl/core';
22
+ import { Layer, project32 } from '@deck.gl/core';
23
+ import vs from './triangle-layer-vertex.glsl';
24
+ import fs from './triangle-layer-fragment.glsl';
25
+ export default class TriangleLayer extends Layer {
26
+ getShaders() {
27
+ return { vs, fs, modules: [project32] };
28
+ }
29
+ initializeState({ gl }) {
30
+ const attributeManager = this.getAttributeManager();
31
+ attributeManager.add({
32
+ positions: { size: 3, noAlloc: true },
33
+ texCoords: { size: 2, noAlloc: true }
34
+ });
35
+ this.setState({
36
+ model: this._getModel(gl)
37
+ });
38
+ }
39
+ _getModel(gl) {
40
+ const { vertexCount } = this.props;
41
+ return new Model(gl, {
42
+ ...this.getShaders(),
43
+ id: this.props.id,
44
+ geometry: new Geometry({
45
+ drawMode: GL.TRIANGLE_FAN,
46
+ vertexCount
47
+ })
48
+ });
49
+ }
50
+ draw({ uniforms }) {
51
+ const { model } = this.state;
52
+ const { texture, maxTexture, colorTexture, intensity, threshold, aggregationMode, colorDomain } = this.props;
53
+ model
54
+ .setUniforms({
55
+ ...uniforms,
56
+ texture,
57
+ maxTexture,
58
+ colorTexture,
59
+ intensity,
60
+ threshold,
61
+ aggregationMode,
62
+ colorDomain
63
+ })
64
+ .draw();
65
+ }
66
+ }
67
+ TriangleLayer.layerName = 'TriangleLayer';
@@ -1,3 +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";
1
+ declare const _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
2
  export default _default;
3
3
  //# sourceMappingURL=weights-fs.glsl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"weights-fs.glsl.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/weights-fs.glsl.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"weights-fs.glsl.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/weights-fs.glsl.ts"],"names":[],"mappings":";AAAA,wBAkBE"}
@@ -0,0 +1,19 @@
1
+ export default `\
2
+ varying vec4 weightsTexture;
3
+ // Epanechnikov function, keeping for reference
4
+ // float epanechnikovKDE(float u) {
5
+ // return 0.75 * (1.0 - u * u);
6
+ // }
7
+ float gaussianKDE(float u){
8
+ return pow(2.71828, -u*u/0.05555)/(1.77245385*0.166666);
9
+ }
10
+ void main()
11
+ {
12
+ float dist = length(gl_PointCoord - vec2(0.5, 0.5));
13
+ if (dist > 0.5) {
14
+ discard;
15
+ }
16
+ gl_FragColor = weightsTexture * gaussianKDE(2. * dist);
17
+ DECKGL_FILTER_COLOR(gl_FragColor, geometry);
18
+ }
19
+ `;
@@ -1,3 +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";
1
+ declare const _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
2
  export default _default;
3
3
  //# sourceMappingURL=weights-vs.glsl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"weights-vs.glsl.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/weights-vs.glsl.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"weights-vs.glsl.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/weights-vs.glsl.ts"],"names":[],"mappings":";AAAA,wBAsBE"}
@@ -0,0 +1,23 @@
1
+ export default `\
2
+ attribute vec3 positions;
3
+ attribute vec3 positions64Low;
4
+ attribute float weights;
5
+ varying vec4 weightsTexture;
6
+ uniform float radiusPixels;
7
+ uniform float textureWidth;
8
+ uniform vec4 commonBounds;
9
+ uniform float weightsScale;
10
+ void main()
11
+ {
12
+ weightsTexture = vec4(weights * weightsScale, 0., 0., 1.);
13
+
14
+ float radiusTexels = project_pixel_size(radiusPixels) * textureWidth / (commonBounds.z - commonBounds.x);
15
+ gl_PointSize = radiusTexels * 2.;
16
+
17
+ vec3 commonPosition = project_position(positions, positions64Low);
18
+
19
+ // map xy from commonBounds to [-1, 1]
20
+ gl_Position.xy = (commonPosition.xy - commonBounds.xy) / (commonBounds.zw - commonBounds.xy) ;
21
+ gl_Position.xy = (gl_Position.xy * 2.) - (1.);
22
+ }
23
+ `;
@@ -0,0 +1,112 @@
1
+ // Copyright (c) 2015 - 2017 Uber Technologies, Inc.
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in
11
+ // all copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ // THE SOFTWARE.
20
+ import { hexbin } from 'd3-hexbin';
21
+ import { createIterable, log } from '@deck.gl/core';
22
+ /**
23
+ * Use d3-hexbin to performs hexagonal binning from geo points to hexagons
24
+ * @param {Iterable} data - array of points
25
+ * @param {Number} radius - hexagon radius in meter
26
+ * @param {function} getPosition - get points lon lat
27
+ * @param {Object} viewport - current viewport object
28
+
29
+ * @return {Object} - hexagons and countRange
30
+ */
31
+ export function pointToHexbin(props, aggregationParams) {
32
+ const { data, radius } = props;
33
+ const { viewport, attributes } = aggregationParams;
34
+ // get hexagon radius in mercator world unit
35
+ const centerLngLat = data.length ? getPointsCenter(data, aggregationParams) : null;
36
+ const radiusCommon = getRadiusInCommon(radius, viewport, centerLngLat);
37
+ // add world space coordinates to points
38
+ const screenPoints = [];
39
+ const { iterable, objectInfo } = createIterable(data);
40
+ const positions = attributes.positions.value;
41
+ const { size } = attributes.positions.getAccessor();
42
+ for (const object of iterable) {
43
+ objectInfo.index++;
44
+ const posIndex = objectInfo.index * size;
45
+ const position = [positions[posIndex], positions[posIndex + 1]];
46
+ const arrayIsFinite = Number.isFinite(position[0]) && Number.isFinite(position[1]);
47
+ if (arrayIsFinite) {
48
+ screenPoints.push({
49
+ screenCoord: viewport.projectFlat(position),
50
+ source: object,
51
+ index: objectInfo.index
52
+ });
53
+ }
54
+ else {
55
+ log.warn('HexagonLayer: invalid position')();
56
+ }
57
+ }
58
+ const newHexbin = hexbin()
59
+ .radius(radiusCommon)
60
+ .x(d => d.screenCoord[0])
61
+ .y(d => d.screenCoord[1]);
62
+ const hexagonBins = newHexbin(screenPoints);
63
+ return {
64
+ hexagons: hexagonBins.map((hex, index) => ({
65
+ position: viewport.unprojectFlat([hex.x, hex.y]),
66
+ points: hex,
67
+ index
68
+ })),
69
+ radiusCommon
70
+ };
71
+ }
72
+ /**
73
+ * Get the bounding box of all data points
74
+ */
75
+ export function getPointsCenter(data, aggregationParams) {
76
+ const { attributes } = aggregationParams;
77
+ const positions = attributes.positions.value;
78
+ const { size } = attributes.positions.getAccessor();
79
+ let minX = Infinity;
80
+ let minY = Infinity;
81
+ let maxX = -Infinity;
82
+ let maxY = -Infinity;
83
+ let i;
84
+ for (i = 0; i < size * data.length; i += size) {
85
+ const x = positions[i];
86
+ const y = positions[i + 1];
87
+ const arrayIsFinite = Number.isFinite(x) && Number.isFinite(y);
88
+ if (arrayIsFinite) {
89
+ minX = Math.min(x, minX);
90
+ maxX = Math.max(x, maxX);
91
+ minY = Math.min(y, minY);
92
+ maxY = Math.max(y, maxY);
93
+ }
94
+ }
95
+ // return center
96
+ return [minX, minY, maxX, maxY].every(Number.isFinite)
97
+ ? [(minX + maxX) / 2, (minY + maxY) / 2]
98
+ : null;
99
+ }
100
+ /**
101
+ * Get radius in mercator world space coordinates from meter
102
+ * @param {Number} radius - in meter
103
+ * @param {Object} viewport - current viewport object
104
+ * @param {Array<Number>} center - data center
105
+
106
+ * @return {Number} radius in mercator world spcae coordinates
107
+ */
108
+ export function getRadiusInCommon(radius, viewport, center) {
109
+ const { unitsPerMeter } = viewport.getDistanceScales(center);
110
+ // x, y distance should be the same
111
+ return radius * unitsPerMeter[0];
112
+ }
@@ -1,130 +1,237 @@
1
- declare class HexagonLayer extends AggregationLayer {
1
+ import { Accessor, AccessorFunction, Color, Position, UpdateParameters } from '@deck.gl/core/typed';
2
+ import { ColumnLayer, _MaterialProps as MaterialProps } from '@deck.gl/layers/typed';
3
+ import { pointToHexbin } from './hexagon-aggregator';
4
+ import CPUAggregator from '../utils/cpu-aggregator';
5
+ import AggregationLayer, { AggregationLayerProps } from '../aggregation-layer';
6
+ import { AggregateAccessor } from '../types';
7
+ declare function nop(): void;
8
+ /** All properties supported by by HexagonLayer. */
9
+ export declare type HexagonLayerProps<DataT = any> = _HexagonLayerProps<DataT> & AggregationLayerProps<DataT>;
10
+ /** Properties added by HexagonLayer. */
11
+ declare type _HexagonLayerProps<DataT = any> = {
12
+ /**
13
+ * Radius of hexagon bin in meters. The hexagons are pointy-topped (rather than flat-topped).
14
+ * @default 1000
15
+ */
16
+ radius?: number;
17
+ /**
18
+ * Function to aggregate data into hexagonal bins.
19
+ * @default d3-hexbin
20
+ */
21
+ hexagonAggregator?: () => any;
22
+ /**
23
+ * Color scale input domain.
24
+ * @default [min(colorWeight), max(colorWeight)]
25
+ */
26
+ colorDomain?: number[];
27
+ /**
28
+ * Specified as an array of colors [color1, color2, ...].
29
+ * @default `6-class YlOrRd` - [colorbrewer](http://colorbrewer2.org/#type=sequential&scheme=YlOrRd&n=6)
30
+ */
31
+ colorRange?: Color[];
32
+ /**
33
+ * Hexagon radius multiplier, clamped between 0 - 1.
34
+ * @default 1
35
+ */
36
+ coverage?: number;
37
+ /**
38
+ * Elevation scale input domain. The elevation scale is a linear scale that maps number of counts to elevation.
39
+ * @default [0, max(elevationWeight)]
40
+ */
41
+ elevationDomain?: number[];
42
+ /**
43
+ * Elevation scale output range.
44
+ * @default [0, 1000]
45
+ */
46
+ elevationRange?: number[];
47
+ /**
48
+ * Hexagon elevation multiplier.
49
+ * @default 1
50
+ */
51
+ elevationScale?: number;
52
+ /**
53
+ * Whether to enable cell elevation. If set to false, all cell will be flat.
54
+ * @default false
55
+ */
56
+ extruded?: boolean;
57
+ /**
58
+ * Filter bins and re-calculate color by `upperPercentile`.
59
+ * Hexagons with color value larger than the `upperPercentile` will be hidden.
60
+ * @default 100
61
+ */
62
+ upperPercentile?: number;
63
+ /**
64
+ * Filter bins and re-calculate color by `lowerPercentile`.
65
+ * Hexagons with color value smaller than the `lowerPercentile` will be hidden.
66
+ * @default 0
67
+ */
68
+ lowerPercentile?: number;
69
+ /**
70
+ * Filter bins and re-calculate elevation by `elevationUpperPercentile`.
71
+ * Hexagons with elevation value larger than the `elevationUpperPercentile` will be hidden.
72
+ * @default 100
73
+ */
74
+ elevationUpperPercentile?: number;
75
+ /**
76
+ * Filter bins and re-calculate elevation by `elevationLowerPercentile`.
77
+ * Hexagons with elevation value larger than the `elevationLowerPercentile` will be hidden.
78
+ * @default 0
79
+ */
80
+ elevationLowerPercentile?: number;
81
+ /**
82
+ * Scaling function used to determine the color of the grid cell, default value is 'quantize'.
83
+ * Supported Values are 'quantize', 'quantile' and 'ordinal'.
84
+ * @default 'quantize'
85
+ */
86
+ colorScaleType?: 'quantize' | 'quantile' | 'ordinal';
87
+ /**
88
+ * This is an object that contains material props
89
+ * for [lighting effect](/docs/api-reference/core/lighting-effect.md) applied on extruded polygons.
90
+ * @default true
91
+ */
92
+ material?: MaterialProps | boolean;
93
+ /**
94
+ * Defines the operation used to aggregate all data object weights to calculate a cell's color value.
95
+ * @default 'SUM'
96
+ */
97
+ colorAggregation?: 'SUM' | 'MEAN' | 'MIN' | 'MAX';
98
+ /**
99
+ * Defines the operation used to aggregate all data object weights to calculate a cell's elevation value.
100
+ * @default 'SUM'
101
+ */
102
+ elevationAggregation?: 'SUM' | 'MEAN' | 'MIN' | 'MAX';
103
+ /**
104
+ * Method called to retrieve the position of each object.
105
+ * @default object => object.position
106
+ */
107
+ getPosition?: AccessorFunction<DataT, Position>;
108
+ /**
109
+ * The weight of a data object used to calculate the color value for a bin.
110
+ * @default 1
111
+ */
112
+ getColorWeight?: Accessor<DataT, number>;
113
+ /**
114
+ * After data objects are aggregated into bins, this accessor is called on each cell to get the value that its color is based on.
115
+ * @default null
116
+ */
117
+ getColorValue?: AggregateAccessor<DataT> | null;
118
+ /**
119
+ * The weight of a data object used to calculate the elevation value for a bin.
120
+ * @default 1
121
+ */
122
+ getElevationWeight?: Accessor<DataT, number>;
123
+ /**
124
+ * After data objects are aggregated into bins, this accessor is called on each cell to get the value that its elevation is based on.
125
+ * @default null
126
+ */
127
+ getElevationValue?: AggregateAccessor<DataT> | null;
128
+ /**
129
+ * This callback will be called when cell color domain has been calculated.
130
+ * @default () => {}
131
+ */
132
+ onSetColorDomain?: (minMax: [number, number]) => void;
133
+ /**
134
+ * This callback will be called when cell elevation domain has been calculated.
135
+ * @default () => {}
136
+ */
137
+ onSetElevationDomain?: (minMax: [number, number]) => void;
138
+ };
139
+ export default class HexagonLayer<ExtraPropsT = {}> extends AggregationLayer<ExtraPropsT & Required<_HexagonLayerProps>> {
140
+ static layerName: string;
141
+ static defaultProps: {
142
+ colorDomain: null;
143
+ colorRange: number[][];
144
+ getColorValue: {
145
+ type: string;
146
+ value: null;
147
+ };
148
+ getColorWeight: {
149
+ type: string;
150
+ value: number;
151
+ };
152
+ colorAggregation: string;
153
+ lowerPercentile: {
154
+ type: string;
155
+ value: number;
156
+ min: number;
157
+ max: number;
158
+ };
159
+ upperPercentile: {
160
+ type: string;
161
+ value: number;
162
+ min: number;
163
+ max: number;
164
+ };
165
+ colorScaleType: string;
166
+ onSetColorDomain: typeof nop;
167
+ elevationDomain: null;
168
+ elevationRange: number[];
169
+ getElevationValue: {
170
+ type: string;
171
+ value: null;
172
+ };
173
+ getElevationWeight: {
174
+ type: string;
175
+ value: number;
176
+ };
177
+ elevationAggregation: string;
178
+ elevationLowerPercentile: {
179
+ type: string;
180
+ value: number;
181
+ min: number;
182
+ max: number;
183
+ };
184
+ elevationUpperPercentile: {
185
+ type: string;
186
+ value: number;
187
+ min: number;
188
+ max: number;
189
+ };
190
+ elevationScale: {
191
+ type: string;
192
+ min: number;
193
+ value: number;
194
+ };
195
+ elevationScaleType: string;
196
+ onSetElevationDomain: typeof nop;
197
+ radius: {
198
+ type: string;
199
+ value: number;
200
+ min: number;
201
+ };
202
+ coverage: {
203
+ type: string;
204
+ min: number;
205
+ max: number;
206
+ value: number;
207
+ };
208
+ extruded: boolean;
209
+ hexagonAggregator: typeof pointToHexbin;
210
+ getPosition: {
211
+ type: string;
212
+ value: (x: any) => any;
213
+ };
214
+ material: boolean;
215
+ _filterData: {
216
+ type: string;
217
+ value: null;
218
+ optional: boolean;
219
+ };
220
+ };
221
+ state: AggregationLayer['state'] & {
222
+ cpuAggregator: CPUAggregator;
223
+ aggregatorState: any;
224
+ };
225
+ initializeState(): void;
226
+ updateState(opts: UpdateParameters<this>): void;
2
227
  convertLatLngToMeterOffset(hexagonVertices: any): number[][] | null;
228
+ getPickingInfo({ info }: {
229
+ info: any;
230
+ }): any;
3
231
  _onGetSublayerColor(cell: any): any;
4
232
  _onGetSublayerElevation(cell: any): any;
5
- _getSublayerUpdateTriggers(): any;
6
- }
7
- declare namespace HexagonLayer {
8
- export const layerName: string;
9
- export { defaultProps };
233
+ _getSublayerUpdateTriggers(): {};
234
+ renderLayers(): ColumnLayer<any, {}>;
10
235
  }
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";
236
+ export {};
130
237
  //# sourceMappingURL=hexagon-layer.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"hexagon-layer.d.ts","sourceRoot":"","sources":["../../src/hexagon-layer/hexagon-layer.ts"],"names":[],"mappings":"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"}