@aguacerowx/react-native 0.0.8 → 0.0.12

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 (469) hide show
  1. package/README.md +60 -60
  2. package/android/build.gradle +83 -84
  3. package/android/src/main/AndroidManifest.xml +6 -6
  4. package/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
  5. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +611 -607
  6. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +299 -297
  7. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +117 -117
  8. package/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -63
  9. package/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
  10. package/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -165
  11. package/android/src/main/java/com/facebook/react/viewmanagers/.gitkeep +0 -0
  12. package/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +0 -0
  13. package/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +0 -0
  14. package/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
  15. package/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
  16. package/android/src/main/res/raw/fragment_shader.glsl +97 -97
  17. package/android/src/main/res/raw/vertex_shader.glsl +19 -19
  18. package/index.js +1 -1
  19. package/ios/AguaceroPackage.m +19 -0
  20. package/ios/FragmentUniforms.swift +14 -0
  21. package/ios/GridRenderLayer.swift +962 -62
  22. package/ios/GridRenderLayerBridge.swift +30 -0
  23. package/ios/GridRenderLayerManager.mm +145 -139
  24. package/ios/GridRenderLayerView.h +23 -0
  25. package/ios/GridRenderLayerView.m +199 -0
  26. package/ios/InspectorDataCache.swift +66 -0
  27. package/ios/InspectorModule.m +10 -0
  28. package/ios/InspectorModule.swift +64 -0
  29. package/ios/Shaders.metal +131 -0
  30. package/ios/WeatherFrameProcessorModule.m +16 -0
  31. package/ios/WeatherFrameProcessorModule.swift +104 -0
  32. package/ios/aguacerowx-react-native.podspec +36 -28
  33. package/ios/generated/.gitkeep +0 -0
  34. package/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
  35. package/ios/generated/AguaceroWxReactNativeSpec.h +0 -0
  36. package/lib/commonjs/README.md +60 -60
  37. package/lib/commonjs/android/build.gradle +83 -84
  38. package/lib/commonjs/android/src/main/AndroidManifest.xml +6 -6
  39. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
  40. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +611 -607
  41. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +299 -297
  42. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +117 -117
  43. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -63
  44. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
  45. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -165
  46. package/lib/commonjs/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +0 -0
  47. package/lib/commonjs/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +0 -0
  48. package/lib/commonjs/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
  49. package/lib/commonjs/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
  50. package/lib/commonjs/android/src/main/res/raw/fragment_shader.glsl +97 -97
  51. package/lib/commonjs/android/src/main/res/raw/vertex_shader.glsl +19 -19
  52. package/lib/commonjs/babel.config.js.map +1 -1
  53. package/lib/commonjs/index.js.map +1 -1
  54. package/lib/commonjs/ios/AguaceroPackage.m +19 -0
  55. package/lib/commonjs/ios/FragmentUniforms.swift +14 -0
  56. package/lib/commonjs/ios/GridRenderLayer.swift +962 -0
  57. package/lib/commonjs/ios/GridRenderLayerBridge.swift +30 -0
  58. package/lib/commonjs/ios/GridRenderLayerManager.mm +146 -0
  59. package/lib/commonjs/ios/GridRenderLayerView.h +23 -0
  60. package/lib/commonjs/ios/GridRenderLayerView.m +199 -0
  61. package/lib/commonjs/ios/InspectorDataCache.swift +66 -0
  62. package/lib/commonjs/ios/InspectorModule.m +10 -0
  63. package/lib/commonjs/ios/InspectorModule.swift +64 -0
  64. package/lib/commonjs/ios/Shaders.metal +131 -0
  65. package/lib/commonjs/ios/WeatherFrameProcessorModule.m +16 -0
  66. package/lib/commonjs/ios/WeatherFrameProcessorModule.swift +104 -0
  67. package/lib/commonjs/ios/aguacerowx-react-native.podspec +37 -0
  68. package/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
  69. package/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec.h +0 -0
  70. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +1003 -0
  71. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -0
  72. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +381 -0
  73. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -0
  74. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +1229 -0
  75. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -0
  76. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +4023 -0
  77. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -0
  78. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js +38 -0
  79. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -0
  80. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +30 -0
  81. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -0
  82. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +27 -0
  83. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -0
  84. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js +47 -0
  85. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -0
  86. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +301 -0
  87. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -0
  88. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +126 -0
  89. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -0
  90. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +48 -0
  91. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +1029 -0
  92. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -0
  93. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +381 -0
  94. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -0
  95. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +1229 -0
  96. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -0
  97. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +4023 -0
  98. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -0
  99. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js +38 -0
  100. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -0
  101. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +30 -0
  102. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -0
  103. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +27 -0
  104. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -0
  105. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js +41 -0
  106. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -0
  107. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +301 -0
  108. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -0
  109. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +126 -0
  110. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -0
  111. package/lib/commonjs/package.json +71 -73
  112. package/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
  113. package/lib/commonjs/src/AguaceroContext.js.map +1 -1
  114. package/lib/commonjs/src/GridRenderLayer.js +32 -7
  115. package/lib/commonjs/src/GridRenderLayer.js.map +1 -1
  116. package/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
  117. package/lib/commonjs/src/MapManager.js +1 -4
  118. package/lib/commonjs/src/MapManager.js.map +1 -1
  119. package/lib/commonjs/src/MapRegistry.js.map +1 -1
  120. package/lib/commonjs/src/StyleApplicator.js +6 -6
  121. package/lib/commonjs/src/StyleApplicator.js.map +1 -1
  122. package/lib/commonjs/src/WeatherLayerManager.js +238 -212
  123. package/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
  124. package/lib/commonjs/tsconfig.json +23 -23
  125. package/lib/module/README.md +60 -60
  126. package/lib/module/android/build.gradle +83 -84
  127. package/lib/module/android/src/main/AndroidManifest.xml +6 -6
  128. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
  129. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +611 -607
  130. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +299 -297
  131. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +117 -117
  132. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -63
  133. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
  134. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -165
  135. package/lib/module/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +0 -0
  136. package/lib/module/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +0 -0
  137. package/lib/module/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
  138. package/lib/module/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
  139. package/lib/module/android/src/main/res/raw/fragment_shader.glsl +97 -97
  140. package/lib/module/android/src/main/res/raw/vertex_shader.glsl +19 -19
  141. package/lib/module/babel.config.js.map +1 -1
  142. package/lib/module/index.js.map +1 -1
  143. package/lib/module/ios/AguaceroPackage.m +19 -0
  144. package/lib/module/ios/FragmentUniforms.swift +14 -0
  145. package/lib/module/ios/GridRenderLayer.swift +962 -0
  146. package/lib/module/ios/GridRenderLayerBridge.swift +30 -0
  147. package/lib/module/ios/GridRenderLayerManager.mm +146 -0
  148. package/lib/module/ios/GridRenderLayerView.h +23 -0
  149. package/lib/module/ios/GridRenderLayerView.m +199 -0
  150. package/lib/module/ios/InspectorDataCache.swift +66 -0
  151. package/lib/module/ios/InspectorModule.m +10 -0
  152. package/lib/module/ios/InspectorModule.swift +64 -0
  153. package/lib/module/ios/Shaders.metal +131 -0
  154. package/lib/module/ios/WeatherFrameProcessorModule.m +16 -0
  155. package/lib/module/ios/WeatherFrameProcessorModule.swift +104 -0
  156. package/lib/module/ios/aguacerowx-react-native.podspec +37 -0
  157. package/lib/module/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
  158. package/lib/module/ios/generated/AguaceroWxReactNativeSpec.h +0 -0
  159. package/lib/module/lib/commonjs/README.md +60 -60
  160. package/lib/module/lib/commonjs/android/build.gradle +83 -84
  161. package/lib/module/lib/commonjs/android/src/main/AndroidManifest.xml +6 -6
  162. package/lib/module/lib/commonjs/babel.config.js.map +1 -1
  163. package/lib/module/lib/commonjs/index.js.map +1 -1
  164. package/lib/module/lib/commonjs/ios/AguaceroPackage.m +19 -0
  165. package/lib/module/lib/commonjs/ios/FragmentUniforms.swift +14 -0
  166. package/lib/module/lib/commonjs/ios/GridRenderLayer.swift +962 -0
  167. package/lib/module/lib/commonjs/ios/GridRenderLayerBridge.swift +30 -0
  168. package/lib/module/lib/commonjs/ios/GridRenderLayerManager.mm +146 -0
  169. package/lib/module/lib/commonjs/ios/GridRenderLayerView.h +23 -0
  170. package/lib/module/lib/commonjs/ios/GridRenderLayerView.m +199 -0
  171. package/lib/module/lib/commonjs/ios/InspectorDataCache.swift +66 -0
  172. package/lib/module/lib/commonjs/ios/InspectorModule.m +10 -0
  173. package/lib/module/lib/commonjs/ios/InspectorModule.swift +64 -0
  174. package/lib/module/lib/commonjs/ios/Shaders.metal +131 -0
  175. package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.m +16 -0
  176. package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.swift +104 -0
  177. package/lib/module/lib/commonjs/ios/aguacerowx-react-native.podspec +37 -0
  178. package/lib/module/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
  179. package/lib/module/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec.h +0 -0
  180. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +1003 -0
  181. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -0
  182. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +381 -0
  183. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -0
  184. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +1229 -0
  185. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -0
  186. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +4023 -0
  187. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -0
  188. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js +38 -0
  189. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -0
  190. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +30 -0
  191. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -0
  192. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +27 -0
  193. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -0
  194. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js +47 -0
  195. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -0
  196. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +301 -0
  197. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -0
  198. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +126 -0
  199. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -0
  200. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +48 -0
  201. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +1033 -0
  202. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -0
  203. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +381 -0
  204. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -0
  205. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +1229 -0
  206. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -0
  207. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +4023 -0
  208. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -0
  209. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js +38 -0
  210. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -0
  211. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +30 -0
  212. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -0
  213. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +27 -0
  214. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -0
  215. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js +41 -0
  216. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -0
  217. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +301 -0
  218. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -0
  219. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +126 -0
  220. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -0
  221. package/lib/module/lib/commonjs/package.json +71 -73
  222. package/lib/module/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
  223. package/lib/module/lib/commonjs/src/AguaceroContext.js.map +1 -1
  224. package/lib/module/lib/commonjs/src/GridRenderLayer.js +32 -7
  225. package/lib/module/lib/commonjs/src/GridRenderLayer.js.map +1 -1
  226. package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
  227. package/lib/module/lib/commonjs/src/MapManager.js +1 -4
  228. package/lib/module/lib/commonjs/src/MapManager.js.map +1 -1
  229. package/lib/module/lib/commonjs/src/MapRegistry.js.map +1 -1
  230. package/lib/module/lib/commonjs/src/StyleApplicator.js +6 -6
  231. package/lib/module/lib/commonjs/src/StyleApplicator.js.map +1 -1
  232. package/lib/module/lib/commonjs/src/WeatherLayerManager.js +238 -212
  233. package/lib/module/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
  234. package/lib/module/lib/commonjs/tsconfig.json +23 -23
  235. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +1003 -0
  236. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -0
  237. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +381 -0
  238. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -0
  239. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +1229 -0
  240. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -0
  241. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +4023 -0
  242. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -0
  243. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/events.js +38 -0
  244. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -0
  245. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +30 -0
  246. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -0
  247. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +27 -0
  248. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -0
  249. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/index.js +47 -0
  250. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -0
  251. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +301 -0
  252. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -0
  253. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +126 -0
  254. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -0
  255. package/lib/module/node_modules/@aguacerowx/javascript-sdk/package.json +48 -0
  256. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +1021 -0
  257. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -0
  258. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +375 -0
  259. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -0
  260. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +1223 -0
  261. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -0
  262. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +4017 -0
  263. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -0
  264. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/events.js +31 -0
  265. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -0
  266. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +29 -0
  267. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -0
  268. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +21 -0
  269. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -0
  270. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/index.js +12 -0
  271. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -0
  272. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +295 -0
  273. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -0
  274. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +119 -0
  275. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -0
  276. package/lib/module/package.json +71 -73
  277. package/lib/module/react-native-builder-bob.config.js.map +1 -1
  278. package/lib/module/src/AguaceroContext.js.map +1 -1
  279. package/lib/module/src/GridRenderLayer.js +32 -7
  280. package/lib/module/src/GridRenderLayer.js.map +1 -1
  281. package/lib/module/src/GridRenderLayerNativeComponent.js.map +1 -1
  282. package/lib/module/src/MapManager.js +1 -4
  283. package/lib/module/src/MapManager.js.map +1 -1
  284. package/lib/module/src/MapRegistry.js.map +1 -1
  285. package/lib/module/src/StyleApplicator.js +6 -6
  286. package/lib/module/src/StyleApplicator.js.map +1 -1
  287. package/lib/module/src/WeatherLayerManager.js +239 -213
  288. package/lib/module/src/WeatherLayerManager.js.map +1 -1
  289. package/lib/module/tsconfig.json +23 -23
  290. package/lib/typescript/src/GridRenderLayer.d.ts.map +1 -1
  291. package/lib/typescript/src/MapManager.d.ts.map +1 -1
  292. package/lib/typescript/src/WeatherLayerManager.d.ts.map +1 -1
  293. package/package.json +71 -73
  294. package/src/AguaceroContext.js +4 -0
  295. package/src/GridRenderLayer.js +205 -0
  296. package/src/GridRenderLayerNativeComponent.ts +16 -0
  297. package/src/MapManager.js +156 -0
  298. package/src/MapRegistry.js +35 -0
  299. package/src/StyleApplicator.js +241 -0
  300. package/src/WeatherLayerManager.js +873 -0
  301. package/android/build/.transforms/78b892a9dae44f36e51ff0649e9c6e36/results.bin +0 -1
  302. package/android/build/.transforms/78b892a9dae44f36e51ff0649e9c6e36/transformed/classes/classes_dex/classes.dex +0 -0
  303. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/results.bin +0 -1
  304. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/AguaceroPackage.dex +0 -0
  305. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/BuildConfig.dex +0 -0
  306. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.dex +0 -0
  307. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer.dex +0 -0
  308. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayerView.dex +0 -0
  309. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderManager.dex +0 -0
  310. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/InspectorModule.dex +0 -0
  311. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/ShaderUtils.dex +0 -0
  312. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/WeatherFrameProcessorModule.dex +0 -0
  313. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  314. package/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +0 -10
  315. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -8
  316. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  317. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  318. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  319. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  320. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  321. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -4
  322. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  323. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  324. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  325. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  326. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -5
  327. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  328. package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +0 -2
  329. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  330. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  331. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  332. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  333. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  334. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  335. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  336. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  337. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  338. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  339. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  340. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -6
  341. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -8
  342. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -8
  343. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  344. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  345. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +0 -13
  346. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +0 -13
  347. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +0 -98
  348. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +0 -20
  349. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  350. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  351. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  352. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  353. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  354. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  355. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  356. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  357. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  358. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  359. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -5
  360. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
  361. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AguaceroPackage.class.uniqueId1 +0 -0
  362. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  363. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderManager.class.uniqueId3 +0 -0
  364. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/InspectorModule.class.uniqueId0 +0 -0
  365. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  366. package/lib/commonjs/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +0 -10
  367. package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -8
  368. package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  369. package/lib/commonjs/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  370. package/lib/commonjs/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  371. package/lib/commonjs/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  372. package/lib/commonjs/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  373. package/lib/commonjs/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -4
  374. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  375. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  376. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  377. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  378. package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -5
  379. package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  380. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +0 -2
  381. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  382. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  383. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  384. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  385. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  386. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  387. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  388. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  389. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  390. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  391. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  392. package/lib/commonjs/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -6
  393. package/lib/commonjs/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -8
  394. package/lib/commonjs/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -8
  395. package/lib/commonjs/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  396. package/lib/commonjs/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  397. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +0 -13
  398. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +0 -13
  399. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +0 -98
  400. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +0 -20
  401. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  402. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  403. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  404. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  405. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  406. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  407. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  408. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  409. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  410. package/lib/commonjs/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  411. package/lib/commonjs/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -5
  412. package/lib/commonjs/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
  413. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AguaceroPackage.class.uniqueId1 +0 -0
  414. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  415. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderManager.class.uniqueId3 +0 -0
  416. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/InspectorModule.class.uniqueId0 +0 -0
  417. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  418. package/lib/module/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +0 -10
  419. package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -8
  420. package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  421. package/lib/module/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  422. package/lib/module/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  423. package/lib/module/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  424. package/lib/module/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  425. package/lib/module/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -4
  426. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  427. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  428. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  429. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  430. package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -5
  431. package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  432. package/lib/module/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +0 -2
  433. package/lib/module/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  434. package/lib/module/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  435. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  436. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  437. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  438. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  439. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  440. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  441. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  442. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  443. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  444. package/lib/module/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -6
  445. package/lib/module/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -8
  446. package/lib/module/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -8
  447. package/lib/module/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  448. package/lib/module/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  449. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +0 -13
  450. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +0 -13
  451. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +0 -98
  452. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +0 -20
  453. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  454. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  455. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  456. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  457. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  458. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  459. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  460. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  461. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  462. package/lib/module/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  463. package/lib/module/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -5
  464. package/lib/module/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
  465. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AguaceroPackage.class.uniqueId1 +0 -0
  466. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  467. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderManager.class.uniqueId3 +0 -0
  468. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/InspectorModule.class.uniqueId0 +0 -0
  469. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
