@aguacerowx/react-native 0.0.20 → 0.0.21

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 (529) hide show
  1. package/README.md +126 -126
  2. package/aguacerowx-react-native.podspec +53 -53
  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 -107
  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 -627
  95. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +304 -304
  96. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +125 -125
  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 -151
  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 -983
  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/lib/commonjs/README.md +126 -126
  121. package/lib/commonjs/aguacerowx-react-native.podspec +53 -53
  122. package/lib/commonjs/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
  123. package/lib/commonjs/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +43 -0
  124. package/lib/commonjs/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +22 -0
  125. package/lib/commonjs/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec-generated.cpp +22 -0
  126. package/lib/commonjs/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec.h +24 -0
  127. package/lib/commonjs/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
  128. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI-generated.cpp +17 -0
  129. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI.h +19 -0
  130. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.cpp +22 -0
  131. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.h +24 -0
  132. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.cpp +16 -0
  133. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.h +23 -0
  134. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.cpp +62 -0
  135. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.h +40 -0
  136. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.cpp +17 -0
  137. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.h +32 -0
  138. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.cpp +16 -0
  139. package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.h +20 -0
  140. package/lib/commonjs/android/build/generated/source/codegen/schema.json +1 -0
  141. package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
  142. package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  143. package/lib/commonjs/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  144. package/lib/commonjs/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  145. package/lib/commonjs/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  146. package/lib/commonjs/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  147. package/lib/commonjs/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
  148. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  149. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  150. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  151. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  152. package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
  153. package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  154. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  155. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  156. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  157. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  158. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  159. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  160. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  161. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  162. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  163. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  164. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  165. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  166. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
  167. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
  168. package/lib/commonjs/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
  169. package/lib/commonjs/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
  170. package/lib/commonjs/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
  171. package/lib/commonjs/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  172. package/lib/commonjs/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  173. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
  174. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
  175. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +152 -0
  176. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
  177. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  178. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  179. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  180. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  181. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  182. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  183. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  184. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  185. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  186. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
  187. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
  188. package/lib/commonjs/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  189. package/lib/commonjs/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
  190. package/lib/commonjs/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
  191. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
  192. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
  193. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  194. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  195. package/lib/commonjs/android/build.gradle +107 -107
  196. package/lib/commonjs/android/src/main/AndroidManifest.xml +6 -6
  197. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
  198. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +657 -627
  199. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +304 -304
  200. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +125 -125
  201. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
  202. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
  203. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
  204. package/lib/commonjs/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
  205. package/lib/commonjs/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
  206. package/lib/commonjs/android/src/main/res/raw/fragment_shader.glsl +151 -151
  207. package/lib/commonjs/android/src/main/res/raw/vertex_shader.glsl +19 -19
  208. package/lib/commonjs/babel.config.js.map +1 -1
  209. package/lib/commonjs/index.js.map +1 -1
  210. package/lib/commonjs/ios/AguaceroPackage.m +18 -18
  211. package/lib/commonjs/ios/FragmentUniforms.swift +14 -13
  212. package/lib/commonjs/ios/GridRenderLayer.swift +995 -983
  213. package/lib/commonjs/ios/GridRenderLayerBridge.swift +29 -29
  214. package/lib/commonjs/ios/GridRenderLayerManager.mm +157 -145
  215. package/lib/commonjs/ios/GridRenderLayerView.h +16 -22
  216. package/lib/commonjs/ios/GridRenderLayerView.m +205 -199
  217. package/lib/commonjs/ios/InspectorDataCache.swift +65 -65
  218. package/lib/commonjs/ios/InspectorModule.m +9 -9
  219. package/lib/commonjs/ios/InspectorModule.swift +63 -63
  220. package/lib/commonjs/ios/Shaders.metal +178 -130
  221. package/lib/commonjs/ios/WeatherFrameProcessorModule.m +15 -15
  222. package/lib/commonjs/ios/WeatherFrameProcessorModule.swift +103 -103
  223. package/lib/commonjs/ios/compiled-shaders/Shaders-device.metallib +0 -0
  224. package/lib/commonjs/ios/compiled-shaders/Shaders-simulator.metallib +0 -0
  225. package/lib/commonjs/package.json +72 -72
  226. package/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
  227. package/lib/commonjs/scripts/compile-shaders.js +62 -0
  228. package/lib/commonjs/scripts/compile-shaders.js.map +1 -0
  229. package/lib/commonjs/scripts/compile-shaders.sh +38 -26
  230. package/lib/commonjs/src/AguaceroContext.js.map +1 -1
  231. package/lib/commonjs/src/GridRenderLayer.js.map +1 -1
  232. package/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
  233. package/lib/commonjs/src/MapManager.js.map +1 -1
  234. package/lib/commonjs/src/MapRegistry.js.map +1 -1
  235. package/lib/commonjs/src/StyleApplicator.js +6 -6
  236. package/lib/commonjs/src/StyleApplicator.js.map +1 -1
  237. package/lib/commonjs/src/WeatherLayerManager.js +21 -16
  238. package/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
  239. package/lib/commonjs/tsconfig.json +23 -23
  240. package/lib/module/README.md +126 -126
  241. package/lib/module/aguacerowx-react-native.podspec +53 -53
  242. package/lib/module/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
  243. package/lib/module/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +43 -0
  244. package/lib/module/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +22 -0
  245. package/lib/module/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec-generated.cpp +22 -0
  246. package/lib/module/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec.h +24 -0
  247. package/lib/module/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
  248. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI-generated.cpp +17 -0
  249. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI.h +19 -0
  250. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.cpp +22 -0
  251. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.h +24 -0
  252. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.cpp +16 -0
  253. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.h +23 -0
  254. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.cpp +62 -0
  255. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.h +40 -0
  256. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.cpp +17 -0
  257. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.h +32 -0
  258. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.cpp +16 -0
  259. package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.h +20 -0
  260. package/lib/module/android/build/generated/source/codegen/schema.json +1 -0
  261. package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
  262. package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  263. package/lib/module/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  264. package/lib/module/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  265. package/lib/module/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  266. package/lib/module/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  267. package/lib/module/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
  268. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  269. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  270. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  271. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  272. package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
  273. package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  274. package/lib/module/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  275. package/lib/module/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  276. package/lib/module/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  277. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  278. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  279. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  280. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  281. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  282. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  283. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  284. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  285. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  286. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
  287. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
  288. package/lib/module/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
  289. package/lib/module/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
  290. package/lib/module/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
  291. package/lib/module/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  292. package/lib/module/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  293. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
  294. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
  295. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +152 -0
  296. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
  297. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  298. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  299. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  300. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  301. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  302. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  303. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  304. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  305. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  306. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
  307. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
  308. package/lib/module/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  309. package/lib/module/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
  310. package/lib/module/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
  311. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
  312. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
  313. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  314. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  315. package/lib/module/android/build.gradle +107 -107
  316. package/lib/module/android/src/main/AndroidManifest.xml +6 -6
  317. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
  318. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +657 -627
  319. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +304 -304
  320. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +125 -125
  321. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
  322. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
  323. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
  324. package/lib/module/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
  325. package/lib/module/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
  326. package/lib/module/android/src/main/res/raw/fragment_shader.glsl +151 -151
  327. package/lib/module/android/src/main/res/raw/vertex_shader.glsl +19 -19
  328. package/lib/module/babel.config.js.map +1 -1
  329. package/lib/module/index.js.map +1 -1
  330. package/lib/module/ios/AguaceroPackage.m +18 -18
  331. package/lib/module/ios/FragmentUniforms.swift +14 -13
  332. package/lib/module/ios/GridRenderLayer.swift +995 -983
  333. package/lib/module/ios/GridRenderLayerBridge.swift +29 -29
  334. package/lib/module/ios/GridRenderLayerManager.mm +157 -145
  335. package/lib/module/ios/GridRenderLayerView.h +16 -22
  336. package/lib/module/ios/GridRenderLayerView.m +205 -199
  337. package/lib/module/ios/InspectorDataCache.swift +65 -65
  338. package/lib/module/ios/InspectorModule.m +9 -9
  339. package/lib/module/ios/InspectorModule.swift +63 -63
  340. package/lib/module/ios/Shaders.metal +178 -130
  341. package/lib/module/ios/WeatherFrameProcessorModule.m +15 -15
  342. package/lib/module/ios/WeatherFrameProcessorModule.swift +103 -103
  343. package/lib/module/ios/compiled-shaders/Shaders-device.metallib +0 -0
  344. package/lib/module/ios/compiled-shaders/Shaders-simulator.metallib +0 -0
  345. package/lib/module/lib/commonjs/README.md +126 -126
  346. package/lib/module/lib/commonjs/aguacerowx-react-native.podspec +53 -53
  347. package/lib/module/lib/commonjs/android/build.gradle +107 -107
  348. package/lib/module/lib/commonjs/android/src/main/AndroidManifest.xml +6 -6
  349. package/lib/module/lib/commonjs/babel.config.js.map +1 -1
  350. package/lib/module/lib/commonjs/index.js.map +1 -1
  351. package/lib/module/lib/commonjs/ios/AguaceroPackage.m +18 -18
  352. package/lib/module/lib/commonjs/ios/FragmentUniforms.swift +14 -13
  353. package/lib/module/lib/commonjs/ios/GridRenderLayer.swift +995 -983
  354. package/lib/module/lib/commonjs/ios/GridRenderLayerBridge.swift +29 -29
  355. package/lib/module/lib/commonjs/ios/GridRenderLayerManager.mm +157 -145
  356. package/lib/module/lib/commonjs/ios/GridRenderLayerView.h +16 -22
  357. package/lib/module/lib/commonjs/ios/GridRenderLayerView.m +205 -199
  358. package/lib/module/lib/commonjs/ios/InspectorDataCache.swift +65 -65
  359. package/lib/module/lib/commonjs/ios/InspectorModule.m +9 -9
  360. package/lib/module/lib/commonjs/ios/InspectorModule.swift +63 -63
  361. package/lib/module/lib/commonjs/ios/Shaders.metal +178 -130
  362. package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.m +15 -15
  363. package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.swift +103 -103
  364. package/lib/module/lib/commonjs/ios/compiled-shaders/Shaders-device.metallib +0 -0
  365. package/lib/module/lib/commonjs/ios/compiled-shaders/Shaders-simulator.metallib +0 -0
  366. package/lib/module/lib/commonjs/package.json +72 -72
  367. package/lib/module/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
  368. package/lib/module/lib/commonjs/scripts/compile-shaders.js +62 -0
  369. package/lib/module/lib/commonjs/scripts/compile-shaders.js.map +1 -0
  370. package/lib/module/lib/commonjs/scripts/compile-shaders.sh +38 -26
  371. package/lib/module/lib/commonjs/src/AguaceroContext.js.map +1 -1
  372. package/lib/module/lib/commonjs/src/GridRenderLayer.js.map +1 -1
  373. package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
  374. package/lib/module/lib/commonjs/src/MapManager.js.map +1 -1
  375. package/lib/module/lib/commonjs/src/MapRegistry.js.map +1 -1
  376. package/lib/module/lib/commonjs/src/StyleApplicator.js +6 -6
  377. package/lib/module/lib/commonjs/src/StyleApplicator.js.map +1 -1
  378. package/lib/module/lib/commonjs/src/WeatherLayerManager.js +21 -16
  379. package/lib/module/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
  380. package/lib/module/lib/commonjs/tsconfig.json +23 -23
  381. package/lib/module/package.json +72 -72
  382. package/lib/module/react-native-builder-bob.config.js.map +1 -1
  383. package/lib/module/scripts/compile-shaders.js +60 -0
  384. package/lib/module/scripts/compile-shaders.js.map +1 -0
  385. package/lib/module/scripts/compile-shaders.sh +38 -26
  386. package/lib/module/src/AguaceroContext.js.map +1 -1
  387. package/lib/module/src/GridRenderLayer.js.map +1 -1
  388. package/lib/module/src/GridRenderLayerNativeComponent.js.map +1 -1
  389. package/lib/module/src/MapManager.js.map +1 -1
  390. package/lib/module/src/MapRegistry.js.map +1 -1
  391. package/lib/module/src/StyleApplicator.js +6 -6
  392. package/lib/module/src/StyleApplicator.js.map +1 -1
  393. package/lib/module/src/WeatherLayerManager.js +21 -16
  394. package/lib/module/src/WeatherLayerManager.js.map +1 -1
  395. package/lib/module/tsconfig.json +23 -23
  396. package/lib/typescript/scripts/compile-shaders.d.ts +3 -0
  397. package/lib/typescript/scripts/compile-shaders.d.ts.map +1 -0
  398. package/lib/typescript/src/WeatherLayerManager.d.ts.map +1 -1
  399. package/package.json +72 -72
  400. package/src/AguaceroContext.js +3 -3
  401. package/src/GridRenderLayer.js +217 -217
  402. package/src/GridRenderLayerNativeComponent.ts +15 -15
  403. package/src/MapManager.js +155 -155
  404. package/src/MapRegistry.js +34 -34
  405. package/src/StyleApplicator.js +240 -240
  406. package/src/WeatherLayerManager.js +891 -879
  407. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +0 -1063
  408. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +0 -1
  409. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +0 -381
  410. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +0 -1
  411. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +0 -1256
  412. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +0 -1
  413. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +0 -4041
  414. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +0 -1
  415. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js +0 -38
  416. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +0 -1
  417. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +0 -30
  418. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +0 -1
  419. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +0 -27
  420. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +0 -1
  421. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js +0 -41
  422. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +0 -1
  423. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +0 -301
  424. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +0 -1
  425. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +0 -126
  426. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +0 -1
  427. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +0 -48
  428. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +0 -1055
  429. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +0 -1
  430. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +0 -381
  431. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +0 -1
  432. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +0 -1256
  433. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +0 -1
  434. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +0 -4041
  435. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +0 -1
  436. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js +0 -38
  437. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +0 -1
  438. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +0 -30
  439. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +0 -1
  440. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +0 -27
  441. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +0 -1
  442. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js +0 -41
  443. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +0 -1
  444. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +0 -301
  445. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +0 -1
  446. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +0 -126
  447. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +0 -1
  448. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +0 -1063
  449. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +0 -1
  450. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +0 -381
  451. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +0 -1
  452. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +0 -1256
  453. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +0 -1
  454. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +0 -4041
  455. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +0 -1
  456. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js +0 -38
  457. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +0 -1
  458. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +0 -30
  459. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +0 -1
  460. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +0 -27
  461. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +0 -1
  462. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js +0 -41
  463. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +0 -1
  464. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +0 -301
  465. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +0 -1
  466. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +0 -126
  467. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +0 -1
  468. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +0 -48
  469. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +0 -1059
  470. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +0 -1
  471. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +0 -381
  472. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +0 -1
  473. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +0 -1256
  474. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +0 -1
  475. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +0 -4041
  476. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +0 -1
  477. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js +0 -38
  478. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +0 -1
  479. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +0 -30
  480. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +0 -1
  481. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +0 -27
  482. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +0 -1
  483. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js +0 -41
  484. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +0 -1
  485. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +0 -301
  486. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +0 -1
  487. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +0 -126
  488. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +0 -1
  489. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +0 -1063
  490. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +0 -1
  491. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +0 -381
  492. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +0 -1
  493. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +0 -1256
  494. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +0 -1
  495. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +0 -4041
  496. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +0 -1
  497. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/events.js +0 -38
  498. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +0 -1
  499. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +0 -30
  500. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +0 -1
  501. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +0 -27
  502. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +0 -1
  503. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/index.js +0 -41
  504. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +0 -1
  505. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +0 -301
  506. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +0 -1
  507. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +0 -126
  508. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +0 -1
  509. package/lib/module/node_modules/@aguacerowx/javascript-sdk/package.json +0 -48
  510. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +0 -1047
  511. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +0 -1
  512. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +0 -375
  513. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +0 -1
  514. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +0 -1250
  515. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +0 -1
  516. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +0 -4035
  517. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +0 -1
  518. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/events.js +0 -31
  519. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +0 -1
  520. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +0 -29
  521. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +0 -1
  522. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +0 -21
  523. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +0 -1
  524. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/index.js +0 -12
  525. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +0 -1
  526. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +0 -295
  527. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +0 -1
  528. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +0 -119
  529. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +0 -1
