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

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 (269) hide show
  1. package/dist/dist.dev.js +753 -640
  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 -12
  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 +5 -2
  22. package/dist/es5/heatmap-layer/heatmap-layer-utils.js.map +1 -1
  23. package/dist/es5/heatmap-layer/heatmap-layer.js +19 -7
  24. package/dist/es5/heatmap-layer/heatmap-layer.js.map +1 -1
  25. package/dist/es5/heatmap-layer/max-vs.glsl.js +1 -1
  26. package/dist/es5/heatmap-layer/triangle-layer-fragment.glsl.js +1 -1
  27. package/dist/es5/heatmap-layer/triangle-layer-vertex.glsl.js +1 -1
  28. package/dist/es5/heatmap-layer/triangle-layer.js +7 -7
  29. package/dist/es5/heatmap-layer/triangle-layer.js.map +1 -1
  30. package/dist/es5/heatmap-layer/weights-fs.glsl.js +1 -1
  31. package/dist/es5/heatmap-layer/weights-vs.glsl.js +1 -1
  32. package/dist/es5/hexagon-layer/hexagon-layer.js +16 -5
  33. package/dist/es5/hexagon-layer/hexagon-layer.js.map +1 -1
  34. package/dist/es5/index.js.map +1 -1
  35. package/dist/es5/screen-grid-layer/screen-grid-cell-layer.js +26 -19
  36. package/dist/es5/screen-grid-layer/screen-grid-cell-layer.js.map +1 -1
  37. package/dist/es5/screen-grid-layer/screen-grid-layer-vertex.glsl.js +1 -1
  38. package/dist/es5/screen-grid-layer/screen-grid-layer.js +18 -8
  39. package/dist/es5/screen-grid-layer/screen-grid-layer.js.map +1 -1
  40. package/dist/es5/types.js +2 -0
  41. package/dist/es5/types.js.map +1 -0
  42. package/dist/es5/utils/bin-sorter.js +9 -0
  43. package/dist/es5/utils/bin-sorter.js.map +1 -1
  44. package/dist/es5/utils/color-utils.js.map +1 -1
  45. package/dist/esm/aggregation-layer.js +12 -5
  46. package/dist/esm/aggregation-layer.js.map +1 -1
  47. package/dist/esm/contour-layer/contour-layer.js +6 -3
  48. package/dist/esm/contour-layer/contour-layer.js.map +1 -1
  49. package/dist/esm/contour-layer/contour-utils.js +1 -1
  50. package/dist/esm/contour-layer/contour-utils.js.map +1 -1
  51. package/dist/esm/contour-layer/marching-squares-codes.js.map +1 -1
  52. package/dist/esm/contour-layer/marching-squares.js.map +1 -1
  53. package/dist/esm/cpu-grid-layer/cpu-grid-layer.js +6 -3
  54. package/dist/esm/cpu-grid-layer/cpu-grid-layer.js.map +1 -1
  55. package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer-fragment.glsl.js.map +1 -1
  56. package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer-vertex.glsl.js +1 -1
  57. package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer-vertex.glsl.js.map +1 -1
  58. package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer.js +8 -10
  59. package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer.js.map +1 -1
  60. package/dist/esm/gpu-grid-layer/gpu-grid-layer.js +11 -9
  61. package/dist/esm/gpu-grid-layer/gpu-grid-layer.js.map +1 -1
  62. package/dist/esm/grid-aggregation-layer.js +13 -5
  63. package/dist/esm/grid-aggregation-layer.js.map +1 -1
  64. package/dist/esm/grid-layer/grid-layer.js +15 -8
  65. package/dist/esm/grid-layer/grid-layer.js.map +1 -1
  66. package/dist/esm/heatmap-layer/heatmap-layer-utils.js +5 -2
  67. package/dist/esm/heatmap-layer/heatmap-layer-utils.js.map +1 -1
  68. package/dist/esm/heatmap-layer/heatmap-layer.js +24 -14
  69. package/dist/esm/heatmap-layer/heatmap-layer.js.map +1 -1
  70. package/dist/esm/heatmap-layer/max-fs.glsl.js.map +1 -1
  71. package/dist/esm/heatmap-layer/max-vs.glsl.js +1 -1
  72. package/dist/esm/heatmap-layer/max-vs.glsl.js.map +1 -1
  73. package/dist/esm/heatmap-layer/triangle-layer-fragment.glsl.js +1 -1
  74. package/dist/esm/heatmap-layer/triangle-layer-fragment.glsl.js.map +1 -1
  75. package/dist/esm/heatmap-layer/triangle-layer-vertex.glsl.js +1 -1
  76. package/dist/esm/heatmap-layer/triangle-layer-vertex.glsl.js.map +1 -1
  77. package/dist/esm/heatmap-layer/triangle-layer.js +6 -5
  78. package/dist/esm/heatmap-layer/triangle-layer.js.map +1 -1
  79. package/dist/esm/heatmap-layer/weights-fs.glsl.js +1 -1
  80. package/dist/esm/heatmap-layer/weights-fs.glsl.js.map +1 -1
  81. package/dist/esm/heatmap-layer/weights-vs.glsl.js +1 -1
  82. package/dist/esm/heatmap-layer/weights-vs.glsl.js.map +1 -1
  83. package/dist/esm/hexagon-layer/hexagon-layer.js +11 -2
  84. package/dist/esm/hexagon-layer/hexagon-layer.js.map +1 -1
  85. package/dist/esm/index.js.map +1 -1
  86. package/dist/esm/screen-grid-layer/screen-grid-cell-layer.js +16 -10
  87. package/dist/esm/screen-grid-layer/screen-grid-cell-layer.js.map +1 -1
  88. package/dist/esm/screen-grid-layer/screen-grid-layer-fragment.glsl.js.map +1 -1
  89. package/dist/esm/screen-grid-layer/screen-grid-layer-vertex.glsl.js +1 -1
  90. package/dist/esm/screen-grid-layer/screen-grid-layer-vertex.glsl.js.map +1 -1
  91. package/dist/esm/screen-grid-layer/screen-grid-layer.js +15 -7
  92. package/dist/esm/screen-grid-layer/screen-grid-layer.js.map +1 -1
  93. package/dist/esm/types.js +2 -0
  94. package/dist/esm/types.js.map +1 -0
  95. package/dist/esm/utils/bin-sorter.js +16 -0
  96. package/dist/esm/utils/bin-sorter.js.map +1 -1
  97. package/dist/esm/utils/color-utils.js.map +1 -1
  98. package/dist.min.js +1 -1
  99. package/package.json +7 -5
  100. package/src/{aggregation-layer.js → aggregation-layer.ts} +32 -15
  101. package/src/contour-layer/{contour-layer.js → contour-layer.ts} +97 -16
  102. package/src/contour-layer/{contour-utils.js → contour-utils.ts} +11 -5
  103. package/src/contour-layer/{marching-squares-codes.js → marching-squares-codes.ts} +0 -0
  104. package/src/contour-layer/{marching-squares.js → marching-squares.ts} +6 -6
  105. package/src/cpu-grid-layer/cpu-grid-layer.ts +324 -0
  106. package/src/gpu-grid-layer/{gpu-grid-cell-layer-fragment.glsl.js → gpu-grid-cell-layer-fragment.glsl.ts} +0 -0
  107. package/src/gpu-grid-layer/{gpu-grid-cell-layer-vertex.glsl.js → gpu-grid-cell-layer-vertex.glsl.ts} +0 -0
  108. package/src/gpu-grid-layer/{gpu-grid-cell-layer.js → gpu-grid-cell-layer.ts} +36 -19
  109. package/src/gpu-grid-layer/{gpu-grid-layer.js → gpu-grid-layer.ts} +125 -18
  110. package/src/{grid-aggregation-layer.js → grid-aggregation-layer.ts} +25 -13
  111. package/src/grid-layer/{grid-layer.js → grid-layer.ts} +45 -14
  112. package/src/heatmap-layer/{heatmap-layer-utils.js → heatmap-layer-utils.ts} +15 -10
  113. package/src/heatmap-layer/{heatmap-layer.js → heatmap-layer.ts} +147 -32
  114. package/src/heatmap-layer/{max-fs.glsl.js → max-fs.glsl.ts} +0 -0
  115. package/src/heatmap-layer/{max-vs.glsl.js → max-vs.glsl.ts} +0 -0
  116. package/src/heatmap-layer/{triangle-layer-fragment.glsl.js → triangle-layer-fragment.glsl.ts} +0 -0
  117. package/src/heatmap-layer/{triangle-layer-vertex.glsl.js → triangle-layer-vertex.glsl.ts} +0 -0
  118. package/src/heatmap-layer/{triangle-layer.js → triangle-layer.ts} +20 -10
  119. package/src/heatmap-layer/{weights-fs.glsl.js → weights-fs.glsl.ts} +0 -0
  120. package/src/heatmap-layer/{weights-vs.glsl.js → weights-vs.glsl.ts} +0 -0
  121. package/src/hexagon-layer/{hexagon-layer.js → hexagon-layer.ts} +194 -9
  122. package/src/index.ts +9 -0
  123. package/src/screen-grid-layer/{screen-grid-cell-layer.js → screen-grid-cell-layer.ts} +33 -15
  124. package/src/screen-grid-layer/{screen-grid-layer-fragment.glsl.js → screen-grid-layer-fragment.glsl.ts} +0 -0
  125. package/src/screen-grid-layer/{screen-grid-layer-vertex.glsl.js → screen-grid-layer-vertex.glsl.ts} +0 -0
  126. package/src/screen-grid-layer/{screen-grid-layer.js → screen-grid-layer.ts} +119 -16
  127. package/src/types.ts +10 -0
  128. package/src/utils/{bin-sorter.js → bin-sorter.ts} +26 -11
  129. package/src/utils/{color-utils.js → color-utils.ts} +1 -1
  130. package/typed/aggregation-layer.d.ts +38 -0
  131. package/typed/aggregation-layer.d.ts.map +1 -0
  132. package/typed/aggregation-layer.js +151 -0
  133. package/typed/contour-layer/contour-layer.d.ts +74 -0
  134. package/typed/contour-layer/contour-layer.d.ts.map +1 -0
  135. package/typed/contour-layer/contour-layer.js +234 -0
  136. package/typed/contour-layer/contour-utils.d.ts +18 -0
  137. package/typed/contour-layer/contour-utils.d.ts.map +1 -0
  138. package/typed/contour-layer/contour-utils.js +64 -0
  139. package/typed/contour-layer/marching-squares-codes.d.ts +32 -0
  140. package/typed/contour-layer/marching-squares-codes.d.ts.map +1 -0
  141. package/typed/contour-layer/marching-squares-codes.js +337 -0
  142. package/typed/contour-layer/marching-squares.d.ts +10 -0
  143. package/typed/contour-layer/marching-squares.d.ts.map +1 -0
  144. package/typed/contour-layer/marching-squares.js +147 -0
  145. package/typed/cpu-grid-layer/cpu-grid-layer.d.ts +152 -0
  146. package/typed/cpu-grid-layer/cpu-grid-layer.d.ts.map +1 -0
  147. package/typed/cpu-grid-layer/cpu-grid-layer.js +129 -0
  148. package/typed/cpu-grid-layer/grid-aggregator.d.ts +23 -0
  149. package/typed/cpu-grid-layer/grid-aggregator.d.ts.map +1 -0
  150. package/typed/cpu-grid-layer/grid-aggregator.js +141 -0
  151. package/typed/gpu-grid-layer/gpu-grid-cell-layer-fragment.glsl.d.ts +3 -0
  152. package/typed/gpu-grid-layer/gpu-grid-cell-layer-fragment.glsl.d.ts.map +1 -0
  153. package/typed/gpu-grid-layer/gpu-grid-cell-layer-fragment.glsl.js +34 -0
  154. package/typed/gpu-grid-layer/gpu-grid-cell-layer-vertex.glsl.d.ts +3 -0
  155. package/typed/gpu-grid-layer/gpu-grid-cell-layer-vertex.glsl.d.ts.map +1 -0
  156. package/typed/gpu-grid-layer/gpu-grid-cell-layer-vertex.glsl.js +141 -0
  157. package/typed/gpu-grid-layer/gpu-grid-cell-layer.d.ts +34 -0
  158. package/typed/gpu-grid-layer/gpu-grid-cell-layer.d.ts.map +1 -0
  159. package/typed/gpu-grid-layer/gpu-grid-cell-layer.js +143 -0
  160. package/typed/gpu-grid-layer/gpu-grid-layer.d.ts +96 -0
  161. package/typed/gpu-grid-layer/gpu-grid-layer.d.ts.map +1 -0
  162. package/typed/gpu-grid-layer/gpu-grid-layer.js +289 -0
  163. package/typed/grid-aggregation-layer.d.ts +32 -0
  164. package/typed/grid-aggregation-layer.d.ts.map +1 -0
  165. package/typed/grid-aggregation-layer.js +172 -0
  166. package/typed/grid-layer/grid-layer.d.ts +31 -0
  167. package/typed/grid-layer/grid-layer.d.ts.map +1 -0
  168. package/typed/grid-layer/grid-layer.js +60 -0
  169. package/typed/heatmap-layer/heatmap-layer-utils.d.ts +13 -0
  170. package/typed/heatmap-layer/heatmap-layer-utils.d.ts.map +1 -0
  171. package/typed/heatmap-layer/heatmap-layer-utils.js +78 -0
  172. package/typed/heatmap-layer/heatmap-layer.d.ts +116 -0
  173. package/typed/heatmap-layer/heatmap-layer.d.ts.map +1 -0
  174. package/typed/heatmap-layer/heatmap-layer.js +478 -0
  175. package/typed/heatmap-layer/max-fs.glsl.d.ts +3 -0
  176. package/typed/heatmap-layer/max-fs.glsl.d.ts.map +1 -0
  177. package/typed/heatmap-layer/max-fs.glsl.js +7 -0
  178. package/typed/heatmap-layer/max-vs.glsl.d.ts +3 -0
  179. package/typed/heatmap-layer/max-vs.glsl.d.ts.map +1 -0
  180. package/typed/heatmap-layer/max-vs.glsl.js +12 -0
  181. package/typed/heatmap-layer/triangle-layer-fragment.glsl.d.ts +3 -0
  182. package/typed/heatmap-layer/triangle-layer-fragment.glsl.d.ts.map +1 -0
  183. package/typed/heatmap-layer/triangle-layer-fragment.glsl.js +58 -0
  184. package/typed/heatmap-layer/triangle-layer-vertex.glsl.d.ts +3 -0
  185. package/typed/heatmap-layer/triangle-layer-vertex.glsl.d.ts.map +1 -0
  186. package/typed/heatmap-layer/triangle-layer-vertex.glsl.js +51 -0
  187. package/typed/heatmap-layer/triangle-layer.d.ts +27 -0
  188. package/typed/heatmap-layer/triangle-layer.d.ts.map +1 -0
  189. package/typed/heatmap-layer/triangle-layer.js +67 -0
  190. package/typed/heatmap-layer/weights-fs.glsl.d.ts +3 -0
  191. package/typed/heatmap-layer/weights-fs.glsl.d.ts.map +1 -0
  192. package/typed/heatmap-layer/weights-fs.glsl.js +19 -0
  193. package/typed/heatmap-layer/weights-vs.glsl.d.ts +3 -0
  194. package/typed/heatmap-layer/weights-vs.glsl.d.ts.map +1 -0
  195. package/typed/heatmap-layer/weights-vs.glsl.js +23 -0
  196. package/typed/hexagon-layer/hexagon-aggregator.d.ts +24 -0
  197. package/typed/hexagon-layer/hexagon-aggregator.d.ts.map +1 -0
  198. package/typed/hexagon-layer/hexagon-aggregator.js +112 -0
  199. package/typed/hexagon-layer/hexagon-layer.d.ts +165 -0
  200. package/typed/hexagon-layer/hexagon-layer.d.ts.map +1 -0
  201. package/typed/hexagon-layer/hexagon-layer.js +171 -0
  202. package/typed/index.d.ts +20 -0
  203. package/typed/index.d.ts.map +1 -0
  204. package/typed/index.js +33 -0
  205. package/typed/package.json +6 -0
  206. package/typed/screen-grid-layer/screen-grid-cell-layer.d.ts +42 -0
  207. package/typed/screen-grid-layer/screen-grid-cell-layer.d.ts.map +1 -0
  208. package/typed/screen-grid-layer/screen-grid-cell-layer.js +159 -0
  209. package/typed/screen-grid-layer/screen-grid-layer-fragment.glsl.d.ts +3 -0
  210. package/typed/screen-grid-layer/screen-grid-layer-fragment.glsl.d.ts.map +1 -0
  211. package/typed/screen-grid-layer/screen-grid-layer-fragment.glsl.js +37 -0
  212. package/typed/screen-grid-layer/screen-grid-layer-vertex.glsl.d.ts +3 -0
  213. package/typed/screen-grid-layer/screen-grid-layer-vertex.glsl.d.ts.map +1 -0
  214. package/typed/screen-grid-layer/screen-grid-layer-vertex.glsl.js +83 -0
  215. package/typed/screen-grid-layer/screen-grid-layer.d.ts +95 -0
  216. package/typed/screen-grid-layer/screen-grid-layer.d.ts.map +1 -0
  217. package/typed/screen-grid-layer/screen-grid-layer.js +216 -0
  218. package/typed/types.d.ts +11 -0
  219. package/typed/types.d.ts.map +1 -0
  220. package/typed/types.js +1 -0
  221. package/typed/utils/aggregation-operation-utils.d.ts +13 -0
  222. package/typed/utils/aggregation-operation-utils.d.ts.map +1 -0
  223. package/typed/utils/aggregation-operation-utils.js +94 -0
  224. package/typed/utils/bin-sorter.d.ts +52 -0
  225. package/typed/utils/bin-sorter.d.ts.map +1 -0
  226. package/typed/utils/bin-sorter.js +167 -0
  227. package/typed/utils/color-utils.d.ts +3 -0
  228. package/typed/utils/color-utils.d.ts.map +1 -0
  229. package/typed/utils/color-utils.js +53 -0
  230. package/typed/utils/cpu-aggregator.d.ts +155 -0
  231. package/typed/utils/cpu-aggregator.d.ts.map +1 -0
  232. package/typed/utils/cpu-aggregator.js +417 -0
  233. package/typed/utils/gpu-grid-aggregation/aggregate-all-fs.glsl.d.ts +3 -0
  234. package/typed/utils/gpu-grid-aggregation/aggregate-all-fs.glsl.d.ts.map +1 -0
  235. package/typed/utils/gpu-grid-aggregation/aggregate-all-fs.glsl.js +39 -0
  236. package/typed/utils/gpu-grid-aggregation/aggregate-all-vs.glsl.d.ts +3 -0
  237. package/typed/utils/gpu-grid-aggregation/aggregate-all-vs.glsl.d.ts.map +1 -0
  238. package/typed/utils/gpu-grid-aggregation/aggregate-all-vs.glsl.js +53 -0
  239. package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-fs.glsl.d.ts +3 -0
  240. package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-fs.glsl.d.ts.map +1 -0
  241. package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-fs.glsl.js +31 -0
  242. package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-vs.glsl.d.ts +3 -0
  243. package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-vs.glsl.d.ts.map +1 -0
  244. package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-vs.glsl.js +77 -0
  245. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.d.ts +36 -0
  246. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.d.ts.map +1 -0
  247. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.js +41 -0
  248. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-utils.d.ts +1 -0
  249. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-utils.d.ts.map +1 -0
  250. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-utils.js +1 -0
  251. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator.d.ts +66 -0
  252. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator.d.ts.map +1 -0
  253. package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator.js +562 -0
  254. package/typed/utils/gpu-grid-aggregation/transform-mean-vs.glsl.d.ts +3 -0
  255. package/typed/utils/gpu-grid-aggregation/transform-mean-vs.glsl.d.ts.map +1 -0
  256. package/typed/utils/gpu-grid-aggregation/transform-mean-vs.glsl.js +36 -0
  257. package/typed/utils/grid-aggregation-utils.d.ts +24 -0
  258. package/typed/utils/grid-aggregation-utils.d.ts.map +1 -0
  259. package/typed/utils/grid-aggregation-utils.js +114 -0
  260. package/typed/utils/prop-utils.d.ts +2 -0
  261. package/typed/utils/prop-utils.d.ts.map +1 -0
  262. package/typed/utils/prop-utils.js +28 -0
  263. package/typed/utils/resource-utils.d.ts +4 -0
  264. package/typed/utils/resource-utils.d.ts.map +1 -0
  265. package/typed/utils/resource-utils.js +40 -0
  266. package/typed/utils/scale-utils.d.ts +15 -0
  267. package/typed/utils/scale-utils.d.ts.map +1 -0
  268. package/typed/utils/scale-utils.js +184 -0
  269. package/src/cpu-grid-layer/cpu-grid-layer.js +0 -153