@@ -14,13 +14,19 @@ var _MapRegistry = require("./MapRegistry");
14
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
15
  // packages/react-native/src/WeatherLayerManager.js
16
16
 
17
+ console.log("--- Aguacero Native Module Initial State Check ---");
18
+ console.log("All NativeModules:", Object.keys(_reactNative.NativeModules));
19
+ console.log("WeatherFrameProcessorModule available?:", !!_reactNative.NativeModules.WeatherFrameProcessorModule);
20
+ console.log("InspectorModule available?:", !!_reactNative.NativeModules.InspectorModule);
21
+ console.log("GridRenderLayerManager available?:", !!_reactNative.NativeModules.GridRenderLayerManager);
22
+ console.log("-------------------------------------------------");
17
23
  const {
18
24
  WeatherFrameProcessorModule,
19
25
  InspectorModule
20
26
  } = _reactNative.NativeModules;
21
27
 
22
- /**
23
- * A helper function to generate the raw RGBA byte buffer for the colormap texture.
28
+ /**
29
+ * A helper function to generate the raw RGBA byte buffer for the colormap texture.
24
30
  */
25
31
  const _generateColormapBytes = colormap => {
26
32
  const width = 256;
@@ -95,6 +101,7 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
95
101
 
96
102
  // Track if we've done the initial load
97
103
  const hasInitialLoad = (0, _react.useRef)(false);
104
+ const hasPreloadedRef = (0, _react.useRef)(false);
98
105
 
99
106
  // Track the last state we processed to avoid redundant updates
100
107
  const lastProcessedState = (0, _react.useRef)(null);
@@ -136,6 +143,12 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
136
143
  };