@@ -1,241 +1,241 @@
1
- import React from 'react';
2
- import Mapbox from '@rnmapbox/maps';
3
-
4
- // Re-implement the mapping from your web SDK for clarity and maintenance.
5
- const STYLE_LAYER_MAP = {
6
- // Background and water layers
7
- landColor: { layerId: 'AML_-_land' },
8
- oceanColor: { layerId: 'AML_-_water' },
9
- waterDepth: { layerId: 'AML_-_water-depth' },
10
- nationalPark: { layerId: 'AML_-_national-park' },
11
-
12
- // Line layers
13
- roads: { layerId: 'AML_-_roads' },
14
- airports: { layerId: 'AML_-_airports' },
15
- countries: { layerId: 'AML_-_countries' },
16
- states: { layerId: 'AML_-_states' },
17
- counties: { layerId: 'AML_-_counties' },
18
- waterways: { layerId: 'AML_-_waterway' },
19
-
20
- // Symbol (label) layers
21
- continents: { layerId: 'AML_-_continent-label' },
22
- countriesLabels: { layerId: 'AML_-_country-label' },
23
- statesLabels: { layerId: 'AML_-_state-label' },
24
- citiesMajor: { layerId: 'AML_-_major-city-label' },
25
- citiesMinor: { layerId: 'AML_-_minor-city-label' },
26
- airportsLabels: { layerId: 'AML_-_airport-label' },
27
- poi: { layerId: 'AML_-_poi-label' },
28
- waterLabels: { layerId: 'AML_-_water-point-label' },
29
- naturalLabels: { layerId: 'AML_-_natural-point-label' },
30
- subdivisionLabels: { layerId: 'AML_-_subdivision-label' },
31
- };
32
-
33
- /**
34
- * A utility to sanitize 8-digit hex colors (#rrggbbaa) to 6-digit hex (#rrggbb)
35
- * as required by some Mapbox properties.
36
- */
37
- function sanitizeColor(color) {
38
- if (typeof color === 'string' && color.startsWith('#') && color.length === 9) {
39
- return color.substring(0, 7);
40
- }
41
- return color;
42
- }
43
-
44
- /**
45
- * Renders a set of Mapbox layers with styles derived from a theme object.
46
- * This is the declarative, React Native equivalent of `applyStyleCustomizations`.
47
- */
48
- export const StyleApplicator = ({ styles }) => {
49
- if (!styles) {
50
- return null;
51
- }
52
-
53
- const { landOcean, transportation, boundaries, waterFeatures, labels, terrain } = styles;
54
-
55
- // --- Helper for Line Layer Styles ---
56
- const getLineStyles = (config) => {
57
- if (!config) return {};
58
- const dashArray = { dashed: [2, 2], dotted: [0, 2], solid: [] };
59
- return {
60
- visibility: config.visible ? 'visible' : 'none',
61
- lineColor: sanitizeColor(config.color),
62
- lineWidth: config.width,
63
- lineDasharray: dashArray[config.lineType] || [],
64
- };
65
- };
66
-
67
- // --- Helper for Symbol (Label) Layer Styles ---
68
- const getSymbolStyles = (config) => {
69
- if (!config) return {};
70
- return {
71
- visibility: config.visible ? 'visible' : 'none',
72
- textColor: sanitizeColor(config.color),
73
- textHaloColor: sanitizeColor(config.outlineColor),
74
- textHaloWidth: config.outlineWidth,
75
- textSize: config.fontSize,
76
- textFont: [config.fontFamily],
77
- };
78
- };
79
-
80
- return (
81
- <>
82
- {/* --- Land & Water --- */}
83
- {landOcean && (
84
- <>
85
- <Mapbox.BackgroundLayer
86
- id={STYLE_LAYER_MAP.landColor.layerId}
87
- existing={true} // FIX: Added existing prop
88
- style={{ backgroundColor: sanitizeColor(landOcean.landColor) }}
89
- />
90
- <Mapbox.FillLayer
91
- id={STYLE_LAYER_MAP.oceanColor.layerId}
92
- existing={true} // FIX: Added existing prop
93
- style={{ fillColor: sanitizeColor(landOcean.oceanColor) }}
94
- />
95
- {landOcean.waterDepth && (
96
- <Mapbox.FillLayer
97
- id={STYLE_LAYER_MAP.waterDepth.layerId}
98
- existing={true} // FIX: Added existing prop
99
- style={{
100
- visibility: landOcean.waterDepth.visible ? 'visible' : 'none',
101
- fillColor: sanitizeColor(landOcean.waterDepth.color)
102
- }}
103
- />
104
- )}
105
- {landOcean.nationalPark && (
106
- <Mapbox.FillLayer
107
- id={STYLE_LAYER_MAP.nationalPark.layerId}
108
- existing={true} // FIX: Added existing prop
109
- style={{
110
- visibility: landOcean.nationalPark.visible ? 'visible' : 'none',
111
- fillColor: sanitizeColor(landOcean.nationalPark.color)
112
- }}
113
- />
114
- )}
115
- </>
116
- )}
117
-
118
- {/* --- Boundaries & Transportation --- */}
119
- {boundaries && (
120
- <>
121
- <Mapbox.LineLayer
122
- id={STYLE_LAYER_MAP.countries.layerId}
123
- existing={true} // FIX: Added existing prop
124
- style={getLineStyles(boundaries.countries)}
125
- />
126
- <Mapbox.LineLayer
127
- id={STYLE_LAYER_MAP.states.layerId}
128
- existing={true} // FIX: Added existing prop
129
- style={getLineStyles(boundaries.states)}
130
- />
131
- <Mapbox.LineLayer
132
- id={STYLE_LAYER_MAP.counties.layerId}
133
- existing={true} // FIX: Added existing prop
134
- style={getLineStyles(boundaries.counties)}
135
- />
136
- </>
137
- )}
138
- {transportation && (
139
- <>
140
- <Mapbox.LineLayer
141
- id={STYLE_LAYER_MAP.roads.layerId}
142
- existing={true} // FIX: Added existing prop
143
- style={getLineStyles(transportation.roads)}
144
- />
145
- <Mapbox.LineLayer
146
- id={STYLE_LAYER_MAP.airports.layerId}
147
- existing={true} // FIX: Added existing prop
148
- style={getLineStyles(transportation.airports)}
149
- />
150
- </>
151
- )}
152
- {waterFeatures && (
153
- <Mapbox.LineLayer
154
- id={STYLE_LAYER_MAP.waterways.layerId}
155
- existing={true} // FIX: Added existing prop
156
- style={getLineStyles(waterFeatures.waterways)}
157
- />
158
- )}
159
-
160
- {/* --- Labels --- */}
161
- {labels && (
162
- <>
163
- <Mapbox.SymbolLayer
164
- id={STYLE_LAYER_MAP.continents.layerId}
165
- existing={true} // FIX: Added existing prop
166
- style={getSymbolStyles(labels.continents)}
167
- />
168
- <Mapbox.SymbolLayer
169
- id={STYLE_LAYER_MAP.countriesLabels.layerId}
170
- existing={true} // FIX: Added existing prop
171
- style={getSymbolStyles(labels.countries)}
172
- />
173
- <Mapbox.SymbolLayer
174
- id={STYLE_LAYER_MAP.statesLabels.layerId}
175
- existing={true} // FIX: Added existing prop
176
- style={getSymbolStyles(labels.states)}
177
- />
178
- {labels.cities && (
179
- <>
180
- <Mapbox.SymbolLayer
181
- id={STYLE_LAYER_MAP.citiesMajor.layerId}
182
- existing={true} // FIX: Added existing prop
183
- style={getSymbolStyles(labels.cities.major)}
184
- />
185
- <Mapbox.SymbolLayer
186
- id={STYLE_LAYER_MAP.citiesMinor.layerId}
187
- existing={true} // FIX: Added existing prop
188
- style={getSymbolStyles(labels.cities.minor)}
189
- />
190
- </>
191
- )}
192
- <Mapbox.SymbolLayer
193
- id={STYLE_LAYER_MAP.airportsLabels.layerId}
194
- existing={true} // FIX: Added existing prop
195
- style={getSymbolStyles(labels.airports)}
196
- />
197
- <Mapbox.SymbolLayer
198
- id={STYLE_LAYER_MAP.poi.layerId}
199
- existing={true} // FIX: Added existing prop
200
- style={getSymbolStyles(labels.poi)}
201
- />
202
- <Mapbox.SymbolLayer
203
- id={STYLE_LAYER_MAP.waterLabels.layerId}
204
- existing={true} // FIX: Added existing prop
205
- style={getSymbolStyles(labels.waterLabels)}
206
- />
207
- <Mapbox.SymbolLayer
208
- id={STYLE_LAYER_MAP.naturalLabels.layerId}
209
- existing={true} // FIX: Added existing prop
210
- style={getSymbolStyles(labels.naturalLabels)}
211
- />
212
- <Mapbox.SymbolLayer
213
- id={STYLE_LAYER_MAP.subdivisionLabels.layerId}
214
- existing={true} // FIX: Added existing prop
215
- style={getSymbolStyles(labels.subdivisionLabels)}
216
- />
217
- </>
218
- )}
219
-
220
- {/* --- Terrain --- */}
221
- {terrain && terrain.visible && Mapbox.Terrain && Mapbox.HillshadeLayer && (
222
- <>
223
- <Mapbox.Terrain
224
- sourceID="mapbox-dem"
225
- style={{ exaggeration: 1 }}
226
- />
227
- <Mapbox.HillshadeLayer
228
- id="hillshade"
229
- sourceID="mapbox-dem"
230
- style={{
231
- hillshadeExaggeration: terrain.intensity,
232
- hillshadeShadowColor: sanitizeColor(terrain.shadowColor),
233
- hillshadeHighlightColor: sanitizeColor(terrain.highlightColor),
234
- hillshadeAccentColor: sanitizeColor(terrain.accentColor)
235
- }}
236
- />
237
- </>
238
- )}
239
- </>
240
- );
1
+ import React from 'react';
2
+ import Mapbox from '@rnmapbox/maps';
3
+
4
+ // Re-implement the mapping from your web SDK for clarity and maintenance.
5
+ const STYLE_LAYER_MAP = {
6
+ // Background and water layers
7
+ landColor: { layerId: 'AML_-_land' },
8
+ oceanColor: { layerId: 'AML_-_water' },
9
+ waterDepth: { layerId: 'AML_-_water-depth' },
10
+ nationalPark: { layerId: 'AML_-_national-park' },
11
+
12
+ // Line layers
13
+ roads: { layerId: 'AML_-_roads' },
14
+ airports: { layerId: 'AML_-_airports' },
15
+ countries: { layerId: 'AML_-_countries' },
16
+ states: { layerId: 'AML_-_states' },
17
+ counties: { layerId: 'AML_-_counties' },
18
+ waterways: { layerId: 'AML_-_waterway' },
19
+
20
+ // Symbol (label) layers
21
+ continents: { layerId: 'AML_-_continent-label' },
22
+ countriesLabels: { layerId: 'AML_-_country-label' },
23
+ statesLabels: { layerId: 'AML_-_state-label' },
24
+ citiesMajor: { layerId: 'AML_-_major-city-label' },
25
+ citiesMinor: { layerId: 'AML_-_minor-city-label' },
26
+ airportsLabels: { layerId: 'AML_-_airport-label' },
27
+ poi: { layerId: 'AML_-_poi-label' },
28
+ waterLabels: { layerId: 'AML_-_water-point-label' },
29
+ naturalLabels: { layerId: 'AML_-_natural-point-label' },
30
+ subdivisionLabels: { layerId: 'AML_-_subdivision-label' },
31
+ };
32
+
33
+ /**
34
+ * A utility to sanitize 8-digit hex colors (#rrggbbaa) to 6-digit hex (#rrggbb)
35
+ * as required by some Mapbox properties.
36
+ */
37
+ function sanitizeColor(color) {
38
+ if (typeof color === 'string' && color.startsWith('#') && color.length === 9) {
39
+ return color.substring(0, 7);
40
+ }
41
+ return color;
42
+ }
43
+
44
+ /**
45
+ * Renders a set of Mapbox layers with styles derived from a theme object.
46
+ * This is the declarative, React Native equivalent of `applyStyleCustomizations`.
47
+ */
48
+ export const StyleApplicator = ({ styles }) => {
49
+ if (!styles) {
50
+ return null;
51
+ }
52
+
53
+ const { landOcean, transportation, boundaries, waterFeatures, labels, terrain } = styles;
54
+
55
+ // --- Helper for Line Layer Styles ---
56
+ const getLineStyles = (config) => {
57
+ if (!config) return {};
58
+ const dashArray = { dashed: [2, 2], dotted: [0, 2], solid: [] };
59
+ return {
60
+ visibility: config.visible ? 'visible' : 'none',
61
+ lineColor: sanitizeColor(config.color),
62
+ lineWidth: config.width,
63
+ lineDasharray: dashArray[config.lineType] || [],
64
+ };
65
+ };
66
+
67
+ // --- Helper for Symbol (Label) Layer Styles ---
68
+ const getSymbolStyles = (config) => {
69
+ if (!config) return {};
70
+ return {
71
+ visibility: config.visible ? 'visible' : 'none',
72
+ textColor: sanitizeColor(config.color),
73
+ textHaloColor: sanitizeColor(config.outlineColor),
74
+ textHaloWidth: config.outlineWidth,
75
+ textSize: config.fontSize,
76
+ textFont: [config.fontFamily],
77
+ };
78
+ };
79
+
80
+ return (
81
+ <>
82
+ {/* --- Land & Water --- */}
83
+ {landOcean && (
84
+ <>
85
+ <Mapbox.BackgroundLayer
86
+ id={STYLE_LAYER_MAP.landColor.layerId}
87
+ existing={true} // FIX: Added existing prop
88
+ style={{ backgroundColor: sanitizeColor(landOcean.landColor) }}
89
+ />
90
+ <Mapbox.FillLayer
91
+ id={STYLE_LAYER_MAP.oceanColor.layerId}
92
+ existing={true} // FIX: Added existing prop
93
+ style={{ fillColor: sanitizeColor(landOcean.oceanColor) }}
94
+ />
95
+ {landOcean.waterDepth && (
96
+ <Mapbox.FillLayer
97
+ id={STYLE_LAYER_MAP.waterDepth.layerId}
98
+ existing={true} // FIX: Added existing prop
99
+ style={{
100
+ visibility: landOcean.waterDepth.visible ? 'visible' : 'none',
101
+ fillColor: sanitizeColor(landOcean.waterDepth.color)
102
+ }}
103
+ />
104
+ )}
105
+ {landOcean.nationalPark && (
106
+ <Mapbox.FillLayer
107
+ id={STYLE_LAYER_MAP.nationalPark.layerId}
108
+ existing={true} // FIX: Added existing prop
109
+ style={{
110
+ visibility: landOcean.nationalPark.visible ? 'visible' : 'none',
111
+ fillColor: sanitizeColor(landOcean.nationalPark.color)
112
+ }}
113
+ />
114
+ )}
115
+ </>
116
+ )}
117
+
118
+ {/* --- Boundaries & Transportation --- */}
119
+ {boundaries && (
120
+ <>
121
+ <Mapbox.LineLayer
122
+ id={STYLE_LAYER_MAP.countries.layerId}
123
+ existing={true} // FIX: Added existing prop
124
+ style={getLineStyles(boundaries.countries)}
125
+ />
126
+ <Mapbox.LineLayer
127
+ id={STYLE_LAYER_MAP.states.layerId}
128
+ existing={true} // FIX: Added existing prop
129
+ style={getLineStyles(boundaries.states)}
130
+ />
131
+ <Mapbox.LineLayer
132
+ id={STYLE_LAYER_MAP.counties.layerId}
133
+ existing={true} // FIX: Added existing prop
134
+ style={getLineStyles(boundaries.counties)}
135
+ />
136
+ </>
137
+ )}
138
+ {transportation && (
139
+ <>
140
+ <Mapbox.LineLayer
141
+ id={STYLE_LAYER_MAP.roads.layerId}
142
+ existing={true} // FIX: Added existing prop
143
+ style={getLineStyles(transportation.roads)}
144
+ />
145
+ <Mapbox.LineLayer
146
+ id={STYLE_LAYER_MAP.airports.layerId}
147
+ existing={true} // FIX: Added existing prop
148
+ style={getLineStyles(transportation.airports)}
149
+ />
150
+ </>
151
+ )}
152
+ {waterFeatures && (
153
+ <Mapbox.LineLayer
154
+ id={STYLE_LAYER_MAP.waterways.layerId}
155
+ existing={true} // FIX: Added existing prop
156
+ style={getLineStyles(waterFeatures.waterways)}
157
+ />
158
+ )}
159
+
160
+ {/* --- Labels --- */}
161
+ {labels && (
162
+ <>
163
+ <Mapbox.SymbolLayer
164
+ id={STYLE_LAYER_MAP.continents.layerId}
165
+ existing={true} // FIX: Added existing prop
166
+ style={getSymbolStyles(labels.continents)}
167
+ />
168
+ <Mapbox.SymbolLayer
169
+ id={STYLE_LAYER_MAP.countriesLabels.layerId}
170
+ existing={true} // FIX: Added existing prop
171
+ style={getSymbolStyles(labels.countries)}
172
+ />
173
+ <Mapbox.SymbolLayer
174
+ id={STYLE_LAYER_MAP.statesLabels.layerId}
175
+ existing={true} // FIX: Added existing prop
176
+ style={getSymbolStyles(labels.states)}
177
+ />
178
+ {labels.cities && (
179
+ <>
180
+ <Mapbox.SymbolLayer
181
+ id={STYLE_LAYER_MAP.citiesMajor.layerId}
182
+ existing={true} // FIX: Added existing prop
183
+ style={getSymbolStyles(labels.cities.major)}
184
+ />
185
+ <Mapbox.SymbolLayer
186
+ id={STYLE_LAYER_MAP.citiesMinor.layerId}
187
+ existing={true} // FIX: Added existing prop
188
+ style={getSymbolStyles(labels.cities.minor)}
189
+ />
190
+ </>
191
+ )}
192
+ <Mapbox.SymbolLayer
193
+ id={STYLE_LAYER_MAP.airportsLabels.layerId}
194
+ existing={true} // FIX: Added existing prop
195
+ style={getSymbolStyles(labels.airports)}
196
+ />
197
+ <Mapbox.SymbolLayer
198
+ id={STYLE_LAYER_MAP.poi.layerId}
199
+ existing={true} // FIX: Added existing prop
200
+ style={getSymbolStyles(labels.poi)}
201
+ />
202
+ <Mapbox.SymbolLayer
203
+ id={STYLE_LAYER_MAP.waterLabels.layerId}
204
+ existing={true} // FIX: Added existing prop
205
+ style={getSymbolStyles(labels.waterLabels)}
206
+ />
207
+ <Mapbox.SymbolLayer
208
+ id={STYLE_LAYER_MAP.naturalLabels.layerId}
209
+ existing={true} // FIX: Added existing prop
210
+ style={getSymbolStyles(labels.naturalLabels)}
211
+ />
212
+ <Mapbox.SymbolLayer
213
+ id={STYLE_LAYER_MAP.subdivisionLabels.layerId}
214
+ existing={true} // FIX: Added existing prop
215
+ style={getSymbolStyles(labels.subdivisionLabels)}
216
+ />
217
+ </>
218
+ )}
219
+
220
+ {/* --- Terrain --- */}
221
+ {terrain && terrain.visible && Mapbox.Terrain && Mapbox.HillshadeLayer && (
222
+ <>
223
+ <Mapbox.Terrain
224
+ sourceID="mapbox-dem"
225
+ style={{ exaggeration: 1 }}
226
+ />
227
+ <Mapbox.HillshadeLayer
228
+ id="hillshade"
229
+ sourceID="mapbox-dem"
230
+ style={{
231
+ hillshadeExaggeration: terrain.intensity,
232
+ hillshadeShadowColor: sanitizeColor(terrain.shadowColor),
233
+ hillshadeHighlightColor: sanitizeColor(terrain.highlightColor),
234
+ hillshadeAccentColor: sanitizeColor(terrain.accentColor)
235
+ }}
236
+ />
237
+ </>
238
+ )}
239
+ </>
240
+ );
241
241
  };