@@ -0,0 +1,172 @@
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 AggregationLayer from './aggregation-layer';
21
+ import GPUGridAggregator from './utils/gpu-grid-aggregation/gpu-grid-aggregator';
22
+ import { Buffer } from '@luma.gl/core';
23
+ import { log } from '@deck.gl/core';
24
+ import GL from '@luma.gl/constants';
25
+ import BinSorter from './utils/bin-sorter';
26
+ import { pointToDensityGridDataCPU } from './cpu-grid-layer/grid-aggregator';
27
+ export default class GridAggregationLayer extends AggregationLayer {
28
+ initializeAggregationLayer({ dimensions }) {
29
+ const { gl } = this.context;
30
+ super.initializeAggregationLayer(dimensions);
31
+ this.setState({
32
+ // CPU aggregation results
33
+ layerData: {},
34
+ gpuGridAggregator: new GPUGridAggregator(gl, { id: `${this.id}-gpu-aggregator` }),
35
+ cpuGridAggregator: pointToDensityGridDataCPU
36
+ });
37
+ }
38
+ updateState(opts) {
39
+ // get current attributes
40
+ super.updateState(opts);
41
+ this.updateAggregationState(opts);
42
+ const { aggregationDataDirty, aggregationWeightsDirty, gpuAggregation } = this.state;
43
+ if (this.getNumInstances() <= 0) {
44
+ return;
45
+ }
46
+ let aggregationDirty = false;
47
+ // CPU aggregation is two steps
48
+ // 1. Create bins (based on cellSize and position) 2. Aggregate weights for each bin
49
+ // For GPU aggregation both above steps are combined into one step
50
+ // step-1
51
+ if (aggregationDataDirty || (gpuAggregation && aggregationWeightsDirty)) {
52
+ this._updateAggregation(opts);
53
+ aggregationDirty = true;
54
+ }
55
+ // step-2 (Applicalbe for CPU aggregation only)
56
+ if (!gpuAggregation && (aggregationDataDirty || aggregationWeightsDirty)) {
57
+ this._updateWeightBins();
58
+ this._uploadAggregationResults();
59
+ aggregationDirty = true;
60
+ }
61
+ this.setState({ aggregationDirty });
62
+ }
63
+ finalizeState(context) {
64
+ const { count } = this.state.weights;
65
+ if (count && count.aggregationBuffer) {
66
+ count.aggregationBuffer.delete();
67
+ }
68
+ this.state.gpuGridAggregator?.delete();
69
+ super.finalizeState(context);
70
+ }
71
+ updateShaders(shaders) {
72
+ if (this.state.gpuAggregation) {
73
+ this.state.gpuGridAggregator.updateShaders(shaders);
74
+ }
75
+ }
76
+ // Methods that can be overriden by subclasses for customizations
77
+ updateAggregationState(opts) {
78
+ // Sublayers should implement this method.
79
+ log.assert(false);
80
+ }
81
+ allocateResources(numRow, numCol) {
82
+ if (this.state.numRow !== numRow || this.state.numCol !== numCol) {
83
+ const dataBytes = numCol * numRow * 4 * 4;
84
+ const gl = this.context.gl;
85
+ const { weights } = this.state;
86
+ for (const name in weights) {
87
+ const weight = weights[name];
88
+ if (weight.aggregationBuffer) {
89
+ weight.aggregationBuffer.delete();
90
+ }
91
+ weight.aggregationBuffer = new Buffer(gl, {
92
+ byteLength: dataBytes,
93
+ accessor: {
94
+ size: 4,
95
+ type: GL.FLOAT,
96
+ divisor: 1
97
+ }
98
+ });
99
+ }
100
+ }
101
+ }
102
+ updateResults({ aggregationData, maxMinData, maxData, minData }) {
103
+ const { count } = this.state.weights;
104
+ if (count) {
105
+ count.aggregationData = aggregationData;
106
+ count.maxMinData = maxMinData;
107
+ count.maxData = maxData;
108
+ count.minData = minData;
109
+ }
110
+ }
111
+ // Private
112
+ _updateAggregation(opts) {
113
+ const { cpuGridAggregator, gpuGridAggregator, gridOffset, posOffset, translation = [0, 0], scaling = [0, 0, 0], boundingBox, projectPoints, gpuAggregation, numCol, numRow } = this.state;
114
+ const { props } = opts;
115
+ const { viewport } = this.context;
116
+ const attributes = this.getAttributes();
117
+ const vertexCount = this.getNumInstances();
118
+ if (!gpuAggregation) {
119
+ const result = cpuGridAggregator(props, {
120
+ gridOffset,
121
+ projectPoints,
122
+ attributes,
123
+ viewport,
124
+ posOffset,
125
+ boundingBox
126
+ });
127
+ this.setState({
128
+ layerData: result
129
+ });
130
+ }
131
+ else {
132
+ const { weights } = this.state;
133
+ gpuGridAggregator.run({
134
+ weights,
135
+ cellSize: [gridOffset.xOffset, gridOffset.yOffset],
136
+ numCol,
137
+ numRow,
138
+ translation,
139
+ scaling,
140
+ vertexCount,
141
+ projectPoints,
142
+ attributes,
143
+ moduleSettings: this.getModuleSettings()
144
+ });
145
+ }
146
+ }
147
+ _updateWeightBins() {
148
+ const { getValue } = this.state;
149
+ const sortedBins = new BinSorter(this.state.layerData.data || [], { getValue });
150
+ this.setState({ sortedBins });
151
+ }
152
+ _uploadAggregationResults() {
153
+ const { numCol, numRow } = this.state;
154
+ const { data } = this.state.layerData;
155
+ const { aggregatedBins, minValue, maxValue, totalCount } = this.state.sortedBins;
156
+ const ELEMENTCOUNT = 4;
157
+ const aggregationSize = numCol * numRow * ELEMENTCOUNT;
158
+ const aggregationData = new Float32Array(aggregationSize).fill(0);
159
+ for (const bin of aggregatedBins) {
160
+ const { lonIdx, latIdx } = data[bin.i];
161
+ const { value, counts } = bin;
162
+ const cellIndex = (lonIdx + latIdx * numCol) * ELEMENTCOUNT;
163
+ aggregationData[cellIndex] = value;
164
+ aggregationData[cellIndex + ELEMENTCOUNT - 1] = counts;
165
+ }
166
+ const maxMinData = new Float32Array([maxValue, 0, 0, minValue]);
167
+ const maxData = new Float32Array([maxValue, 0, 0, totalCount]);
168
+ const minData = new Float32Array([minValue, 0, 0, totalCount]);
169
+ this.updateResults({ aggregationData, maxMinData, maxData, minData });
170
+ }
171
+ }
172
+ GridAggregationLayer.layerName = 'GridAggregationLayer';
@@ -0,0 +1,31 @@
1
+ import { CompositeLayer, CompositeLayerProps, Layer, UpdateParameters, DefaultProps } from '@deck.gl/core/typed';
2
+ import { _GPUGridLayerProps } from '../gpu-grid-layer/gpu-grid-layer';
3
+ import { _CPUGridLayerProps } from '../cpu-grid-layer/cpu-grid-layer';
4
+ /** All properties supported by GridLayer. */
5
+ export declare type GridLayerProps<DataT = any> = _GridLayerProps<DataT> & CompositeLayerProps<DataT>;
6
+ /** Properties added by GridLayer. */
7
+ declare type _GridLayerProps<DataT> = _CPUGridLayerProps<DataT> & _GPUGridLayerProps<DataT> & {
8
+ /**
9
+ * Whether the aggregation should be performed in high-precision 64-bit mode.
10
+ * @default false
11
+ */
12
+ fp64?: boolean;
13
+ /**
14
+ * When set to true, aggregation is performed on GPU, provided other conditions are met.
15
+ * @default false
16
+ */
17
+ gpuAggregation?: boolean;
18
+ };
19
+ export default class GridLayer<DataT = any, ExtraPropsT = {}> extends CompositeLayer<ExtraPropsT & Required<_GridLayerProps<DataT>>> {
20
+ static layerName: string;
21
+ static defaultProps: DefaultProps<GridLayerProps<any>>;
22
+ state: CompositeLayer['state'] & {
23
+ useGPUAggregation: boolean;
24
+ };
25
+ initializeState(): void;
26
+ updateState({ props }: UpdateParameters<this>): void;
27
+ renderLayers(): Layer;
28
+ canUseGPUAggregation(props: GridLayer['props']): boolean;
29
+ }
30
+ export {};
31
+ //# sourceMappingURL=grid-layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-layer.d.ts","sourceRoot":"","sources":["../../src/grid-layer/grid-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,KAAK,EACL,gBAAgB,EAChB,YAAY,EACb,MAAM,eAAe,CAAC;AAEvB,OAAqB,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAClF,OAAqB,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAQlF,6CAA6C;AAC7C,oBAAY,cAAc,CAAC,KAAK,GAAG,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;AAE9F,qCAAqC;AACrC,aAAK,eAAe,CAAC,KAAK,IAAI,kBAAkB,CAAC,KAAK,CAAC,GACrD,kBAAkB,CAAC,KAAK,CAAC,GAAG;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEJ,MAAM,CAAC,OAAO,OAAO,SAAS,CAAC,KAAK,GAAG,GAAG,EAAE,WAAW,GAAG,EAAE,CAAE,SAAQ,cAAc,CAClF,WAAW,GAAG,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAC/C;IACC,MAAM,CAAC,SAAS,SAAe;IAC/B,MAAM,CAAC,YAAY,oCAAgB;IAEnC,KAAK,EAAG,cAAc,CAAC,OAAO,CAAC,GAAG;QAChC,iBAAiB,EAAE,OAAO,CAAC;KAC5B,CAAC;IAEF,eAAe;IAMf,WAAW,CAAC,EAAC,KAAK,EAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAM3C,YAAY,IAAI,KAAK;IAoBrB,oBAAoB,CAAC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;CA8B/C"}
@@ -0,0 +1,60 @@
1
+ import { CompositeLayer } from '@deck.gl/core';
2
+ import GPUGridAggregator from '../utils/gpu-grid-aggregation/gpu-grid-aggregator';
3
+ import GPUGridLayer from '../gpu-grid-layer/gpu-grid-layer';
4
+ import CPUGridLayer from '../cpu-grid-layer/cpu-grid-layer';
5
+ const defaultProps = {
6
+ ...GPUGridLayer.defaultProps,
7
+ ...CPUGridLayer.defaultProps,
8
+ gpuAggregation: false
9
+ };
10
+ export default class GridLayer extends CompositeLayer {
11
+ initializeState() {
12
+ this.state = {
13
+ useGPUAggregation: true
14
+ };
15
+ }
16
+ updateState({ props }) {
17
+ this.setState({
18
+ useGPUAggregation: this.canUseGPUAggregation(props)
19
+ });
20
+ }
21
+ renderLayers() {
22
+ const { data, updateTriggers } = this.props;
23
+ const id = this.state.useGPUAggregation ? 'GPU' : 'CPU';
24
+ const LayerType = this.state.useGPUAggregation
25
+ ? this.getSubLayerClass('GPU', GPUGridLayer)
26
+ : this.getSubLayerClass('CPU', CPUGridLayer);
27
+ return new LayerType(this.props, this.getSubLayerProps({
28
+ id,
29
+ updateTriggers
30
+ }), {
31
+ data
32
+ });
33
+ }
34
+ // Private methods
35
+ canUseGPUAggregation(props) {
36
+ const { gpuAggregation, lowerPercentile, upperPercentile, getColorValue, getElevationValue, colorScaleType } = props;
37
+ if (!gpuAggregation) {
38
+ // cpu aggregation is requested
39
+ return false;
40
+ }
41
+ if (!GPUGridAggregator.isSupported(this.context.gl)) {
42
+ return false;
43
+ }
44
+ if (lowerPercentile !== 0 || upperPercentile !== 100) {
45
+ // percentile calculations requires sorting not supported on GPU
46
+ return false;
47
+ }
48
+ if (getColorValue !== null || getElevationValue !== null) {
49
+ // accessor for custom color or elevation calculation is specified
50
+ return false;
51
+ }
52
+ if (colorScaleType === 'quantile' || colorScaleType === 'ordinal') {
53
+ // quantile and ordinal scales are not supported on GPU
54
+ return false;
55
+ }
56
+ return true;
57
+ }
58
+ }
59
+ GridLayer.layerName = 'GridLayer';
60
+ GridLayer.defaultProps = defaultProps;
@@ -0,0 +1,13 @@
1
+ export declare function getBounds(points: number[][]): number[];
2
+ export declare function boundsContain(currentBounds: number[], targetBounds: number[]): boolean;
3
+ export declare function packVertices(points: number[][], dimensions?: number): Float32Array;
4
+ export declare function scaleToAspectRatio(boundingBox: number[], width: number, height: number): number[];
5
+ export declare function getTextureCoordinates(point: number[], bounds: number[]): number[];
6
+ export declare 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.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,CAWtD;AAGD,wBAAgB,aAAa,CAAC,aAAa,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAUtF;AAKD,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,GAAE,MAAU,GAAG,YAAY,CAQrF;AAGD,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CA6BjG;AAGD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,YAGtE;AAGD,wBAAgB,gBAAgB,CAAC,EAAC,EAAE,EAAE,kBAAkB,EAAC;;;CAAA;;;EAWxD"}
@@ -0,0 +1,78 @@
1
+ import GL from '@luma.gl/constants';
2
+ import { isWebGL2 } from '@luma.gl/core';
3
+ export function getBounds(points) {
4
+ // Now build bounding box in world space (aligned to world coordiante system)
5
+ const x = points.map(p => p[0]);
6
+ const y = points.map(p => p[1]);
7
+ const xMin = Math.min.apply(null, x);
8
+ const xMax = Math.max.apply(null, x);
9
+ const yMin = Math.min.apply(null, y);
10
+ const yMax = Math.max.apply(null, y);
11
+ return [xMin, yMin, xMax, yMax];
12
+ }
13
+ // true if currentBounds contains targetBounds, false otherwise
14
+ export function boundsContain(currentBounds, targetBounds) {
15
+ if (targetBounds[0] >= currentBounds[0] &&
16
+ targetBounds[2] <= currentBounds[2] &&
17
+ targetBounds[1] >= currentBounds[1] &&
18
+ targetBounds[3] <= currentBounds[3]) {
19
+ return true;
20
+ }
21
+ return false;
22
+ }
23
+ const scratchArray = new Float32Array(12);
24
+ // For given rectangle bounds generates two triangles vertices that coverit completely
25
+ export function packVertices(points, dimensions = 2) {
26
+ let index = 0;
27
+ for (const point of points) {
28
+ for (let i = 0; i < dimensions; i++) {
29
+ scratchArray[index++] = point[i] || 0;
30
+ }
31
+ }
32
+ return scratchArray;
33
+ }
34
+ // Expands boundingBox:[xMin, yMin, xMax, yMax] to match aspect ratio of given width and height
35
+ export function scaleToAspectRatio(boundingBox, width, height) {
36
+ const [xMin, yMin, xMax, yMax] = boundingBox;
37
+ const currentWidth = xMax - xMin;
38
+ const currentHeight = yMax - yMin;
39
+ let newWidth = currentWidth;
40
+ let newHeight = currentHeight;
41
+ if (currentWidth / currentHeight < width / height) {
42
+ // expand bounding box width
43
+ newWidth = (width / height) * currentHeight;
44
+ }
45
+ else {
46
+ newHeight = (height / width) * currentWidth;
47
+ }
48
+ if (newWidth < width) {
49
+ newWidth = width;
50
+ newHeight = height;
51
+ }
52
+ const xCenter = (xMax + xMin) / 2;
53
+ const yCenter = (yMax + yMin) / 2;
54
+ return [
55
+ xCenter - newWidth / 2,
56
+ yCenter - newHeight / 2,
57
+ xCenter + newWidth / 2,
58
+ yCenter + newHeight / 2
59
+ ];
60
+ }
61
+ // Get texture coordiante of point inside a bounding box
62
+ export function getTextureCoordinates(point, bounds) {
63
+ const [xMin, yMin, xMax, yMax] = bounds;
64
+ return [(point[0] - xMin) / (xMax - xMin), (point[1] - yMin) / (yMax - yMin)];
65
+ }
66
+ // Returns format and type for creating texture objects
67
+ export function getTextureParams({ gl, floatTargetSupport }) {
68
+ return floatTargetSupport
69
+ ? {
70
+ // format: should be RGBA32F on WebGL2 (float textures), RGBA in WebGL1 for float or non float textures
71
+ format: isWebGL2(gl) ? GL.RGBA32F : GL.RGBA,
72
+ type: GL.FLOAT
73
+ }
74
+ : {
75
+ format: GL.RGBA,
76
+ type: GL.UNSIGNED_BYTE
77
+ };
78
+ }
@@ -0,0 +1,116 @@
1
+ import { Buffer, Texture2D } from '@luma.gl/core';
2
+ import { Accessor, AccessorFunction, AttributeManager, ChangeFlags, Color, Layer, LayerContext, LayersList, Position, UpdateParameters, DefaultProps } from '@deck.gl/core/typed';
3
+ import AggregationLayer, { AggregationLayerProps } from '../aggregation-layer';
4
+ export declare type HeatmapLayerProps<DataT = any> = _HeatmapLayerProps<DataT> & AggregationLayerProps<DataT>;
5
+ declare type _HeatmapLayerProps<DataT> = {
6
+ /**
7
+ * Radius of the circle in pixels, to which the weight of an object is distributed.
8
+ *
9
+ * @default 30
10
+ */
11
+ radiusPixels?: number;
12
+ /**
13
+ * Specified as an array of colors [color1, color2, ...].
14
+ *
15
+ * @default `6-class YlOrRd` - [colorbrewer](http://colorbrewer2.org/#type=sequential&scheme=YlOrRd&n=6)
16
+ */
17
+ colorRange?: Color[];
18
+ /**
19
+ * Value that is multiplied with the total weight at a pixel to obtain the final weight.
20
+ *
21
+ * @default 1
22
+ */
23
+ intensity?: number;
24
+ /**
25
+ * Ratio of the fading weight to the max weight, between `0` and `1`.
26
+ *
27
+ * For example, `0.1` affects all pixels with weight under 10% of the max.
28
+ *
29
+ * Ignored when `colorDomain` is specified.
30
+ * @default 0.05
31
+ */
32
+ threshold?: number;
33
+ /**
34
+ * Controls how weight values are mapped to the `colorRange`, as an array of two numbers [`minValue`, `maxValue`].
35
+ *
36
+ * @default null
37
+ */
38
+ colorDomain?: [number, number] | null;
39
+ /**
40
+ * Defines the type of aggregation operation
41
+ *
42
+ * V valid values are 'SUM', 'MEAN'.
43
+ *
44
+ * @default 'SUM'
45
+ */
46
+ aggregation?: 'SUM' | 'MEAN';
47
+ /**
48
+ * Specifies the size of weight texture.
49
+ * @default 2048
50
+ */
51
+ weightsTextureSize?: number;
52
+ /**
53
+ * Interval in milliseconds during which changes to the viewport don't trigger aggregation.
54
+ *
55
+ * @default 500
56
+ */
57
+ debounceTimeout?: number;
58
+ /**
59
+ * Method called to retrieve the position of each object.
60
+ *
61
+ * @default d => d.position
62
+ */
63
+ getPosition?: AccessorFunction<DataT, Position>;
64
+ /**
65
+ * The weight of each object.
66
+ *
67
+ * @default 1
68
+ */
69
+ getWeight?: Accessor<DataT, number>;
70
+ };
71
+ export default class HeatmapLayer<DataT = any, ExtraPropsT = {}> extends AggregationLayer<ExtraPropsT & Required<_HeatmapLayerProps<DataT>>> {
72
+ static layerName: string;
73
+ static defaultProps: DefaultProps<HeatmapLayerProps<any>>;
74
+ state: AggregationLayer['state'] & {
75
+ supported: boolean;
76
+ colorDomain?: number[];
77
+ isWeightMapDirty?: boolean;
78
+ weightsTexture?: Texture2D;
79
+ zoom?: number;
80
+ worldBounds?: number[];
81
+ normalizedCommonBounds?: number[];
82
+ updateTimer?: any;
83
+ triPositionBuffer?: Buffer;
84
+ triTexCoordBuffer?: Buffer;
85
+ };
86
+ initializeState(): void;
87
+ shouldUpdateState({ changeFlags }: UpdateParameters<this>): boolean;
88
+ updateState(opts: UpdateParameters<this>): void;
89
+ _updateHeatmapState(opts: UpdateParameters<this>): void;
90
+ renderLayers(): LayersList | Layer;
91
+ finalizeState(context: LayerContext): void;
92
+ _getAttributeManager(): AttributeManager;
93
+ _getChangeFlags(opts: UpdateParameters<this>): Partial<ChangeFlags> & {
94
+ boundsChanged?: boolean | undefined;
95
+ viewportZoomChanged?: boolean | undefined;
96
+ };
97
+ _createTextures(): void;
98
+ _setupAttributes(): void;
99
+ _setupTextureParams(): void;
100
+ getShaders(type: any): any;
101
+ _createWeightsTransform(shaders?: {}): void;
102
+ _setupResources(): void;
103
+ updateShaders(shaderOptions: any): void;
104
+ _updateMaxWeightValue(): void;
105
+ _updateBounds(forceUpdate?: any): boolean;
106
+ _updateTextureRenderingBounds(): void;
107
+ _updateColorTexture(opts: any): void;
108
+ _updateWeightmap(): void;
109
+ _debouncedUpdateWeightmap(fromTimer?: boolean): void;
110
+ _worldToCommonBounds(worldBounds: any, opts?: {
111
+ useLayerCoordinateSystem?: boolean;
112
+ }): number[];
113
+ _commonToWorldBounds(commonBounds: any): number[];
114
+ }
115
+ export {};
116
+ //# sourceMappingURL=heatmap-layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heatmap-layer.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/heatmap-layer.ts"],"names":[],"mappings":"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"}