@aguacerowx/react-native 0.0.17 → 0.0.19

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 (537) hide show
  1. package/README.md +126 -60
  2. package/aguacerowx-react-native.podspec +53 -35
  3. package/android/build/.transforms/42e9b8fa82d77a1c205db5bf0d0ed519/results.bin +1 -0
  4. package/android/build/.transforms/42e9b8fa82d77a1c205db5bf0d0ed519/transformed/classes/classes_dex/classes.dex +0 -0
  5. package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/results.bin +1 -0
  6. package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/AguaceroPackage.dex +0 -0
  7. package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/BuildConfig.dex +0 -0
  8. package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.dex +0 -0
  9. package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer.dex +0 -0
  10. package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayerView.dex +0 -0
  11. package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderManager.dex +0 -0
  12. package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/InspectorModule.dex +0 -0
  13. package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/ShaderUtils.dex +0 -0
  14. package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/WeatherFrameProcessorModule.dex +0 -0
  15. package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.dex +0 -0
  16. package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.dex +0 -0
  17. package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  18. package/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
  19. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +43 -0
  20. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +22 -0
  21. package/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec-generated.cpp +22 -0
  22. package/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec.h +24 -0
  23. package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
  24. package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI-generated.cpp +17 -0
  25. package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI.h +19 -0
  26. package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.cpp +22 -0
  27. package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.h +24 -0
  28. package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.cpp +16 -0
  29. package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.h +23 -0
  30. package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.cpp +62 -0
  31. package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.h +40 -0
  32. package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.cpp +17 -0
  33. package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.h +32 -0
  34. package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.cpp +16 -0
  35. package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.h +20 -0
  36. package/android/build/generated/source/codegen/schema.json +1 -0
  37. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
  38. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  39. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  40. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  41. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  42. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  43. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
  44. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  45. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  46. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  47. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  48. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
  49. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  50. package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  51. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  52. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  53. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  54. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  55. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  56. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  57. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  58. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  59. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  60. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  61. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  62. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
  63. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
  64. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
  65. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
  66. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
  67. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  68. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  69. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
  70. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
  71. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +152 -0
  72. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
  73. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  74. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  75. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  76. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  77. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  78. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  79. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  80. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  81. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  82. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
  83. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
  84. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  85. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
  86. package/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
  87. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
  88. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
  89. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  90. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  91. package/android/build.gradle +107 -83
  92. package/android/src/main/AndroidManifest.xml +6 -6
  93. package/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
  94. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +657 -611
  95. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +304 -299
  96. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +125 -117
  97. package/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
  98. package/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
  99. package/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
  100. package/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
  101. package/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
  102. package/android/src/main/res/raw/fragment_shader.glsl +151 -97
  103. package/android/src/main/res/raw/vertex_shader.glsl +19 -19
  104. package/index.js +2 -2
  105. package/ios/AguaceroPackage.m +18 -18
  106. package/ios/FragmentUniforms.swift +14 -13
  107. package/ios/GridRenderLayer.swift +995 -962
  108. package/ios/GridRenderLayerBridge.swift +29 -29
  109. package/ios/GridRenderLayerManager.mm +157 -145
  110. package/ios/GridRenderLayerView.h +16 -22
  111. package/ios/GridRenderLayerView.m +205 -199
  112. package/ios/InspectorDataCache.swift +65 -65
  113. package/ios/InspectorModule.m +9 -9
  114. package/ios/InspectorModule.swift +63 -63
  115. package/ios/Shaders.metal +178 -130
  116. package/ios/WeatherFrameProcessorModule.m +15 -15
  117. package/ios/WeatherFrameProcessorModule.swift +103 -103
  118. package/ios/compiled-shaders/Shaders-device.metallib +0 -0
  119. package/ios/compiled-shaders/Shaders-simulator.metallib +0 -0
  120. package/ios/compiled-shaders/Shaders.metallib +0 -0
  121. package/lib/commonjs/README.md +126 -60
  122. package/lib/commonjs/aguacerowx-react-native.podspec +53 -35
  123. package/lib/commonjs/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
  124. package/lib/commonjs/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +43 -0
  125. package/lib/commonjs/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +22 -0
  126. package/lib/commonjs/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec-generated.cpp +22 -0
  127. package/lib/commonjs/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec.h +24 -0
  128. package/lib/commonjs/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
  129. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI-generated.cpp +17 -0
  130. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI.h +19 -0
  131. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.cpp +22 -0
  132. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.h +24 -0
  133. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.cpp +16 -0
  134. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.h +23 -0
  135. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.cpp +62 -0
  136. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.h +40 -0
  137. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.cpp +17 -0
  138. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.h +32 -0
  139. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.cpp +16 -0
  140. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.h +20 -0
  141. package/lib/commonjs/android/build/generated/source/codegen/schema.json +1 -0
  142. package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
  143. package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  144. package/lib/commonjs/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  145. package/lib/commonjs/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  146. package/lib/commonjs/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  147. package/lib/commonjs/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  148. package/lib/commonjs/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
  149. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  150. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  151. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  152. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  153. package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
  154. package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  155. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  156. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  157. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  158. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  159. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  160. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  161. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  162. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  163. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  164. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  165. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  166. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  167. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
  168. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
  169. package/lib/commonjs/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
  170. package/lib/commonjs/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
  171. package/lib/commonjs/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
  172. package/lib/commonjs/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  173. package/lib/commonjs/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  174. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
  175. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
  176. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +152 -0
  177. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
  178. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  179. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  180. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  181. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  182. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  183. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  184. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  185. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  186. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  187. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
  188. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
  189. package/lib/commonjs/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  190. package/lib/commonjs/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
  191. package/lib/commonjs/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
  192. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
  193. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
  194. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  195. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  196. package/lib/commonjs/android/build.gradle +107 -83
  197. package/lib/commonjs/android/src/main/AndroidManifest.xml +6 -6
  198. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
  199. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +657 -611
  200. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +304 -299
  201. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +125 -117
  202. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
  203. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
  204. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
  205. package/lib/commonjs/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
  206. package/lib/commonjs/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
  207. package/lib/commonjs/android/src/main/res/raw/fragment_shader.glsl +151 -97
  208. package/lib/commonjs/android/src/main/res/raw/vertex_shader.glsl +19 -19
  209. package/lib/commonjs/babel.config.js.map +1 -1
  210. package/lib/commonjs/index.js.map +1 -1
  211. package/lib/commonjs/ios/AguaceroPackage.m +18 -18
  212. package/lib/commonjs/ios/FragmentUniforms.swift +14 -13
  213. package/lib/commonjs/ios/GridRenderLayer.swift +995 -962
  214. package/lib/commonjs/ios/GridRenderLayerBridge.swift +29 -29
  215. package/lib/commonjs/ios/GridRenderLayerManager.mm +157 -145
  216. package/lib/commonjs/ios/GridRenderLayerView.h +16 -22
  217. package/lib/commonjs/ios/GridRenderLayerView.m +205 -199
  218. package/lib/commonjs/ios/InspectorDataCache.swift +65 -65
  219. package/lib/commonjs/ios/InspectorModule.m +9 -9
  220. package/lib/commonjs/ios/InspectorModule.swift +63 -63
  221. package/lib/commonjs/ios/Shaders.metal +178 -130
  222. package/lib/commonjs/ios/WeatherFrameProcessorModule.m +15 -15
  223. package/lib/commonjs/ios/WeatherFrameProcessorModule.swift +103 -103
  224. package/lib/commonjs/ios/compiled-shaders/Shaders-device.metallib +0 -0
  225. package/lib/commonjs/ios/compiled-shaders/Shaders-simulator.metallib +0 -0
  226. package/lib/commonjs/ios/compiled-shaders/Shaders.metallib +0 -0
  227. package/lib/commonjs/package.json +72 -67
  228. package/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
  229. package/lib/commonjs/scripts/compile-shaders.js +62 -0
  230. package/lib/commonjs/scripts/compile-shaders.js.map +1 -0
  231. package/lib/commonjs/scripts/compile-shaders.sh +39 -0
  232. package/lib/commonjs/src/AguaceroContext.js.map +1 -1
  233. package/lib/commonjs/src/GridRenderLayer.js +8 -0
  234. package/lib/commonjs/src/GridRenderLayer.js.map +1 -1
  235. package/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
  236. package/lib/commonjs/src/MapManager.js.map +1 -1
  237. package/lib/commonjs/src/MapRegistry.js.map +1 -1
  238. package/lib/commonjs/src/StyleApplicator.js +6 -6
  239. package/lib/commonjs/src/StyleApplicator.js.map +1 -1
  240. package/lib/commonjs/src/WeatherLayerManager.js +26 -16
  241. package/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
  242. package/lib/commonjs/tsconfig.json +23 -23
  243. package/lib/module/README.md +126 -60
  244. package/lib/module/aguacerowx-react-native.podspec +53 -35
  245. package/lib/module/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
  246. package/lib/module/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +43 -0
  247. package/lib/module/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +22 -0
  248. package/lib/module/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec-generated.cpp +22 -0
  249. package/lib/module/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec.h +24 -0
  250. package/lib/module/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
  251. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI-generated.cpp +17 -0
  252. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI.h +19 -0
  253. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.cpp +22 -0
  254. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.h +24 -0
  255. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.cpp +16 -0
  256. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.h +23 -0
  257. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.cpp +62 -0
  258. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.h +40 -0
  259. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.cpp +17 -0
  260. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.h +32 -0
  261. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.cpp +16 -0
  262. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.h +20 -0
  263. package/lib/module/android/build/generated/source/codegen/schema.json +1 -0
  264. package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
  265. package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  266. package/lib/module/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  267. package/lib/module/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  268. package/lib/module/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  269. package/lib/module/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  270. package/lib/module/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
  271. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  272. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  273. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  274. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  275. package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
  276. package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  277. package/lib/module/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  278. package/lib/module/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  279. package/lib/module/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  280. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  281. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  282. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  283. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  284. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  285. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  286. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  287. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  288. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  289. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
  290. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
  291. package/lib/module/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
  292. package/lib/module/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
  293. package/lib/module/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
  294. package/lib/module/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  295. package/lib/module/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  296. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
  297. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
  298. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +152 -0
  299. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
  300. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  301. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  302. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  303. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  304. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  305. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  306. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  307. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  308. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  309. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
  310. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
  311. package/lib/module/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  312. package/lib/module/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
  313. package/lib/module/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
  314. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
  315. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
  316. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  317. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  318. package/lib/module/android/build.gradle +107 -83
  319. package/lib/module/android/src/main/AndroidManifest.xml +6 -6
  320. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
  321. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +657 -611
  322. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +304 -299
  323. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +125 -117
  324. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
  325. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
  326. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
  327. package/lib/module/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
  328. package/lib/module/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
  329. package/lib/module/android/src/main/res/raw/fragment_shader.glsl +151 -97
  330. package/lib/module/android/src/main/res/raw/vertex_shader.glsl +19 -19
  331. package/lib/module/babel.config.js.map +1 -1
  332. package/lib/module/index.js.map +1 -1
  333. package/lib/module/ios/AguaceroPackage.m +18 -18
  334. package/lib/module/ios/FragmentUniforms.swift +14 -13
  335. package/lib/module/ios/GridRenderLayer.swift +995 -962
  336. package/lib/module/ios/GridRenderLayerBridge.swift +29 -29
  337. package/lib/module/ios/GridRenderLayerManager.mm +157 -145
  338. package/lib/module/ios/GridRenderLayerView.h +16 -22
  339. package/lib/module/ios/GridRenderLayerView.m +205 -199
  340. package/lib/module/ios/InspectorDataCache.swift +65 -65
  341. package/lib/module/ios/InspectorModule.m +9 -9
  342. package/lib/module/ios/InspectorModule.swift +63 -63
  343. package/lib/module/ios/Shaders.metal +178 -130
  344. package/lib/module/ios/WeatherFrameProcessorModule.m +15 -15
  345. package/lib/module/ios/WeatherFrameProcessorModule.swift +103 -103
  346. package/lib/module/ios/compiled-shaders/Shaders-device.metallib +0 -0
  347. package/lib/module/ios/compiled-shaders/Shaders-simulator.metallib +0 -0
  348. package/lib/module/ios/compiled-shaders/Shaders.metallib +0 -0
  349. package/lib/module/lib/commonjs/README.md +126 -60
  350. package/lib/module/lib/commonjs/aguacerowx-react-native.podspec +53 -35
  351. package/lib/module/lib/commonjs/android/build.gradle +107 -83
  352. package/lib/module/lib/commonjs/android/src/main/AndroidManifest.xml +6 -6
  353. package/lib/module/lib/commonjs/babel.config.js.map +1 -1
  354. package/lib/module/lib/commonjs/index.js.map +1 -1
  355. package/lib/module/lib/commonjs/ios/AguaceroPackage.m +18 -18
  356. package/lib/module/lib/commonjs/ios/FragmentUniforms.swift +14 -13
  357. package/lib/module/lib/commonjs/ios/GridRenderLayer.swift +995 -962
  358. package/lib/module/lib/commonjs/ios/GridRenderLayerBridge.swift +29 -29
  359. package/lib/module/lib/commonjs/ios/GridRenderLayerManager.mm +157 -145
  360. package/lib/module/lib/commonjs/ios/GridRenderLayerView.h +16 -22
  361. package/lib/module/lib/commonjs/ios/GridRenderLayerView.m +205 -199
  362. package/lib/module/lib/commonjs/ios/InspectorDataCache.swift +65 -65
  363. package/lib/module/lib/commonjs/ios/InspectorModule.m +9 -9
  364. package/lib/module/lib/commonjs/ios/InspectorModule.swift +63 -63
  365. package/lib/module/lib/commonjs/ios/Shaders.metal +178 -130
  366. package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.m +15 -15
  367. package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.swift +103 -103
  368. package/lib/module/lib/commonjs/ios/compiled-shaders/Shaders-device.metallib +0 -0
  369. package/lib/module/lib/commonjs/ios/compiled-shaders/Shaders-simulator.metallib +0 -0
  370. package/lib/module/lib/commonjs/ios/compiled-shaders/Shaders.metallib +0 -0
  371. package/lib/module/lib/commonjs/package.json +72 -67
  372. package/lib/module/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
  373. package/lib/module/lib/commonjs/scripts/compile-shaders.js +62 -0
  374. package/lib/module/lib/commonjs/scripts/compile-shaders.js.map +1 -0
  375. package/lib/module/lib/commonjs/scripts/compile-shaders.sh +39 -0
  376. package/lib/module/lib/commonjs/src/AguaceroContext.js.map +1 -1
  377. package/lib/module/lib/commonjs/src/GridRenderLayer.js +8 -0
  378. package/lib/module/lib/commonjs/src/GridRenderLayer.js.map +1 -1
  379. package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
  380. package/lib/module/lib/commonjs/src/MapManager.js.map +1 -1
  381. package/lib/module/lib/commonjs/src/MapRegistry.js.map +1 -1
  382. package/lib/module/lib/commonjs/src/StyleApplicator.js +6 -6
  383. package/lib/module/lib/commonjs/src/StyleApplicator.js.map +1 -1
  384. package/lib/module/lib/commonjs/src/WeatherLayerManager.js +26 -16
  385. package/lib/module/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
  386. package/lib/module/lib/commonjs/tsconfig.json +23 -23
  387. package/lib/module/package.json +72 -67
  388. package/lib/module/react-native-builder-bob.config.js.map +1 -1
  389. package/lib/module/scripts/compile-shaders.js +60 -0
  390. package/lib/module/scripts/compile-shaders.js.map +1 -0
  391. package/lib/module/scripts/compile-shaders.sh +39 -0
  392. package/lib/module/src/AguaceroContext.js.map +1 -1
  393. package/lib/module/src/GridRenderLayer.js +8 -0
  394. package/lib/module/src/GridRenderLayer.js.map +1 -1
  395. package/lib/module/src/GridRenderLayerNativeComponent.js.map +1 -1
  396. package/lib/module/src/MapManager.js.map +1 -1
  397. package/lib/module/src/MapRegistry.js.map +1 -1
  398. package/lib/module/src/StyleApplicator.js +6 -6
  399. package/lib/module/src/StyleApplicator.js.map +1 -1
  400. package/lib/module/src/WeatherLayerManager.js +26 -16
  401. package/lib/module/src/WeatherLayerManager.js.map +1 -1
  402. package/lib/module/tsconfig.json +23 -23
  403. package/lib/typescript/scripts/compile-shaders.d.ts +3 -0
  404. package/lib/typescript/scripts/compile-shaders.d.ts.map +1 -0
  405. package/lib/typescript/src/GridRenderLayer.d.ts.map +1 -1
  406. package/lib/typescript/src/WeatherLayerManager.d.ts.map +1 -1
  407. package/package.json +72 -67
  408. package/src/AguaceroContext.js +3 -3
  409. package/src/GridRenderLayer.js +217 -204
  410. package/src/GridRenderLayerNativeComponent.ts +15 -15
  411. package/src/MapManager.js +155 -155
  412. package/src/MapRegistry.js +34 -34
  413. package/src/StyleApplicator.js +240 -240
  414. package/src/WeatherLayerManager.js +891 -872
  415. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +0 -1003
  416. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +0 -1
  417. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +0 -381
  418. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +0 -1
  419. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +0 -1229
  420. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +0 -1
  421. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +0 -4023
  422. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +0 -1
  423. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js +0 -38
  424. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +0 -1
  425. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +0 -30
  426. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +0 -1
  427. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +0 -27
  428. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +0 -1
  429. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js +0 -47
  430. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +0 -1
  431. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +0 -301
  432. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +0 -1
  433. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +0 -126
  434. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +0 -1
  435. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +0 -48
  436. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +0 -1029
  437. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +0 -1
  438. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +0 -381
  439. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +0 -1
  440. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +0 -1229
  441. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +0 -1
  442. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +0 -4023
  443. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +0 -1
  444. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js +0 -38
  445. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +0 -1
  446. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +0 -30
  447. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +0 -1
  448. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +0 -27
  449. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +0 -1
  450. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js +0 -41
  451. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +0 -1
  452. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +0 -301
  453. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +0 -1
  454. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +0 -126
  455. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +0 -1
  456. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +0 -1003
  457. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +0 -1
  458. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +0 -381
  459. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +0 -1
  460. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +0 -1229
  461. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +0 -1
  462. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +0 -4023
  463. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +0 -1
  464. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js +0 -38
  465. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +0 -1
  466. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +0 -30
  467. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +0 -1
  468. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +0 -27
  469. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +0 -1
  470. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js +0 -47
  471. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +0 -1
  472. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +0 -301
  473. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +0 -1
  474. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +0 -126
  475. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +0 -1
  476. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +0 -48
  477. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +0 -1033
  478. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +0 -1
  479. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +0 -381
  480. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +0 -1
  481. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +0 -1229
  482. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +0 -1
  483. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +0 -4023
  484. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +0 -1
  485. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js +0 -38
  486. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +0 -1
  487. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +0 -30
  488. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +0 -1
  489. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +0 -27
  490. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +0 -1
  491. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js +0 -41
  492. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +0 -1
  493. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +0 -301
  494. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +0 -1
  495. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +0 -126
  496. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +0 -1
  497. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +0 -1003
  498. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +0 -1
  499. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +0 -381
  500. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +0 -1
  501. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +0 -1229
  502. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +0 -1
  503. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +0 -4023
  504. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +0 -1
  505. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/events.js +0 -38
  506. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +0 -1
  507. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +0 -30
  508. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +0 -1
  509. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +0 -27
  510. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +0 -1
  511. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/index.js +0 -47
  512. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +0 -1
  513. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +0 -301
  514. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +0 -1
  515. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +0 -126
  516. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +0 -1
  517. package/lib/module/node_modules/@aguacerowx/javascript-sdk/package.json +0 -48
  518. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +0 -1021
  519. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +0 -1
  520. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +0 -375
  521. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +0 -1
  522. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +0 -1223
  523. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +0 -1
  524. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +0 -4017
  525. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +0 -1
  526. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/events.js +0 -31
  527. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +0 -1
  528. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +0 -29
  529. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +0 -1
  530. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +0 -21
  531. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +0 -1
  532. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/index.js +0 -12
  533. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +0 -1
  534. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +0 -295
  535. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +0 -1
  536. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +0 -119
  537. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +0 -1