137
144
  }, [core]);
138
145
  const preloadAllFramesToDisk = state => {
146
+ if (hasPreloadedRef.current) {
147
+ console.log('✅ [Preload] Gating preload; already initiated for this dataset.');
148
+ return;
149
+ }
150
+ hasPreloadedRef.current = true;
151
+ console.log('🚀 [Preload] Initiating parallel preload for new dataset...');
139
152
  const {
140
153
  isMRMS,
141
154
  model,
@@ -144,13 +157,49 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
144
157
  variable,
145
158
  units,
146
159
  availableHours,
147
- availableTimestamps
160
+ availableTimestamps,
161
+ forecastHour,
162
+ mrmsTimestamp
148
163
  } = state;
164
+ if (!cachedGeometry.current || !cachedColormap.current) {
165
+ const gridModel = isMRMS ? 'mrms' : model;
166
+ const {
167
+ corners,
168
+ gridDef
169
+ } = core._getGridCornersAndDef(gridModel);
170
+ gridLayerRef.current.updateGeometry(corners, gridDef);
171
+ cachedGeometry.current = {
172
+ model: gridModel,
173
+ variable
174
+ };
175
+ const {
176
+ colormap,
177
+ baseUnit
178
+ } = core._getColormapForVariable(variable);
179
+ const toUnit = core._getTargetUnit(baseUnit, units);
180
+ const finalColormap = core._convertColormapUnits(colormap, baseUnit, toUnit);
181
+ const dataRange = [finalColormap[0], finalColormap[finalColormap.length - 2]];
182
+ const colormapBytes = _generateColormapBytes(finalColormap);
183
+ const colormapAsBase64 = (0, _base64Js.fromByteArray)(colormapBytes);
184
+ gridLayerRef.current.updateColormapTexture(colormapAsBase64);
185
+ cachedColormap.current = {
186
+ key: `${variable}-${units}`
187
+ };
188
+ cachedDataRange.current = dataRange;
189
+ setRenderProps({
190
+ opacity: state.opacity,
191
+ dataRange: dataRange
192
+ });
193
+ hasInitialLoad.current = true;
194
+ }
149
195
  const allFrames = isMRMS ? availableTimestamps : availableHours;
150
196
  if (!allFrames || allFrames.length === 0) {
151
197
  console.warn('🟡 [preloadAllFramesToDisk] No frames available to download.');
152
198
  return;
153
199
  }
200
+ const currentFrame = isMRMS ? mrmsTimestamp : forecastHour;
201
+ const prioritizedFrames = [currentFrame, ...allFrames.filter(frame => frame !== currentFrame)];
202
+ console.log(`[Preload] Prioritizing frame: ${currentFrame}. Total frames: ${prioritizedFrames.length}`);
154
203
  const {
155
204
  corners,
156
205
  gridDef
@@ -159,14 +208,10 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
159
208
  nx,
160
209
  ny
161
210
  } = gridDef.grid_params;
162
- let preloadedCount = 0;
163
- let skippedCount = 0;
164
- let errorCount = 0;
165
- for (const frame of allFrames) {
166
- const cacheKey = isMRMS ? `mrms-${frame}-${variable}-${units}` : `${model}-${date}-${run}-${frame}-${variable}-${units}`;
211
+ prioritizedFrames.forEach((frame, index) => {
212
+ const cacheKey = isMRMS ? `mrms-${frame}-${variable}` : `${model}-${date}-${run}-${frame}-${variable}`;
167
213
  if (preloadedDataCache.current.has(cacheKey)) {
168
- skippedCount++;
169
- continue;
214
+ return; // Use 'return' here as it's a forEach loop
170
215
  }
171
216
  let resourcePath;
172
217
  if (isMRMS) {
@@ -184,39 +229,97 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
184
229
  apiKey: core.apiKey,
185
230
  bundleId: core.bundleId
186
231
  };
187
- WeatherFrameProcessorModule.processFrame(options, (error, result) => {
188
- if (error || !result || !result.filePath) {
189
- errorCount++;
190
- console.warn(`⚠️ [preloadAllFramesToDisk] Failed frame ${frame}:`, error || "No filePath");
232
+ WeatherFrameProcessorModule.processFrame(options).then(result => {
233
+ if (!result || !result.filePath) {
234
+ console.warn(`⚠️ [preloadAllFramesToDisk] Failed frame ${frame}: No filePath`);
191
235
  return;
192
236
  }
193
- preloadedCount++;
194
- preloadedDataCache.current.set(cacheKey, {
237
+ const {
238
+ baseUnit
239
+ } = core._getColormapForVariable(variable);
240
+ const toUnit = core._getTargetUnit(baseUnit, units);
241
+ let dataScale = result.scale;
242
+ let dataOffset = result.offset;
243
+
244
+ // Calculate converted values for immediate use
245
+ let convertedScale = dataScale;
246
+ let convertedOffset = dataOffset;
247
+ if (baseUnit !== toUnit) {
248
+ const conversionFunc = (0, _javascriptSdk.getUnitConversionFunction)(baseUnit, toUnit);
249
+ if (conversionFunc) {
250
+ if (result.scaleType === 'sqrt') {
251
+ const physicalAtOffset = dataOffset * dataOffset;
252
+ const physicalAtOffsetPlusScale = (dataOffset + dataScale) * (dataOffset + dataScale);
253
+ const convertedPhysicalAtOffset = conversionFunc(physicalAtOffset);
254
+ const convertedPhysicalAtOffsetPlusScale = conversionFunc(physicalAtOffsetPlusScale);
255
+ convertedOffset = Math.sqrt(Math.abs(convertedPhysicalAtOffset)) * Math.sign(convertedPhysicalAtOffset);
256
+ const newOffsetPlusScale = Math.sqrt(Math.abs(convertedPhysicalAtOffsetPlusScale)) * Math.sign(convertedPhysicalAtOffsetPlusScale);
257
+ convertedScale = newOffsetPlusScale - convertedOffset;
258
+ } else {
259
+ convertedOffset = conversionFunc(dataOffset);
260
+ const convertedOffsetPlusScale = conversionFunc(dataOffset + dataScale);
261
+ convertedScale = convertedOffsetPlusScale - convertedOffset;
262
+ }
263
+ }
264
+ }
265
+
266
+ // Store with ORIGINAL values for unit conversion later
267
+ const frameData = {
195
268
  filePath: result.filePath,
196
269
  nx,
197
270
  ny,
198
- scale: result.scale,
199
- offset: result.offset,
271
+ scale: convertedScale,
272
+ // Current converted values
273
+ offset: convertedOffset,
200
274
  missing: result.missing,
201
275
  corners,
202
276
  gridDef,
203
277
  scaleType: result.scaleType,
204
278
  originalScale: result.scale,
205
- // ADD THIS
206
- originalOffset: result.offset // ADD THIS
207
- });
208
-
209
- // ADD THIS: If this frame matches the current state, update GPU immediately
210
- if (isMRMS && frame === state.mrmsTimestamp || !isMRMS && frame === state.forecastHour) {
211
- console.log(`🎯 [preloadAllFramesToDisk] Current frame loaded, updating GPU`);
212
- updateGPUWithCachedData(state);
279
+ // CRITICAL: Always original
280
+ originalOffset: result.offset // CRITICAL: Always original
281
+ };
282
+ preloadedDataCache.current.set(cacheKey, frameData);
283
+ const isCurrentFrame = index === 0;
284
+ if (isCurrentFrame) {
285
+ console.log(`🎯 [Preload] Using FAST LANE to process and draw current frame (${frame}) immediately.`);
286
+ gridLayerRef.current.updateDataTextureFromFile(frameData.filePath, frameData.nx, frameData.ny, frameData.scale, frameData.offset, frameData.missing, frameData.scaleType);
287
+ currentGridDataRef.current = {
288
+ nx: frameData.nx,
289
+ ny: frameData.ny,
290
+ scale: frameData.scale,
291
+ offset: frameData.offset,
292
+ missing: frameData.missing,
293
+ gridDef: frameData.gridDef,
294
+ variable: variable,
295
+ units: units
296
+ };
297
+ } else {
298
+ if (_reactNative.Platform.OS === 'ios' && gridLayerRef.current.primeGpuCache) {
299
+ const frameInfoForGpu = {
300
+ [cacheKey]: {
301
+ filePath: frameData.filePath,
302
+ nx: frameData.nx,
303
+ ny: frameData.ny,
304
+ scale: frameData.scale,
305
+ // Current converted scale
306
+ offset: frameData.offset,
307
+ // Current converted offset
308
+ missing: frameData.missing,
309
+ scaleType: frameData.scaleType || 'linear',
310
+ originalScale: frameData.originalScale,
311
+ // ADD THIS
312
+ originalOffset: frameData.originalOffset // ADD THIS
313
+ }
314
+ };
315
+ gridLayerRef.current.primeGpuCache(frameInfoForGpu);
316
+ }
213
317
  }
318
+ }).catch(error => {
319
+ console.warn(`⚠️ [preloadAllFramesToDisk] Failed frame ${frame}:`, error);
214
320
  });
215
- }
321
+ });
216
322
  };
217
-
218
- // In WeatherLayerManager.js - Add extensive logging throughout
219
-
220
323
  const updateGPUWithCachedData = state => {
221
324
  const {
222
325
  model,
@@ -228,16 +331,41 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
228
331
  isMRMS,
229
332
  mrmsTimestamp
230
333
  } = state;
231
- const cacheKey = isMRMS ? `mrms-${mrmsTimestamp}-${variable}-${units}` : `${model}-${date}-${run}-${forecastHour}-${variable}-${units}`;
334
+ const cacheKey = isMRMS ? `mrms-${mrmsTimestamp}-${variable}` : `${model}-${date}-${run}-${forecastHour}-${variable}`;
335
+ if (_reactNative.Platform.OS === 'ios' && gridLayerRef.current.setActiveFrame) {
336
+ // Get the cached data BEFORE calling setActiveFrame
337
+ const cachedData = preloadedDataCache.current.get(cacheKey);
338
+ if (cachedData) {
339
+ currentGridDataRef.current = {
340
+ nx: cachedData.nx,
341
+ ny: cachedData.ny,
342
+ scale: cachedData.scale,
343
+ offset: cachedData.offset,
344
+ missing: cachedData.missing,
345
+ gridDef: cachedData.gridDef,
346
+ variable: variable,
347
+ units: units,
348
+ scaleType: cachedData.scaleType
349
+ };
350
+ console.log('📱 [iOS] Updated currentGridDataRef for inspector:', {
351
+ scale: cachedData.scale,
352
+ offset: cachedData.offset,
353
+ scaleType: cachedData.scaleType // ADD THIS
354
+ });
355
+ }
356
+
357
+ // Now call setActiveFrame (which will async update the native cache)
358
+ gridLayerRef.current.setActiveFrame(cacheKey);
359
+ return true;
360
+ }
232
361
  const cachedData = preloadedDataCache.current.get(cacheKey);
233
362
  if (!cachedData) {
234
363
  const timeKey = isMRMS ? `timestamp ${mrmsTimestamp}` : `hour +${forecastHour}`;
235
- console.error(`❌ [updateGPUWithCachedData] No cached data for ${timeKey}. Key not found: ${cacheKey}`);
236
- console.error('❌ [updateGPUWithCachedData] Available keys:', Array.from(preloadedDataCache.current.keys()));
364
+ console.log(`⏳ [updateGPUWithCachedData] Frame not ready yet for ${timeKey}. Still preloading...`); // CHANGED
237
365
  return false;
238
366
  }
239
367
  if (!gridLayerRef.current) {
240
- console.error(`❌ [updateGPUWithCachedData] GridLayer ref not available`);
368
+ console.warn(`⚠️ [updateGPUWithCachedData] GridLayer ref not available`); // CHANGED
241
369
  return false;
242
370
  }
243
371
  if (!cachedGeometry.current || cachedGeometry.current.model !== (isMRMS ? 'mrms' : model) || cachedGeometry.current.variable !== variable) {
@@ -343,8 +471,6 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
343
471
  i,
344
472
  j
345
473
  } = gridIndices;
346
-
347
- // The native module uses the cached scale/offset which we update via updateDataParameters
348
474
  const value = await InspectorModule.getValueAtGridIndex(i, j);
349
475
  if (value === null) {
350
476
  return null;
@@ -354,10 +480,12 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
354
480
  baseUnit
355
481
  } = core._getColormapForVariable(core.state.variable);
356
482
  const displayUnit = core._getTargetUnit(baseUnit, core.state.units);
357
-
358
- // Get the converted colormap to check min threshold
359
483
  const finalColormap = core._convertColormapUnits(colormap, baseUnit, displayUnit);
360
- const minThreshold = finalColormap[0]; // First value in colormap is the minimum
484
+ const minThreshold = finalColormap[0];
485
+ if (value < minThreshold) {
486
+ console.log('🔍 [Inspector] Rejected: below threshold'); // ADD THIS LOG
487
+ return null;
488
+ }
361
489
 
362
490
  // Filter out values below the minimum threshold (matching shader behavior)
363
491
  if (value < minThreshold) {
@@ -425,7 +553,7 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
425
553
  run,
426
554
  forecastHour
427
555
  } = newState;
428
- const oldCacheKey = isMRMS ? `mrms-${mrmsTimestamp}-${variable}-${previousStateRef.current.units}` : `${model}-${date}-${run}-${forecastHour}-${variable}-${previousStateRef.current.units}`;
556
+ const oldCacheKey = isMRMS ? `mrms-${mrmsTimestamp}-${variable}` : `${model}-${date}-${run}-${forecastHour}-${variable}`;
429
557
  const cachedData = preloadedDataCache.current.get(oldCacheKey);
430
558
  if (cachedData && cachedData.originalScale !== undefined && cachedData.originalOffset !== undefined) {
431
559
  const {
@@ -435,42 +563,83 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
435
563
  let dataScale = cachedData.originalScale;
436
564
  let dataOffset = cachedData.originalOffset;
437
565
  if (baseUnit !== toUnit) {
438
- const conversionFunc = (0, _javascriptSdk.getUnitConversionFunction)(baseUnit, toUnit); // ✅ Use SDK function
566
+ const conversionFunc = (0, _javascriptSdk.getUnitConversionFunction)(baseUnit, toUnit);
567
+ console.log('🔧 [Unit Conversion] Conversion function exists:', !!conversionFunc);
439
568
  if (conversionFunc) {
440
- const convertedOffset = conversionFunc(dataOffset);
441
- const convertedOffsetPlusScale = conversionFunc(dataOffset + dataScale);
442
- dataScale = convertedOffsetPlusScale - convertedOffset;
443
- dataOffset = convertedOffset;
569
+ if (cachedData.scaleType === 'sqrt') {
570
+ // Calculate what the physical values would be at offset and offset+scale
571
+ const physicalAtOffset = dataOffset * dataOffset;
572
+ const physicalAtOffsetPlusScale = (dataOffset + dataScale) * (dataOffset + dataScale);
573
+
574
+ // Convert these physical values to the new unit
575
+ const convertedPhysicalAtOffset = conversionFunc(physicalAtOffset);
576
+ const convertedPhysicalAtOffsetPlusScale = conversionFunc(physicalAtOffsetPlusScale);
577
+
578
+ // Take sqrt to get back to intermediate values
579
+ const newOffset = Math.sqrt(Math.abs(convertedPhysicalAtOffset)) * Math.sign(convertedPhysicalAtOffset);
580
+ const newOffsetPlusScale = Math.sqrt(Math.abs(convertedPhysicalAtOffsetPlusScale)) * Math.sign(convertedPhysicalAtOffsetPlusScale);
581
+ dataScale = newOffsetPlusScale - newOffset;
582
+ dataOffset = newOffset;
583
+ } else {
584
+ const convertedOffset = conversionFunc(dataOffset);
585
+ const convertedOffsetPlusScale = conversionFunc(dataOffset + dataScale);
586
+ dataScale = convertedOffsetPlusScale - convertedOffset;
587
+ dataOffset = convertedOffset;
588
+ }
444
589
  }
445
590
  }
446
591
 
447
- // ONLY update the inspector cache parameters - don't touch GPU or colormap!
592
+ // Update the colormap AND data range
593
+ const {
594
+ colormap
595
+ } = core._getColormapForVariable(variable);
596
+ const finalColormap = core._convertColormapUnits(colormap, baseUnit, toUnit);
597
+ const dataRange = [finalColormap[0], finalColormap[finalColormap.length - 2]];
598
+ const colormapBytes = _generateColormapBytes(finalColormap);
599
+ const colormapAsBase64 = (0, _base64Js.fromByteArray)(colormapBytes);
600
+ gridLayerRef.current.updateColormapTexture(colormapAsBase64);
601
+ cachedColormap.current = {
602
+ key: `${variable}-${units}`
603
+ };
604
+ cachedDataRange.current = dataRange;
605
+ setRenderProps(prev => ({
606
+ ...prev,
607
+ dataRange,
608
+ opacity: newState.opacity
609
+ }));
448
610
  if (gridLayerRef.current && gridLayerRef.current.updateDataParameters) {
449
- gridLayerRef.current.updateDataParameters(dataScale, dataOffset, cachedData.missing);
450
- }
611
+ const scaleTypeValue = cachedData.scaleType === 'sqrt' ? 1 : 0; // Convert to number
451
612
 
452
- // Create new cache entry with new units
453
- const newCacheKey = isMRMS ? `mrms-${mrmsTimestamp}-${variable}-${units}` : `${model}-${date}-${run}-${forecastHour}-${variable}-${units}`;
613
+ console.log('🔄 [Unit Conversion] Calling updateDataParameters with:', {
614
+ scale: dataScale,
615
+ offset: dataOffset,
616
+ missing: cachedData.missing,
617
+ scaleType: scaleTypeValue
618
+ });
619
+ gridLayerRef.current.updateDataParameters(dataScale, dataOffset, cachedData.missing, scaleTypeValue); // Pass scaleType
620
+ }
621
+ const newCacheKey = isMRMS ? `mrms-${mrmsTimestamp}-${variable}` : `${model}-${date}-${run}-${forecastHour}-${variable}`;
454
622
  preloadedDataCache.current.set(newCacheKey, {
455
623
  ...cachedData,
456
624
  scale: dataScale,
457
625
  offset: dataOffset
458
626
  });
627
+ } else {
628
+ console.warn('⚠️ [Unit Conversion] No cached data found for key:', oldCacheKey);
459
629
  }
460
630
  previousStateRef.current = newState;
461
- if (newState.opacity !== renderProps.opacity) {
462
- setRenderProps(prev => ({
463
- ...prev,
464
- opacity: newState.opacity
465
- }));
466
- }
467
631
  return;
468
632
  }
469
633
  const needsFullLoad = !hasInitialLoad.current || newState.model !== previousStateRef.current.model || newState.isMRMS !== previousStateRef.current.isMRMS || newState.variable !== previousStateRef.current.variable || newState.date !== previousStateRef.current.date || newState.run !== previousStateRef.current.run;
470
634
  if (needsFullLoad) {
471
635
  if (gridLayerRef.current) {
472
636
  gridLayerRef.current.clear();
637
+ // --- OPTIMIZATION: Clear the native GPU cache on iOS ---
638
+ if (_reactNative.Platform.OS === 'ios' && gridLayerRef.current.clearGpuCache) {
639
+ gridLayerRef.current.clearGpuCache();
640
+ }
473
641
  }
642
+ hasPreloadedRef.current = false;
474
643
  preloadedDataCache.current.clear();
475
644
  cachedGeometry.current = null;
476
645
  cachedColormap.current = null;
@@ -482,166 +651,23 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
482
651
  previousStateRef.current = newState;
483
652
  return;
484
653
  }
485
- try {
486
- const {
487
- model,
488
- date,
489
- run,
490
- forecastHour,
491
- variable,
492
- units,
493
- isMRMS,
494
- mrmsTimestamp
495
- } = newState;
496
- const gridModel = isMRMS ? 'mrms' : model;
497
- const {
498
- corners,
499
- gridDef
500
- } = core._getGridCornersAndDef(gridModel);
501
- const {
502
- nx,
503
- ny
504
- } = gridDef.grid_params;
505
- let resourcePath;
506
- if (isMRMS) {
507
- if (!mrmsTimestamp) {
508
- previousStateRef.current = newState;
509
- return;
510
- }
511
- const mrmsDate = new Date(mrmsTimestamp * 1000);
512
- const y = mrmsDate.getUTCFullYear();
513
- const m = (mrmsDate.getUTCMonth() + 1).toString().padStart(2, '0');
514
- const d = mrmsDate.getUTCDate().toString().padStart(2, '0');
515
- resourcePath = `/grids/mrms/${y}${m}${d}/${mrmsTimestamp}/0/${variable}/0`;
516
- } else {
517
- resourcePath = `/grids/${model}/${date}/${run}/${forecastHour}/${variable}/0`;
518
- }
519
- const url = `${core.baseGridUrl}${resourcePath}?apiKey=${core.apiKey}`;
520
- const options = {
521
- url,
522
- apiKey: core.apiKey,
523
- bundleId: core.bundleId
524
- };
525
- const result = await new Promise((resolve, reject) => {
526
- WeatherFrameProcessorModule.processFrame(options, (error, res) => {
527
- if (error) {
528
- resolve(null);
529
- } else {
530
- resolve(res);
531
- }
532
- });
533
- });
534
- if (!result) {
535
- hasInitialLoad.current = true;
536
- previousStateRef.current = newState;
537
- preloadAllFramesToDisk(newState);
538
- return;
539
- }
540
- if (result && gridLayerRef.current) {
541
- gridLayerRef.current.updateGeometry(corners, gridDef);
542
- cachedGeometry.current = {
543
- model: gridModel,
544
- variable
545
- };
546
- const {
547
- colormap,
548
- baseUnit
549
- } = core._getColormapForVariable(variable);
550
- const toUnit = core._getTargetUnit(baseUnit, units);
551
- let dataScale = result.scale;
552
- let dataOffset = result.offset;
553
-
554
- // Store original scale/offset for unit conversion later
555
- const originalScale = result.scale;
556
- const originalOffset = result.offset;
557
- if (baseUnit !== toUnit) {
558
- const conversionFunc = (0, _javascriptSdk.getUnitConversionFunction)(baseUnit, toUnit);
559
- if (conversionFunc) {
560
- const convertedOffset = conversionFunc(dataOffset);
561
- const convertedOffsetPlusScale = conversionFunc(dataOffset + dataScale);
562
- dataScale = convertedOffsetPlusScale - convertedOffset;
563
- dataOffset = convertedOffset;
564
- }
565
- }
566
- if (result.dataAsBase64) {
567
- const binaryString = atob(result.dataAsBase64);
568
- const uint8Array = new Uint8Array(binaryString.length);
569
- for (let i = 0; i < binaryString.length; i++) {
570
- uint8Array[i] = binaryString.charCodeAt(i);
571
- }
572
- currentGridDataRef.current = {
573
- data: uint8Array,
574
- nx,
575
- ny,
576
- scale: dataScale,
577
- offset: dataOffset,
578
- missing: result.missing,
579
- gridDef: gridDef,
580
- variable: variable,
581
- units: units
582
- };
583
- }
584
-
585
- // Now upload to GPU
586
- if (result.filePath) {
587
- gridLayerRef.current.updateDataTextureFromFile(result.filePath, nx, ny, dataScale, dataOffset, result.missing, result.scaleType);
588
- } else if (result.dataAsBase64) {
589
- gridLayerRef.current.updateDataTexture(result.dataAsBase64, nx, ny, dataScale, dataOffset, result.missing, result.scaleType);
590
- }
591
- const finalColormap = core._convertColormapUnits(colormap, baseUnit, toUnit);
592
- const dataRange = [finalColormap[0], finalColormap[finalColormap.length - 2]];
593
- const colormapBytes = _generateColormapBytes(finalColormap);
594
- const colormapAsBase64 = (0, _base64Js.fromByteArray)(colormapBytes);
595
- gridLayerRef.current.updateColormapTexture(colormapAsBase64);
596
- cachedColormap.current = {
597
- key: `${variable}-${units}`
598
- };
599
- cachedDataRange.current = dataRange;
600
- setRenderProps({
601
- opacity: newState.opacity,
602
- dataRange: dataRange
603
- });
604
- hasInitialLoad.current = true;
605
- const cacheKey = isMRMS ? `mrms-${mrmsTimestamp}-${variable}-${units}` : `${model}-${date}-${run}-${forecastHour}-${variable}-${units}`;
606
- const dataToCache = {
607
- nx,
608
- ny,
609
- scale: dataScale,
610
- offset: dataOffset,
611
- originalScale: originalScale,
612
- // Store original for unit conversion
613
- originalOffset: originalOffset,
614
- // Store original for unit conversion
615
- missing: result.missing,
616
- corners,
617
- gridDef
618
- };
619
- if (result.filePath) dataToCache.filePath = result.filePath;
620
- if (result.dataAsBase64) dataToCache.dataAsBase64 = result.dataAsBase64;
621
- if (result.scaleType) dataToCache.scaleType = result.scaleType;
622
- preloadedDataCache.current.set(cacheKey, dataToCache);
623
- preloadAllFramesToDisk(newState);
624
- }
625
- } catch (error) {
626
- console.error("❌❌❌ [handleStateChange] CRITICAL ERROR:", error);
627
- console.error("❌ [handleStateChange] Stack:", error.stack);
628
- }
654
+ preloadAllFramesToDisk(newState);
629
655
  } else if (newState.forecastHour !== previousStateRef.current.forecastHour || newState.isMRMS && newState.mrmsTimestamp !== previousStateRef.current.mrmsTimestamp) {
630
656
  const success = updateGPUWithCachedData(newState);
631
657
  if (!success) {
632
- console.error('❌ [handleStateChange] GPU update failed - data not in cache yet');
633
- // Don't try on-demand fetch - just wait for preload to complete
634
- // Clear the layer since we don't have data yet
635
- if (gridLayerRef.current) {
636
- gridLayerRef.current.clear();
658
+ // CHANGED: Don't error, just log and wait for preload
659
+ const timeKey = newState.isMRMS ? `timestamp ${newState.mrmsTimestamp}` : `hour +${newState.forecastHour}`;
660
+ console.log(`⏳ [handleStateChange] Frame ${timeKey} not ready yet, waiting for preload...`);
661
+ // Don't clear the layer - keep showing the previous frame until new one is ready
662
+ // The preload will eventually complete and trigger a re-render
663
+ } else {
664
+ // Only update inspector cache when we successfully loaded new data
665
+ if (newState.opacity !== renderProps.opacity) {
666
+ setRenderProps(prev => ({
667
+ ...prev,
668
+ opacity: newState.opacity
669
+ }));
637
670
  }
638
- currentGridDataRef.current = null; // ADD THIS LINE - Clear inspector cache when no data
639
- }
640
- if (newState.opacity !== renderProps.opacity) {
641
- setRenderProps(prev => ({
642
- ...prev,
643
- opacity: newState.opacity
644
- }));
645
671
  }
646
672
  }
647
673
  previousStateRef.current = newState;