@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
@@ -1,118 +1,118 @@
1
- package com.aguacerowx.reactnative;
2
-
3
- import androidx.annotation.NonNull;
4
- import androidx.annotation.Nullable;
5
-
6
- import com.facebook.react.bridge.ReadableArray;
7
- import com.facebook.react.bridge.ReadableMap;
8
- import com.facebook.react.uimanager.SimpleViewManager;
9
- import com.facebook.react.uimanager.ThemedReactContext;
10
- import com.facebook.react.uimanager.annotations.ReactProp;
11
- import android.util.Log;
12
-
13
- import java.util.Map;
14
- import java.util.HashMap;
15
-
16
- public class GridRenderManager extends SimpleViewManager<GridRenderLayerView> {
17
-
18
- private static final String REACT_CLASS = "GridRenderLayer";
19
- private static final int COMMAND_UPDATE_DATA_TEXTURE = 1;
20
- private static final int COMMAND_UPDATE_COLORMAP_TEXTURE = 2;
21
- private static final int COMMAND_UPDATE_GEOMETRY = 3;
22
- private static final int COMMAND_UPDATE_DATA_PARAMETERS = 4;
23
- private static final int COMMAND_CLEAR = 5;
24
-
25
- @NonNull
26
- @Override
27
- public String getName() {
28
- return REACT_CLASS;
29
- }
30
-
31
- @NonNull
32
- @Override
33
- protected GridRenderLayerView createViewInstance(@NonNull ThemedReactContext reactContext) {
34
- return new GridRenderLayerView(reactContext);
35
- }
36
-
37
- @ReactProp(name = "opacity", defaultFloat = 1.0f)
38
- public void setOpacity(GridRenderLayerView view, float opacity) {
39
- view.setOpacity(opacity);
40
- }
41
-
42
- @ReactProp(name = "dataRange")
43
- public void setDataRange(GridRenderLayerView view, @Nullable ReadableArray dataRange) {
44
- if (dataRange != null && dataRange.size() == 2) {
45
- float[] range = new float[]{
46
- (float) dataRange.getDouble(0),
47
- (float) dataRange.getDouble(1)
48
- };
49
- view.setDataRange(range);
50
- }
51
- }
52
-
53
- @ReactProp(name = "belowID")
54
- public void setBelowID(GridRenderLayerView view, @Nullable String belowID) {
55
- view.setBelowID(belowID);
56
- }
57
-
58
- @ReactProp(name = "smoothing", defaultBoolean = true)
59
- public void setSmoothing(GridRenderLayerView view, boolean enabled) {
60
- view.setSmoothing(enabled);
61
- }
62
-
63
- @Override
64
- public Map<String, Integer> getCommandsMap() {
65
- Map<String, Integer> commands = new HashMap<>();
66
- commands.put("updateDataTexture", COMMAND_UPDATE_DATA_TEXTURE);
67
- commands.put("updateColormapTexture", COMMAND_UPDATE_COLORMAP_TEXTURE);
68
- commands.put("updateGeometry", COMMAND_UPDATE_GEOMETRY);
69
- commands.put("updateDataParameters", COMMAND_UPDATE_DATA_PARAMETERS);
70
- commands.put("clear", COMMAND_CLEAR);
71
- return commands;
72
- }
73
-
74
- @Override
75
- public void receiveCommand(@NonNull GridRenderLayerView view, int commandId, @Nullable ReadableArray args) {
76
- switch (commandId) {
77
- case COMMAND_UPDATE_DATA_TEXTURE:
78
- String data = args.getString(0);
79
- int nx = args.getInt(1);
80
- int ny = args.getInt(2);
81
- float scale = (float) args.getDouble(3);
82
- float offset = (float) args.getDouble(4);
83
- float missing = (float) args.getDouble(5);
84
- String scaleType = args.getString(6);
85
-
86
- view.updateDataTexture(data, nx, ny, scale, offset, missing, scaleType);
87
- break;
88
-
89
- case COMMAND_UPDATE_COLORMAP_TEXTURE:
90
- if (args != null && args.size() > 0) {
91
- String colormapBase64 = args.getString(0);
92
- view.updateColormapTexture(colormapBase64);
93
- }
94
- break;
95
-
96
- case COMMAND_UPDATE_GEOMETRY:
97
- if (args != null && args.size() >= 2) {
98
- ReadableMap corners = args.getMap(0);
99
- ReadableMap gridDef = args.getMap(1);
100
- view.updateGeometry(corners, gridDef);
101
- }
102
- break;
103
-
104
- case COMMAND_UPDATE_DATA_PARAMETERS:
105
- if (args != null && args.size() >= 3) {
106
- float scaleParam = (float) args.getDouble(0);
107
- float offsetParam = (float) args.getDouble(1);
108
- float missingParam = (float) args.getDouble(2);
109
- view.updateDataParameters(scaleParam, offsetParam, missingParam);
110
- }
111
- break;
112
-
113
- case COMMAND_CLEAR:
114
- view.clearData();
115
- break;
116
- }
117
- }
1
+ package com.aguacerowx.reactnative;
2
+
3
+ import androidx.annotation.NonNull;
4
+ import androidx.annotation.Nullable;
5
+
6
+ import com.facebook.react.bridge.ReadableArray;
7
+ import com.facebook.react.bridge.ReadableMap;
8
+ import com.facebook.react.uimanager.SimpleViewManager;
9
+ import com.facebook.react.uimanager.ThemedReactContext;
10
+ import com.facebook.react.uimanager.annotations.ReactProp;
11
+ import android.util.Log;
12
+
13
+ import java.util.Map;
14
+ import java.util.HashMap;
15
+
16
+ public class GridRenderManager extends SimpleViewManager<GridRenderLayerView> {
17
+
18
+ private static final String REACT_CLASS = "GridRenderLayer";
19
+ private static final int COMMAND_UPDATE_DATA_TEXTURE = 1;
20
+ private static final int COMMAND_UPDATE_COLORMAP_TEXTURE = 2;
21
+ private static final int COMMAND_UPDATE_GEOMETRY = 3;
22
+ private static final int COMMAND_UPDATE_DATA_PARAMETERS = 4;
23
+ private static final int COMMAND_CLEAR = 5;
24
+
25
+ @NonNull
26
+ @Override
27
+ public String getName() {
28
+ return REACT_CLASS;
29
+ }
30
+
31
+ @NonNull
32
+ @Override
33
+ protected GridRenderLayerView createViewInstance(@NonNull ThemedReactContext reactContext) {
34
+ return new GridRenderLayerView(reactContext);
35
+ }
36
+
37
+ @ReactProp(name = "opacity", defaultFloat = 1.0f)
38
+ public void setOpacity(GridRenderLayerView view, float opacity) {
39
+ view.setOpacity(opacity);
40
+ }
41
+
42
+ @ReactProp(name = "dataRange")
43
+ public void setDataRange(GridRenderLayerView view, @Nullable ReadableArray dataRange) {
44
+ if (dataRange != null && dataRange.size() == 2) {
45
+ float[] range = new float[]{
46
+ (float) dataRange.getDouble(0),
47
+ (float) dataRange.getDouble(1)
48
+ };
49
+ view.setDataRange(range);
50
+ }
51
+ }
52
+
53
+ @ReactProp(name = "belowID")
54
+ public void setBelowID(GridRenderLayerView view, @Nullable String belowID) {
55
+ view.setBelowID(belowID);
56
+ }
57
+
58
+ @ReactProp(name = "smoothing", defaultBoolean = true)
59
+ public void setSmoothing(GridRenderLayerView view, boolean enabled) {
60
+ view.setSmoothing(enabled);
61
+ }
62
+
63
+ @Override
64
+ public Map<String, Integer> getCommandsMap() {
65
+ Map<String, Integer> commands = new HashMap<>();
66
+ commands.put("updateDataTexture", COMMAND_UPDATE_DATA_TEXTURE);
67
+ commands.put("updateColormapTexture", COMMAND_UPDATE_COLORMAP_TEXTURE);
68
+ commands.put("updateGeometry", COMMAND_UPDATE_GEOMETRY);
69
+ commands.put("updateDataParameters", COMMAND_UPDATE_DATA_PARAMETERS);
70
+ commands.put("clear", COMMAND_CLEAR);
71
+ return commands;
72
+ }
73
+
74
+ @Override
75
+ public void receiveCommand(@NonNull GridRenderLayerView view, int commandId, @Nullable ReadableArray args) {
76
+ switch (commandId) {
77
+ case COMMAND_UPDATE_DATA_TEXTURE:
78
+ String data = args.getString(0);
79
+ int nx = args.getInt(1);
80
+ int ny = args.getInt(2);
81
+ float scale = (float) args.getDouble(3);
82
+ float offset = (float) args.getDouble(4);
83
+ float missing = (float) args.getDouble(5);
84
+ String scaleType = args.getString(6);
85
+
86
+ view.updateDataTexture(data, nx, ny, scale, offset, missing, scaleType);
87
+ break;
88
+
89
+ case COMMAND_UPDATE_COLORMAP_TEXTURE:
90
+ if (args != null && args.size() > 0) {
91
+ String colormapBase64 = args.getString(0);
92
+ view.updateColormapTexture(colormapBase64);
93
+ }
94
+ break;
95
+
96
+ case COMMAND_UPDATE_GEOMETRY:
97
+ if (args != null && args.size() >= 2) {
98
+ ReadableMap corners = args.getMap(0);
99
+ ReadableMap gridDef = args.getMap(1);
100
+ view.updateGeometry(corners, gridDef);
101
+ }
102
+ break;
103
+
104
+ case COMMAND_UPDATE_DATA_PARAMETERS:
105
+ if (args != null && args.size() >= 3) {
106
+ float scaleParam = (float) args.getDouble(0);
107
+ float offsetParam = (float) args.getDouble(1);
108
+ float missingParam = (float) args.getDouble(2);
109
+ view.updateDataParameters(scaleParam, offsetParam, missingParam);
110
+ }
111
+ break;
112
+
113
+ case COMMAND_CLEAR:
114
+ view.clearData();
115
+ break;
116
+ }
117
+ }
118
118
  }
@@ -1,64 +1,72 @@
1
- package com.aguacerowx.reactnative;
2
-
3
- import androidx.annotation.NonNull;
4
- import com.facebook.react.bridge.Promise;
5
- import com.facebook.react.bridge.ReactApplicationContext;
6
- import com.facebook.react.bridge.ReactContextBaseJavaModule;
7
- import com.facebook.react.bridge.ReactMethod;
8
-
9
- public class InspectorModule extends ReactContextBaseJavaModule {
10
-
11
- public InspectorModule(ReactApplicationContext reactContext) {
12
- super(reactContext);
13
- }
14
-
15
- @NonNull
16
- @Override
17
- public String getName() {
18
- return "InspectorModule";
19
- }
20
-
21
- @ReactMethod
22
- public void getValueAtGridIndex(int i, int j, Promise promise) {
23
- try {
24
- byte[] data = GridRenderLayerView.getLastDecompressedData();
25
- if (data == null) {
26
- promise.resolve(null);
27
- return;
28
- }
29
-
30
- int nx = GridRenderLayerView.getLastDataNx();
31
- int ny = GridRenderLayerView.getLastDataNy();
32
- float scale = GridRenderLayerView.getLastDataScale();
33
- float offset = GridRenderLayerView.getLastDataOffset();
34
- float missing = GridRenderLayerView.getLastDataMissing();
35
-
36
- // Calculate index
37
- int index = j * nx + i;
38
-
39
- // Bounds check
40
- if (index < 0 || index >= data.length) {
41
- promise.resolve(null);
42
- return;
43
- }
44
-
45
- // Read byte value
46
- int byteValue = data[index] & 0xFF; // Convert to unsigned
47
- int signedQuantizedValue = byteValue - 128;
48
- int missingQuantized = Math.round(missing - 128);
49
-
50
- // Check for missing value
51
- if (signedQuantizedValue == missingQuantized) {
52
- promise.resolve(null);
53
- return;
54
- }
55
-
56
- // Calculate actual value
57
- double value = signedQuantizedValue * scale + offset;
58
-
59
- promise.resolve(value);
60
- } catch (Exception e) {
61
- promise.reject("ERROR", e.getMessage());
62
- }
63
- }
1
+ package com.aguacerowx.reactnative;
2
+
3
+ import androidx.annotation.NonNull;
4
+ import com.facebook.react.bridge.Promise;
5
+ import com.facebook.react.bridge.ReactApplicationContext;
6
+ import com.facebook.react.bridge.ReactContextBaseJavaModule;
7
+ import com.facebook.react.bridge.ReactMethod;
8
+
9
+ public class InspectorModule extends ReactContextBaseJavaModule {
10
+
11
+ public InspectorModule(ReactApplicationContext reactContext) {
12
+ super(reactContext);
13
+ }
14
+
15
+ @NonNull
16
+ @Override
17
+ public String getName() {
18
+ return "InspectorModule";
19
+ }
20
+
21
+ @ReactMethod
22
+ public void getValueAtGridIndex(int i, int j, Promise promise) {
23
+ try {
24
+ byte[] data = GridRenderLayerView.getLastDecompressedData();
25
+ if (data == null) {
26
+ promise.resolve(null);
27
+ return;
28
+ }
29
+
30
+ int nx = GridRenderLayerView.getLastDataNx();
31
+ int ny = GridRenderLayerView.getLastDataNy();
32
+ float scale = GridRenderLayerView.getLastDataScale();
33
+ float offset = GridRenderLayerView.getLastDataOffset();
34
+ float missing = GridRenderLayerView.getLastDataMissing();
35
+ String scaleType = GridRenderLayerView.getLastDataScaleType(); // ADD THIS
36
+
37
+ // Calculate index
38
+ int index = j * nx + i;
39
+
40
+ // Bounds check
41
+ if (index < 0 || index >= data.length) {
42
+ promise.resolve(null);
43
+ return;
44
+ }
45
+
46
+ // Read byte value
47
+ int byteValue = data[index] & 0xFF; // Convert to unsigned
48
+ int signedQuantizedValue = byteValue - 128;
49
+ int missingQuantized = Math.round(missing); // CHANGED: removed -128 since missing is already adjusted
50
+
51
+ // Check for missing value
52
+ if (Math.abs(signedQuantizedValue - missingQuantized) < 0.5) { // CHANGED: use tolerance
53
+ promise.resolve(null);
54
+ return;
55
+ }
56
+
57
+ // Step 1: Linear dequantization
58
+ double intermediateValue = signedQuantizedValue * scale + offset;
59
+ double finalValue = intermediateValue;
60
+
61
+ // Step 2: Apply sqrt inverse transformation if needed (matching the shader)
62
+ if ("sqrt".equals(scaleType)) {
63
+ // Square the intermediate value while preserving sign
64
+ finalValue = intermediateValue * Math.abs(intermediateValue);
65
+ }
66
+
67
+ promise.resolve(finalValue);
68
+ } catch (Exception e) {
69
+ promise.reject("ERROR", e.getMessage());
70
+ }
71
+ }
64
72
  }
@@ -1,107 +1,107 @@
1
- package com.aguacerowx.reactnative;
2
-
3
- import android.content.Context;
4
- import android.opengl.GLES20;
5
- import android.util.Log;
6
-
7
- import java.io.BufferedReader;
8
- import java.io.IOException;
9
- import java.io.InputStream;
10
- import java.io.InputStreamReader;
11
-
12
- /**
13
- * Utility class for loading, compiling, and linking OpenGL ES 2.0 shaders.
14
- */
15
- public class ShaderUtils {
16
-
17
- public static final String TAG = "ShaderUtils";
18
-
19
- /**
20
- * Reads a raw text file from the res/raw directory.
21
- *
22
- * @param context The application context.
23
- * @param resourceId The resource ID (e.g., R.raw.vertex_shader).
24
- * @return The content of the file as a String.
25
- */
26
- public static String readRawTextFile(Context context, int resourceId) {
27
- InputStream inputStream = context.getResources().openRawResource(resourceId);
28
- InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
29
- BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
30
- String nextLine;
31
- StringBuilder body = new StringBuilder();
32
- try {
33
- while ((nextLine = bufferedReader.readLine()) != null) {
34
- body.append(nextLine);
35
- body.append('\n');
36
- }
37
- } catch (IOException e) {
38
- return null;
39
- }
40
- return body.toString();
41
- }
42
-
43
- /**
44
- * Compiles a shader from source code.
45
- *
46
- * @param type The shader type (GLES20.GL_VERTEX_SHADER or GLES20.GL_FRAGMENT_SHADER).
47
- * @param shaderCode The GLSL source code.
48
- * @return The handle to the compiled shader.
49
- */
50
- private static int compileShader(int type, String shaderCode) {
51
- final int shader = GLES20.glCreateShader(type);
52
- if (shader == 0) {
53
- Log.e(TAG, "glCreateShader failed for type " + type);
54
- return 0;
55
- }
56
- GLES20.glShaderSource(shader, shaderCode);
57
- GLES20.glCompileShader(shader);
58
-
59
- final int[] compileStatus = new int[1];
60
- GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compileStatus, 0);
61
- if (compileStatus[0] == 0) {
62
- Log.e(TAG, "Shader compilation failed: " + GLES20.glGetShaderInfoLog(shader));
63
- GLES20.glDeleteShader(shader);
64
- return 0;
65
- }
66
- return shader;
67
- }
68
-
69
- /**
70
- * Links a vertex and fragment shader into a complete OpenGL program.
71
- *
72
- * @param vertexShaderCode The vertex shader source code.
73
- * @param fragmentShaderCode The fragment shader source code.
74
- * @return The handle to the linked program.
75
- */
76
- public static int createProgram(String vertexShaderCode, String fragmentShaderCode) {
77
- int vertexShader = compileShader(GLES20.GL_VERTEX_SHADER, vertexShaderCode);
78
- int fragmentShader = compileShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);
79
-
80
- if (vertexShader == 0 || fragmentShader == 0) {
81
- return 0;
82
- }
83
-
84
- final int program = GLES20.glCreateProgram();
85
- if (program == 0) {
86
- Log.e(TAG, "glCreateProgram failed");
87
- return 0;
88
- }
89
- GLES20.glAttachShader(program, vertexShader);
90
- GLES20.glAttachShader(program, fragmentShader);
91
- GLES20.glLinkProgram(program);
92
-
93
- final int[] linkStatus = new int[1];
94
- GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0);
95
- if (linkStatus[0] == 0) {
96
- Log.e(TAG, "Program linking failed: " + GLES20.glGetProgramInfoLog(program));
97
- GLES20.glDeleteProgram(program);
98
- return 0;
99
- }
100
-
101
- // Shaders are no longer needed after linking
102
- GLES20.glDeleteShader(vertexShader);
103
- GLES20.glDeleteShader(fragmentShader);
104
-
105
- return program;
106
- }
1
+ package com.aguacerowx.reactnative;
2
+
3
+ import android.content.Context;
4
+ import android.opengl.GLES20;
5
+ import android.util.Log;
6
+
7
+ import java.io.BufferedReader;
8
+ import java.io.IOException;
9
+ import java.io.InputStream;
10
+ import java.io.InputStreamReader;
11
+
12
+ /**
13
+ * Utility class for loading, compiling, and linking OpenGL ES 2.0 shaders.
14
+ */
15
+ public class ShaderUtils {
16
+
17
+ public static final String TAG = "ShaderUtils";
18
+
19
+ /**
20
+ * Reads a raw text file from the res/raw directory.
21
+ *
22
+ * @param context The application context.
23
+ * @param resourceId The resource ID (e.g., R.raw.vertex_shader).
24
+ * @return The content of the file as a String.
25
+ */
26
+ public static String readRawTextFile(Context context, int resourceId) {
27
+ InputStream inputStream = context.getResources().openRawResource(resourceId);
28
+ InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
29
+ BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
30
+ String nextLine;
31
+ StringBuilder body = new StringBuilder();
32
+ try {
33
+ while ((nextLine = bufferedReader.readLine()) != null) {
34
+ body.append(nextLine);
35
+ body.append('\n');
36
+ }
37
+ } catch (IOException e) {
38
+ return null;
39
+ }
40
+ return body.toString();
41
+ }
42
+
43
+ /**
44
+ * Compiles a shader from source code.
45
+ *
46
+ * @param type The shader type (GLES20.GL_VERTEX_SHADER or GLES20.GL_FRAGMENT_SHADER).
47
+ * @param shaderCode The GLSL source code.
48
+ * @return The handle to the compiled shader.
49
+ */
50
+ private static int compileShader(int type, String shaderCode) {
51
+ final int shader = GLES20.glCreateShader(type);
52
+ if (shader == 0) {
53
+ Log.e(TAG, "glCreateShader failed for type " + type);
54
+ return 0;
55
+ }
56
+ GLES20.glShaderSource(shader, shaderCode);
57
+ GLES20.glCompileShader(shader);
58
+
59
+ final int[] compileStatus = new int[1];
60
+ GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compileStatus, 0);
61
+ if (compileStatus[0] == 0) {
62
+ Log.e(TAG, "Shader compilation failed: " + GLES20.glGetShaderInfoLog(shader));
63
+ GLES20.glDeleteShader(shader);
64
+ return 0;
65
+ }
66
+ return shader;
67
+ }
68
+
69
+ /**
70
+ * Links a vertex and fragment shader into a complete OpenGL program.
71
+ *
72
+ * @param vertexShaderCode The vertex shader source code.
73
+ * @param fragmentShaderCode The fragment shader source code.
74
+ * @return The handle to the linked program.
75
+ */
76
+ public static int createProgram(String vertexShaderCode, String fragmentShaderCode) {
77
+ int vertexShader = compileShader(GLES20.GL_VERTEX_SHADER, vertexShaderCode);
78
+ int fragmentShader = compileShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);
79
+
80
+ if (vertexShader == 0 || fragmentShader == 0) {
81
+ return 0;
82
+ }
83
+
84
+ final int program = GLES20.glCreateProgram();
85
+ if (program == 0) {
86
+ Log.e(TAG, "glCreateProgram failed");
87
+ return 0;
88
+ }
89
+ GLES20.glAttachShader(program, vertexShader);
90
+ GLES20.glAttachShader(program, fragmentShader);
91
+ GLES20.glLinkProgram(program);
92
+
93
+ final int[] linkStatus = new int[1];
94
+ GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0);
95
+ if (linkStatus[0] == 0) {
96
+ Log.e(TAG, "Program linking failed: " + GLES20.glGetProgramInfoLog(program));
97
+ GLES20.glDeleteProgram(program);
98
+ return 0;
99
+ }
100
+
101
+ // Shaders are no longer needed after linking
102
+ GLES20.glDeleteShader(vertexShader);
103
+ GLES20.glDeleteShader(fragmentShader);
104
+
105
+ return program;
106
+ }
107
107
  }