@@ -1,64 +1,64 @@
1
- import Foundation
2
- import React
3
-
4
- @objc(InspectorModule)
5
- class InspectorModule: NSObject {
6
-
7
- @objc(getValueAtGridIndex:j:resolver:rejecter:)
8
- func getValueAtGridIndex(
9
- i: NSNumber,
10
- j: NSNumber,
11
- resolve: @escaping RCTPromiseResolveBlock,
12
- reject: @escaping RCTPromiseRejectBlock
13
- ) {
14
- DispatchQueue.global(qos: .userInitiated).async {
15
- let cache = InspectorDataCache.shared
16
-
17
- guard let data = cache.lastDecompressedData else {
18
- print("🔍 [Inspector] ERROR: No data in cache")
19
- resolve(nil)
20
- return
21
- }
22
-
23
- let nx = cache.nx
24
- let scale = cache.scale
25
- let offset = cache.offset
26
- let missing = cache.missing
27
- let scaleType = cache.scaleType
28
-
29
- let index = j.intValue * nx + i.intValue
30
-
31
- guard index >= 0 && index < data.count else {
32
- print("🔍 [Inspector] ERROR: Index out of bounds")
33
- resolve(nil)
34
- return
35
- }
36
-
37
- // Read as signed value
38
- let signedQuantizedValue = Int(Int8(bitPattern: data[index]))
39
- let missingQuantized = Int(round(missing))
40
-
41
- // Check for missing value with tolerance
42
- if abs(signedQuantizedValue - missingQuantized) < 1 {
43
- resolve(nil)
44
- return
45
- }
46
-
47
- // Step 1: Linear dequantization
48
- let intermediateValue = Double(signedQuantizedValue) * Double(scale) + Double(offset)
49
- var finalValue = intermediateValue
50
-
51
- // Step 2: Apply sqrt inverse transformation if needed
52
- if scaleType == 1 {
53
- finalValue = intermediateValue * abs(intermediateValue)
54
- }
55
-
56
- resolve(finalValue)
57
- }
58
- }
59
-
60
- @objc
61
- static func requiresMainQueueSetup() -> Bool {
62
- return false
63
- }
1
+ import Foundation
2
+ import React
3
+
4
+ @objc(InspectorModule)
5
+ class InspectorModule: NSObject {
6
+
7
+ @objc(getValueAtGridIndex:j:resolver:rejecter:)
8
+ func getValueAtGridIndex(
9
+ i: NSNumber,
10
+ j: NSNumber,
11
+ resolve: @escaping RCTPromiseResolveBlock,
12
+ reject: @escaping RCTPromiseRejectBlock
13
+ ) {
14
+ DispatchQueue.global(qos: .userInitiated).async {
15
+ let cache = InspectorDataCache.shared
16
+
17
+ guard let data = cache.lastDecompressedData else {
18
+ print("🔍 [Inspector] ERROR: No data in cache")
19
+ resolve(nil)
20
+ return
21
+ }
22
+
23
+ let nx = cache.nx
24
+ let scale = cache.scale
25
+ let offset = cache.offset
26
+ let missing = cache.missing
27
+ let scaleType = cache.scaleType
28
+
29
+ let index = j.intValue * nx + i.intValue
30
+
31
+ guard index >= 0 && index < data.count else {
32
+ print("🔍 [Inspector] ERROR: Index out of bounds")
33
+ resolve(nil)
34
+ return
35
+ }
36
+
37
+ // Read as signed value
38
+ let signedQuantizedValue = Int(Int8(bitPattern: data[index]))
39
+ let missingQuantized = Int(round(missing))
40
+
41
+ // Check for missing value with tolerance
42
+ if abs(signedQuantizedValue - missingQuantized) < 1 {
43
+ resolve(nil)
44
+ return
45
+ }
46
+
47
+ // Step 1: Linear dequantization
48
+ let intermediateValue = Double(signedQuantizedValue) * Double(scale) + Double(offset)
49
+ var finalValue = intermediateValue
50
+
51
+ // Step 2: Apply sqrt inverse transformation if needed
52
+ if scaleType == 1 {
53
+ finalValue = intermediateValue * abs(intermediateValue)
54
+ }
55
+
56
+ resolve(finalValue)
57
+ }
58
+ }
59
+
60
+ @objc
61
+ static func requiresMainQueueSetup() -> Bool {
62
+ return false
63
+ }
64
64
  }
package/ios/Shaders.metal CHANGED
@@ -1,131 +1,179 @@
1
- #include <metal_stdlib>
2
- using namespace metal;
3
-
4
- // Struct to match the vertex buffer layout in Swift
5
- struct Vertex {
6
- float2 position [[attribute(0)]];
7
- float2 texCoord [[attribute(1)]];
8
- };
9
-
10
- // Struct for passing data from vertex to fragment shader
11
- struct RasterizerData {
12
- float4 position [[position]];
13
- float2 texCoord;
14
- };
15
-
16
- // Uniforms passed from the CPU to the fragment shader
17
- struct FragmentUniforms {
18
- float opacity;
19
- float2 dataRange;
20
- float scale;
21
- float offset;
22
- float missingQuantized;
23
- float2 textureSize;
24
- int smoothing;
25
- int scaleType; // 0 for linear, 1 for sqrt
26
- };
27
-
28
- // --- Vertex Shader (Unchanged) ---
29
- vertex RasterizerData vertex_main(const Vertex in [[stage_in]],
30
- constant float4x4 &mvp [[buffer(1)]]) {
31
- RasterizerData out;
32
- out.position = mvp * float4(in.position, 0.0, 1.0);
33
- out.texCoord = in.texCoord;
34
- return out;
35
- }
36
-
37
- float sampleDataTextureSmooth(
38
- texture2d<float, access::sample> dataTexture,
39
- sampler dataSampler,
40
- float2 uv,
41
- constant FragmentUniforms &uniforms)
42
- {
43
- float missing_value = uniforms.missingQuantized + 128.0;
44
-
45
- // Calculate the fractional part for interpolation and the size of one texel.
46
- float2 texel_size = 1.0 / uniforms.textureSize;
47
- float2 pixel_coord = uv * uniforms.textureSize;
48
- float2 pixel_floor = floor(pixel_coord - 0.5);
49
- float2 f = fract(pixel_coord - 0.5);
50
-
51
- // Calculate the precise UV coordinates for the CENTER of the four surrounding texels.
52
- float2 uv00 = (pixel_floor + float2(0.5, 0.5)) * texel_size;
53
- float2 uv10 = (pixel_floor + float2(1.5, 0.5)) * texel_size;
54
- float2 uv01 = (pixel_floor + float2(0.5, 1.5)) * texel_size;
55
- float2 uv11 = (pixel_floor + float2(1.5, 1.5)) * texel_size;
56
-
57
- // Sample the four corner texels.
58
- float s00 = dataTexture.sample(dataSampler, uv00).r * 255.0;
59
- float s10 = dataTexture.sample(dataSampler, uv10).r * 255.0;
60
- float s01 = dataTexture.sample(dataSampler, uv01).r * 255.0;
61
- float s11 = dataTexture.sample(dataSampler, uv11).r * 255.0;
62
-
63
- // THE CRITICAL CHECK: If any surrounding pixel is a "missing" value,
64
- // treat this entire fragment as missing to prevent interpolation.
65
- if (abs(s00 - missing_value) < 0.5 ||
66
- abs(s10 - missing_value) < 0.5 ||
67
- abs(s01 - missing_value) < 0.5 ||
68
- abs(s11 - missing_value) < 0.5)
69
- {
70
- return missing_value;
71
- }
72
-
73
- // All neighbors are valid data, so we can safely perform manual bilinear interpolation.
74
- float s0 = mix(s00, s10, f.x); // Interpolate the top row
75
- float s1 = mix(s01, s11, f.x); // Interpolate the bottom row
76
-
77
- // --- THE FIX IS HERE ---
78
- // Remove the incorrect "1.0 - f.y" inversion. The vertical mix should use f.y directly.
79
- return mix(s0, s1, f.y);
80
- }
81
-
82
- // --- Fragment Shader (NEW & IMPROVED) ---
83
- fragment float4 fragment_main(RasterizerData in [[stage_in]],
84
- constant FragmentUniforms &uniforms [[buffer(0)]],
85
- texture2d<float, access::sample> dataTexture [[texture(0)]],
86
- texture2d<float, access::sample> colormapTexture [[texture(1)]],
87
- sampler dataSampler [[sampler(0)]],
88
- sampler colormapSampler [[sampler(1)]])
89
- {
90
- // Choose the sampling method based on the smoothing uniform.
91
- float value_in_texture;
92
- if (uniforms.smoothing == 1) {
93
- // Use our custom function that prevents edge artifacts.
94
- value_in_texture = sampleDataTextureSmooth(dataTexture, dataSampler, in.texCoord, uniforms);
95
- } else {
96
- // Smoothing is off. The sampler is already set to 'nearest' by the Swift code,
97
- // so a standard sample call produces the correct pixelated result.
98
- value_in_texture = dataTexture.sample(dataSampler, in.texCoord).r * 255.0;
99
- }
100
-
101
- float missing_value = uniforms.missingQuantized + 128.0;
102
-
103
- // Discard if the pixel is a predefined missing value (either originally or from our function).
104
- if (abs(value_in_texture - missing_value) < 0.5) {
105
- discard_fragment();
106
- }
107
-
108
- // Dequantize the value to its real-world representation.
109
- float quantized_value = value_in_texture - 128.0;
110
- float intermediate_value = quantized_value * uniforms.scale + uniforms.offset;
111
- float raw_value = intermediate_value;
112
-
113
- // Apply non-linear inverse scaling if specified.
114
- if (uniforms.scaleType == 1) { // 'sqrt'
115
- raw_value = intermediate_value * abs(intermediate_value);
116
- }
117
-
118
- // Discard if the data is below the specified visible range.
119
- if (raw_value < uniforms.dataRange.x) {
120
- discard_fragment();
121
- }
122
-
123
- // Normalize the value to a 0-1 coordinate for colormap lookup.
124
- float colormap_coord = (raw_value - uniforms.dataRange.x) / (uniforms.dataRange.y - uniforms.dataRange.x);
125
- colormap_coord = clamp(colormap_coord, 0.0, 1.0);
126
-
127
- // Sample the colormap and apply final opacity.
128
- float4 color = colormapTexture.sample(colormapSampler, float2(colormap_coord, 0.5));
129
-
130
- return float4(color.rgb, color.a * uniforms.opacity);
1
+ #include <metal_stdlib>
2
+ using namespace metal;
3
+
4
+ // Struct to match the vertex buffer layout in Swift
5
+ struct Vertex {
6
+ float2 position [[attribute(0)]];
7
+ float2 texCoord [[attribute(1)]];
8
+ };
9
+
10
+ // Struct for passing data from vertex to fragment shader
11
+ struct RasterizerData {
12
+ float4 position [[position]];
13
+ float2 texCoord;
14
+ };
15
+
16
+ // Uniforms passed from the CPU to the fragment shader
17
+ struct FragmentUniforms {
18
+ float opacity;
19
+ float2 dataRange;
20
+ float scale;
21
+ float offset;
22
+ float missingQuantized;
23
+ float2 textureSize;
24
+ int smoothing;
25
+ int scaleType; // 0 for linear, 1 for sqrt
26
+ int isPtype; // ADD THIS
27
+ };
28
+
29
+ // --- Vertex Shader (Unchanged) ---
30
+ vertex RasterizerData vertex_main(const Vertex in [[stage_in]],
31
+ constant float4x4 &mvp [[buffer(1)]]) {
32
+ RasterizerData out;
33
+ out.position = mvp * float4(in.position, 0.0, 1.0);
34
+ out.texCoord = in.texCoord;
35
+ return out;
36
+ }
37
+
38
+
39
+ // --- HELPER FUNCTIONS FOR FRAGMENT SHADER ---
40
+
41
+ // Dequantizes a signed value (-127 to 127) into a physical value
42
+ float dequantize_val(float q_val, constant FragmentUniforms &uniforms) {
43
+ if (abs(q_val - uniforms.missingQuantized) < 0.5) {
44
+ return -9999.0;
45
+ }
46
+ float intermediate = q_val * uniforms.scale + uniforms.offset;
47
+ if (uniforms.scaleType == 1) { // 1 = sqrt
48
+ return intermediate * abs(intermediate);
49
+ }
50
+ return intermediate;
51
+ }
52
+
53
+ // Samples texture, converts 0-255 to signed -128-127 range.
54
+ // Returns a quantized value, or a large positive sentinel for missing data.
55
+ float get_value(texture2d<float, access::sample> dataTexture, sampler dataSampler, float2 coord, constant FragmentUniforms &uniforms) {
56
+ // Note: The sampler should be set to 'nearest' when calling this for ptype logic.
57
+ float value_0_to_255 = dataTexture.sample(dataSampler, coord).r * 255.0;
58
+ float val = value_0_to_255 - 128.0;
59
+ float missing_in_texture_range_0_255 = uniforms.missingQuantized + 128.0;
60
+ if (abs(value_0_to_255 - missing_in_texture_range_0_255) < 0.5) {
61
+ return 99999.0; // Sentinel for "missing"
62
+ }
63
+ return val;
64
+ }
65
+
66
+ // Maps a physical value to a precipitation type category
67
+ float get_ptype_from_physical(float val) {
68
+ if (val < 0.0) return -1.0; // Missing/Invalid
69
+ if (val < 100.0) return 0.0; // Rain
70
+ if (val < 200.0) return 1.0; // Mix
71
+ if (val < 300.0) return 2.0; // Snow
72
+ return 3.0; // Pellets
73
+ }
74
+
75
+
76
+ // --- Main Fragment Shader ---
77
+ fragment float4 fragment_main(RasterizerData in [[stage_in]],
78
+ constant FragmentUniforms &uniforms [[buffer(0)]],
79
+ texture2d<float, access::sample> dataTexture [[texture(0)]],
80
+ texture2d<float, access::sample> colormapTexture [[texture(1)]],
81
+ sampler dataSampler [[sampler(0)]],
82
+ sampler colormapSampler [[sampler(1)]])
83
+ {
84
+ float raw_value;
85
+ float alpha_multiplier = 1.0; // Used for alpha feathering at data edges
86
+
87
+ if (uniforms.smoothing == 0) { // Nearest neighbor
88
+ float quantized_value = get_value(dataTexture, dataSampler, in.texCoord, uniforms);
89
+ if (quantized_value >= 99999.0) {
90
+ discard_fragment();
91
+ }
92
+ raw_value = dequantize_val(quantized_value, uniforms);
93
+
94
+ } else { // Bilinear interpolation
95
+ float2 texel_size = 1.0 / uniforms.textureSize;
96
+ float2 tex_coord_in_texels = in.texCoord * uniforms.textureSize;
97
+ float2 bl_texel_index = floor(tex_coord_in_texels - 0.5);
98
+ float2 f = fract(tex_coord_in_texels - 0.5); // Interpolation factors
99
+
100
+ // Coordinates of the 4 neighboring texels
101
+ float2 v00_coord = (bl_texel_index + float2(0.5, 0.5)) * texel_size;
102
+ float2 v10_coord = (bl_texel_index + float2(1.5, 0.5)) * texel_size;
103
+ float2 v01_coord = (bl_texel_index + float2(0.5, 1.5)) * texel_size;
104
+ float2 v11_coord = (bl_texel_index + float2(1.5, 1.5)) * texel_size;
105
+
106
+ if (uniforms.isPtype == 1) {
107
+ // --- PTYPE-SPECIFIC INTERPOLATION (CATEGORICAL) ---
108
+ float v00 = dequantize_val(get_value(dataTexture, dataSampler, v00_coord, uniforms), uniforms);
109
+ float v10 = dequantize_val(get_value(dataTexture, dataSampler, v10_coord, uniforms), uniforms);
110
+ float v01 = dequantize_val(get_value(dataTexture, dataSampler, v01_coord, uniforms), uniforms);
111
+ float v11 = dequantize_val(get_value(dataTexture, dataSampler, v11_coord, uniforms), uniforms);
112
+
113
+ float p00 = get_ptype_from_physical(v00);
114
+ float p10 = get_ptype_from_physical(v10);
115
+ float p01 = get_ptype_from_physical(v01);
116
+ float p11 = get_ptype_from_physical(v11);
117
+
118
+ // Determine the dominant precipitation type for this pixel
119
+ float dominant_ptype = -1.0;
120
+ if (p00 != -1.0) dominant_ptype = p00;
121
+ else if (p10 != -1.0) dominant_ptype = p10;
122
+ else if (p01 != -1.0) dominant_ptype = p01;
123
+ else if (p11 != -1.0) dominant_ptype = p11;
124
+
125
+ if (dominant_ptype == -1.0) discard_fragment();
126
+
127
+ // Interpolate ONLY the values that match the dominant ptype
128
+ float total_value = 0.0;
129
+ float total_weight = 0.0;
130
+ if (p00 == dominant_ptype) { float w = (1.0-f.x)*(1.0-f.y); total_value+=v00*w; total_weight+=w; }
131
+ if (p10 == dominant_ptype) { float w = f.x*(1.0-f.y); total_value+=v10*w; total_weight+=w; }
132
+ if (p01 == dominant_ptype) { float w = (1.0-f.x)*f.y; total_value+=v01*w; total_weight+=w; }
133
+ if (p11 == dominant_ptype) { float w = f.x*f.y; total_value+=v11*w; total_weight+=w; }
134
+
135
+ if (total_weight <= 0.0) discard_fragment();
136
+ raw_value = total_value / total_weight;
137
+
138
+ // Force full alpha to prevent dark borders between ptype regions
139
+ alpha_multiplier = 1.0;
140
+
141
+ } else {
142
+ // --- STANDARD INTERPOLATION (CONTINUOUS) ---
143
+ float v00_q = get_value(dataTexture, dataSampler, v00_coord, uniforms);
144
+ float v10_q = get_value(dataTexture, dataSampler, v10_coord, uniforms);
145
+ float v01_q = get_value(dataTexture, dataSampler, v01_coord, uniforms);
146
+ float v11_q = get_value(dataTexture, dataSampler, v11_coord, uniforms);
147
+
148
+ float total_value_q = 0.0;
149
+ float total_weight = 0.0;
150
+ if (v00_q < 99999.0) { float w = (1.0-f.x)*(1.0-f.y); total_value_q+=v00_q*w; total_weight+=w; }
151
+ if (v10_q < 99999.0) { float w = f.x*(1.0-f.y); total_value_q+=v10_q*w; total_weight+=w; }
152
+ if (v01_q < 99999.0) { float w = (1.0-f.x)*f.y; total_value_q+=v01_q*w; total_weight+=w; }
153
+ if (v11_q < 99999.0) { float w = f.x*f.y; total_value_q+=v11_q*w; total_weight+=w; }
154
+
155
+ if (total_weight <= 0.0) discard_fragment();
156
+ raw_value = dequantize_val(total_value_q / total_weight, uniforms);
157
+ alpha_multiplier = total_weight; // Feather the edges of the data
158
+ }
159
+ }
160
+
161
+ // --- COMMON FINAL STEPS ---
162
+
163
+ if (raw_value < uniforms.dataRange.x) {
164
+ discard_fragment();
165
+ }
166
+
167
+ float colormap_coord = (raw_value - uniforms.dataRange.x) / (uniforms.dataRange.y - uniforms.dataRange.x);
168
+ colormap_coord = clamp(colormap_coord, 0.0, 1.0);
169
+
170
+ float4 color = colormapTexture.sample(colormapSampler, float2(colormap_coord, 0.5));
171
+
172
+ // Discard if the colormap specifies transparency
173
+ if (color.a < 0.1) {
174
+ discard_fragment();
175
+ }
176
+
177
+ float final_alpha = color.a * uniforms.opacity * alpha_multiplier;
178
+ return float4(color.rgb * final_alpha, final_alpha);
131
179
  }
@@ -1,16 +1,16 @@
1
- #import <React/RCTBridgeModule.h>
2
-
3
- @interface RCT_EXTERN_MODULE(WeatherFrameProcessorModule, NSObject)
4
-
5
- RCT_EXTERN_METHOD(processFrame:(NSDictionary *)options
6
- resolver:(RCTPromiseResolveBlock)resolve
7
- rejecter:(RCTPromiseRejectBlock)reject)
8
-
9
- RCT_EXTERN_METHOD(cancelAllFrames)
10
-
11
- + (BOOL)requiresMainQueueSetup
12
- {
13
- return NO;
14
- }
15
-
1
+ #import <React/RCTBridgeModule.h>
2
+
3
+ @interface RCT_EXTERN_MODULE(WeatherFrameProcessorModule, NSObject)
4
+
5
+ RCT_EXTERN_METHOD(processFrame:(NSDictionary *)options
6
+ resolver:(RCTPromiseResolveBlock)resolve
7
+ rejecter:(RCTPromiseRejectBlock)reject)
8
+
9
+ RCT_EXTERN_METHOD(cancelAllFrames)
10
+
11
+ + (BOOL)requiresMainQueueSetup
12
+ {
13
+ return NO;
14
+ }
15
+
16
16
  @end