@aguacerowx/react-native 0.0.29 → 0.0.31
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.
- package/README.md +126 -126
- package/aguacerowx-react-native.podspec +38 -38
- package/android/build/.transforms/42e9b8fa82d77a1c205db5bf0d0ed519/results.bin +1 -0
- package/android/build/.transforms/42e9b8fa82d77a1c205db5bf0d0ed519/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/results.bin +1 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/AguaceroPackage.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/BuildConfig.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayerView.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderManager.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/InspectorModule.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/ShaderUtils.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/WeatherFrameProcessorModule.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.dex +0 -0
- package/android/build/.transforms/c8ab78b63f2cc835ac936d58e29a17ab/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +43 -0
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +22 -0
- package/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec-generated.cpp +22 -0
- package/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec.h +24 -0
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI-generated.cpp +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI.h +19 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.cpp +22 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.h +24 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.h +23 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.cpp +62 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.h +40 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.cpp +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.h +32 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.h +20 -0
- package/android/build/generated/source/codegen/schema.json +1 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +162 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build.gradle +107 -107
- package/android/src/main/AndroidManifest.xml +6 -6
- package/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +672 -672
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +304 -304
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +125 -125
- package/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
- package/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
- package/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
- package/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
- package/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
- package/android/src/main/res/raw/fragment_shader.glsl +161 -161
- package/android/src/main/res/raw/vertex_shader.glsl +19 -19
- package/index.js +2 -2
- package/ios/AguaceroPackage.m +18 -18
- package/ios/FragmentUniforms.swift +15 -15
- package/ios/GridRenderLayer.swift +986 -1043
- package/ios/GridRenderLayerBridge.swift +36 -37
- package/ios/GridRenderLayerManager.mm +157 -157
- package/ios/GridRenderLayerView.h +30 -30
- package/ios/GridRenderLayerView.m +216 -256
- package/ios/InspectorDataCache.swift +65 -65
- package/ios/InspectorModule.m +9 -9
- package/ios/InspectorModule.swift +63 -63
- package/ios/Shaders.metal +190 -190
- package/ios/WeatherFrameProcessorModule.m +15 -15
- package/ios/WeatherFrameProcessorModule.swift +103 -103
- package/lib/commonjs/README.md +126 -126
- package/lib/commonjs/aguacerowx-react-native.podspec +38 -38
- package/lib/commonjs/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
- package/lib/commonjs/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +43 -0
- package/lib/commonjs/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +22 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec-generated.cpp +22 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec.h +24 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI-generated.cpp +17 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI.h +19 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.cpp +22 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.h +24 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.cpp +16 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.h +23 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.cpp +62 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.h +40 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.cpp +17 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.h +32 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.cpp +16 -0
- package/lib/commonjs/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.h +20 -0
- package/lib/commonjs/android/build/generated/source/codegen/schema.json +1 -0
- package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
- package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/lib/commonjs/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/lib/commonjs/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/lib/commonjs/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/lib/commonjs/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/lib/commonjs/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
- package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
- package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
- package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
- package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
- package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
- package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/lib/commonjs/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
- package/lib/commonjs/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/lib/commonjs/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
- package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
- package/lib/commonjs/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
- package/lib/commonjs/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
- package/lib/commonjs/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
- package/lib/commonjs/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/lib/commonjs/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +162 -0
- package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
- package/lib/commonjs/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/lib/commonjs/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
- package/lib/commonjs/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/lib/commonjs/android/build.gradle +107 -107
- package/lib/commonjs/android/src/main/AndroidManifest.xml +6 -6
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +672 -672
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +304 -304
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +125 -125
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
- package/lib/commonjs/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
- package/lib/commonjs/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
- package/lib/commonjs/android/src/main/res/raw/fragment_shader.glsl +161 -161
- package/lib/commonjs/android/src/main/res/raw/vertex_shader.glsl +19 -19
- package/lib/commonjs/babel.config.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ios/AguaceroPackage.m +18 -18
- package/lib/commonjs/ios/FragmentUniforms.swift +15 -15
- package/lib/commonjs/ios/GridRenderLayer.swift +986 -1043
- package/lib/commonjs/ios/GridRenderLayerBridge.swift +36 -37
- package/lib/commonjs/ios/GridRenderLayerManager.mm +157 -157
- package/lib/commonjs/ios/GridRenderLayerView.h +30 -30
- package/lib/commonjs/ios/GridRenderLayerView.m +216 -256
- package/lib/commonjs/ios/InspectorDataCache.swift +65 -65
- package/lib/commonjs/ios/InspectorModule.m +9 -9
- package/lib/commonjs/ios/InspectorModule.swift +63 -63
- package/lib/commonjs/ios/Shaders.metal +190 -190
- package/lib/commonjs/ios/WeatherFrameProcessorModule.m +15 -15
- package/lib/commonjs/ios/WeatherFrameProcessorModule.swift +103 -103
- package/lib/commonjs/package.json +72 -72
- package/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
- package/lib/commonjs/scripts/compile-shaders.js.map +1 -1
- package/lib/commonjs/scripts/compile-shaders.sh +38 -38
- package/lib/commonjs/src/AguaceroContext.js.map +1 -1
- package/lib/commonjs/src/GridRenderLayer.js +0 -2
- package/lib/commonjs/src/GridRenderLayer.js.map +1 -1
- package/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/src/MapManager.js +2 -2
- package/lib/commonjs/src/MapManager.js.map +1 -1
- package/lib/commonjs/src/MapRegistry.js.map +1 -1
- package/lib/commonjs/src/StyleApplicator.js +6 -6
- package/lib/commonjs/src/StyleApplicator.js.map +1 -1
- package/lib/commonjs/src/WeatherLayerManager.js +127 -79
- package/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
- package/lib/commonjs/tsconfig.json +23 -23
- package/lib/module/README.md +126 -126
- package/lib/module/aguacerowx-react-native.podspec +38 -38
- package/lib/module/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
- package/lib/module/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +43 -0
- package/lib/module/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +22 -0
- package/lib/module/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec-generated.cpp +22 -0
- package/lib/module/android/build/generated/source/codegen/jni/AguaceroWxReactNativeSpec.h +24 -0
- package/lib/module/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI-generated.cpp +17 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/AguaceroWxReactNativeSpecJSI.h +19 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.cpp +22 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ComponentDescriptors.h +24 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.cpp +16 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/EventEmitters.h +23 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.cpp +62 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/Props.h +40 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.cpp +17 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/ShadowNodes.h +32 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.cpp +16 -0
- package/lib/module/android/build/generated/source/codegen/jni/react/renderer/components/AguaceroWxReactNativeSpec/States.h +20 -0
- package/lib/module/android/build/generated/source/codegen/schema.json +1 -0
- package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
- package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/lib/module/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/lib/module/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/lib/module/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/lib/module/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/lib/module/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
- package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
- package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
- package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
- package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
- package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
- package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/lib/module/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
- package/lib/module/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/lib/module/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
- package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
- package/lib/module/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
- package/lib/module/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
- package/lib/module/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
- package/lib/module/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/lib/module/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +162 -0
- package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.class +0 -0
- package/lib/module/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/lib/module/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
- package/lib/module/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/lib/module/android/build.gradle +107 -107
- package/lib/module/android/src/main/AndroidManifest.xml +6 -6
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +672 -672
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +304 -304
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +125 -125
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
- package/lib/module/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
- package/lib/module/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
- package/lib/module/android/src/main/res/raw/fragment_shader.glsl +161 -161
- package/lib/module/android/src/main/res/raw/vertex_shader.glsl +19 -19
- package/lib/module/babel.config.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/ios/AguaceroPackage.m +18 -18
- package/lib/module/ios/FragmentUniforms.swift +15 -15
- package/lib/module/ios/GridRenderLayer.swift +986 -1043
- package/lib/module/ios/GridRenderLayerBridge.swift +36 -37
- package/lib/module/ios/GridRenderLayerManager.mm +157 -157
- package/lib/module/ios/GridRenderLayerView.h +30 -30
- package/lib/module/ios/GridRenderLayerView.m +216 -256
- package/lib/module/ios/InspectorDataCache.swift +65 -65
- package/lib/module/ios/InspectorModule.m +9 -9
- package/lib/module/ios/InspectorModule.swift +63 -63
- package/lib/module/ios/Shaders.metal +190 -190
- package/lib/module/ios/WeatherFrameProcessorModule.m +15 -15
- package/lib/module/ios/WeatherFrameProcessorModule.swift +103 -103
- package/lib/module/lib/commonjs/README.md +126 -126
- package/lib/module/lib/commonjs/aguacerowx-react-native.podspec +38 -38
- package/lib/module/lib/commonjs/android/build.gradle +108 -0
- package/lib/module/lib/commonjs/android/src/main/AndroidManifest.xml +7 -0
- package/lib/module/lib/commonjs/babel.config.js.map +1 -1
- package/lib/module/lib/commonjs/index.js.map +1 -1
- package/lib/module/lib/commonjs/ios/AguaceroPackage.m +19 -0
- package/lib/module/lib/commonjs/ios/FragmentUniforms.swift +16 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayer.swift +986 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayerBridge.swift +37 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayerManager.mm +158 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayerView.h +31 -0
- package/lib/module/lib/commonjs/ios/GridRenderLayerView.m +217 -0
- package/lib/module/lib/commonjs/ios/InspectorDataCache.swift +66 -0
- package/lib/module/lib/commonjs/ios/InspectorModule.m +10 -0
- package/lib/module/lib/commonjs/ios/InspectorModule.swift +64 -0
- package/lib/module/lib/commonjs/ios/Shaders.metal +191 -0
- package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.m +16 -0
- package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.swift +104 -0
- package/lib/module/lib/commonjs/ios/compiled-shaders/Shaders-device.metallib +0 -0
- package/lib/module/lib/commonjs/ios/compiled-shaders/Shaders-simulator.metallib +0 -0
- package/lib/module/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
- package/lib/module/lib/commonjs/package.json +72 -72
- package/lib/module/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
- package/lib/module/lib/commonjs/scripts/compile-shaders.js.map +1 -1
- package/lib/module/lib/commonjs/scripts/compile-shaders.sh +39 -0
- package/lib/module/lib/commonjs/src/AguaceroContext.js.map +1 -1
- package/lib/module/lib/commonjs/src/GridRenderLayer.js +0 -2
- package/lib/module/lib/commonjs/src/GridRenderLayer.js.map +1 -1
- package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
- package/lib/module/lib/commonjs/src/MapManager.js +2 -2
- package/lib/module/lib/commonjs/src/MapManager.js.map +1 -1
- package/lib/module/lib/commonjs/src/MapRegistry.js.map +1 -1
- package/lib/module/lib/commonjs/src/StyleApplicator.js +6 -6
- package/lib/module/lib/commonjs/src/StyleApplicator.js.map +1 -1
- package/lib/module/lib/commonjs/src/WeatherLayerManager.js +127 -79
- package/lib/module/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
- package/lib/module/lib/commonjs/tsconfig.json +23 -23
- package/lib/module/package.json +72 -72
- package/lib/module/react-native-builder-bob.config.js.map +1 -1
- package/lib/module/scripts/compile-shaders.js.map +1 -1
- package/lib/module/scripts/compile-shaders.sh +38 -38
- package/lib/module/src/AguaceroContext.js.map +1 -1
- package/lib/module/src/GridRenderLayer.js +0 -2
- package/lib/module/src/GridRenderLayer.js.map +1 -1
- package/lib/module/src/GridRenderLayerNativeComponent.js.map +1 -1
- package/lib/module/src/MapManager.js +2 -2
- package/lib/module/src/MapManager.js.map +1 -1
- package/lib/module/src/MapRegistry.js.map +1 -1
- package/lib/module/src/StyleApplicator.js +6 -6
- package/lib/module/src/StyleApplicator.js.map +1 -1
- package/lib/module/src/WeatherLayerManager.js +127 -79
- package/lib/module/src/WeatherLayerManager.js.map +1 -1
- package/lib/module/tsconfig.json +23 -23
- package/lib/typescript/src/GridRenderLayer.d.ts.map +1 -1
- package/lib/typescript/src/WeatherLayerManager.d.ts.map +1 -1
- package/package.json +72 -72
- package/src/AguaceroContext.js +3 -3
- package/src/GridRenderLayer.js +215 -217
- package/src/GridRenderLayerNativeComponent.ts +15 -15
- package/src/MapManager.js +218 -218
- package/src/MapRegistry.js +34 -34
- package/src/StyleApplicator.js +240 -240
- package/src/WeatherLayerManager.js +1076 -1028
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","useEffect","useState","useRef","forwardRef","useImperativeHandle","View","StyleSheet","Text","Mapbox","THEME_CONFIGS","StyleApplicator","AguaceroContext","mapRegistry","TERRAIN_LAYER_ID","isObject","item","Array","isArray","deepMerge","target","source","output","Object","keys","forEach","key","assign","MapManager","mapboxToken","customStyles","theme","mapOptions","children","ref","mapRef","cameraRef","mapStyle","setMapStyle","flyTo","config","current","moveTo","zoomTo","zoomLevel","duration","setCamera","getCenter","getZoom","getCoordinateFromView","point","getPointInView","coordinate","queryRenderedFeaturesAtPoint","filter","layerIds","getMapRef","getCameraRef","setMap","console","log","contextValue","getMap","_currentCenter","lightTheme","JSON","parse","stringify","light","darkTheme","dark","setAccessToken","error","createElement","style","styles","container","centerContent","errorText","errorSubText","handleCameraChange","event","properties","center","notifyCameraChange","BASE_STYLE_URL","Provider","value","MapView","map","styleURL","scaleBarEnabled","onCameraChanged","Camera","defaultSettings","centerCoordinate","pitch","bearing","minZoomLevel","minZoom","maxZoomLevel","maxZoom","VectorSource","id","url","create","flex","backgroundColor","justifyContent","alignItems","color","fontSize","fontWeight","marginTop"],"sourceRoot":"
|
|
1
|
+
{"version":3,"names":["React","useMemo","useEffect","useState","useRef","forwardRef","useImperativeHandle","View","StyleSheet","Text","Mapbox","THEME_CONFIGS","StyleApplicator","AguaceroContext","mapRegistry","TERRAIN_LAYER_ID","isObject","item","Array","isArray","deepMerge","target","source","output","Object","keys","forEach","key","assign","MapManager","mapboxToken","customStyles","theme","mapOptions","children","ref","mapRef","cameraRef","mapStyle","setMapStyle","flyTo","config","current","moveTo","zoomTo","zoomLevel","duration","setCamera","getCenter","getZoom","getCoordinateFromView","point","getPointInView","coordinate","queryRenderedFeaturesAtPoint","filter","layerIds","getMapRef","getCameraRef","setMap","console","log","contextValue","getMap","_currentCenter","lightTheme","JSON","parse","stringify","light","darkTheme","dark","setAccessToken","error","createElement","style","styles","container","centerContent","errorText","errorSubText","handleCameraChange","event","properties","center","notifyCameraChange","BASE_STYLE_URL","Provider","value","MapView","map","styleURL","scaleBarEnabled","onCameraChanged","Camera","defaultSettings","centerCoordinate","zoom","pitch","bearing","minZoomLevel","minZoom","maxZoomLevel","maxZoom","VectorSource","id","url","create","flex","backgroundColor","justifyContent","alignItems","color","fontSize","fontWeight","marginTop"],"sourceRoot":"..\\..\\..","sources":["src/MapManager.js"],"mappings":"AAAA;;AAEA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,UAAU,EAAEC,mBAAmB,QAAQ,OAAO;AACpG,SAASC,IAAI,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACrD,OAAOC,MAAM,MAAM,gBAAgB;AACnC,SAASC,aAAa,QAAQ,4BAA4B;AAC1D,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,WAAW,QAAQ,eAAe;AAE3C,MAAMC,gBAAgB,GAAG,eAAe;;AAExC;AACA,SAASC,QAAQA,CAACC,IAAI,EAAE;EACpB,OAAQA,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC;AACpE;AAEA,SAASG,SAASA,CAACC,MAAM,EAAEC,MAAM,EAAE;EAC/B,MAAMC,MAAM,GAAG;IAAE,GAAGF;EAAO,CAAC;EAC5B,IAAIL,QAAQ,CAACK,MAAM,CAAC,IAAIL,QAAQ,CAACM,MAAM,CAAC,EAAE;IACtCE,MAAM,CAACC,IAAI,CAACH,MAAM,CAAC,CAACI,OAAO,CAACC,GAAG,IAAI;MAC/B,IAAIX,QAAQ,CAACM,MAAM,CAACK,GAAG,CAAC,CAAC,EAAE;QACvB,IAAI,EAAEA,GAAG,IAAIN,MAAM,CAAC,EAAE;UAClBG,MAAM,CAACI,MAAM,CAACL,MAAM,EAAE;YAAE,CAACI,GAAG,GAAGL,MAAM,CAACK,GAAG;UAAE,CAAC,CAAC;QACjD,CAAC,MAAM;UACHJ,MAAM,CAACI,GAAG,CAA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ACf0D,eAAe,EAAE;MACbC,gBAAgB,EAAE/D,UAAU,CAACmD,MAAM,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC;MAC1DvC,SAAS,EAAEZ,UAAU,CAACgE,IAAI,IAAI,CAAC;MAC/BC,KAAK,EAAEjE,UAAU,CAACiE,KAAK,IAAI,CAAC;MAC5BC,OAAO,EAAElE,UAAU,CAACkE,OAAO,IAAI,CAAC;MAChCC,YAAY,EAAEnE,UAAU,CAACoE,OAAO,IAAI,CAAC;MACrCC,YAAY,EAAErE,UAAU,CAACsE,OAAO,IAAI;IACxC;EAAE,CACL,CAAC,EAEDjE,QAAQ,iBAAItC,KAAA,CAAA0E,aAAA,CAAC9D,eAAe;IAACgE,MAAM,EAAEtC;EAAS,CAAE,CAAC,eAElDtC,KAAA,CAAA0E,aAAA,CAAChE,MAAM,CAAC8F,YAAY;IAACC,EAAE,EAAC,YAAY;IAACC,GAAG,EAAC;EAAuC,CAAC,CAAC,EACjFxE,QACW,CACM,CACxB,CAAC;AAEf,CAAC,CAAC;AAEF,MAAM0C,MAAM,GAAGpE,UAAU,CAACmG,MAAM,CAAC;EAC7B9B,SAAS,EAAE;IACP+B,IAAI,EAAE,CAAC;IACPC,eAAe,EAAE;EACrB,CAAC;EACD/B,aAAa,EAAE;IACXgC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EAChB,CAAC;EACDrB,GAAG,EAAE;IACDkB,IAAI,EAAE;EACV,CAAC;EACD7B,SAAS,EAAE;IACPiC,KAAK,EAAE,SAAS;IAChBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EAChB,CAAC;EACDlC,YAAY,EAAE;IACVgC,KAAK,EAAE,OAAO;IACdC,QAAQ,EAAE,EAAE;IACZE,SAAS,EAAE;EACf;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MapRegistry","constructor","mapRef","listeners","setMap","console","log","getMap","addCameraListener","listener","push","length","removeCameraListener","index","indexOf","splice","notifyCameraChange","center","forEach","mapRegistry"],"sourceRoot":"
|
|
1
|
+
{"version":3,"names":["MapRegistry","constructor","mapRef","listeners","setMap","console","log","getMap","addCameraListener","listener","push","length","removeCameraListener","index","indexOf","splice","notifyCameraChange","center","forEach","mapRegistry"],"sourceRoot":"..\\..\\..","sources":["src/MapRegistry.js"],"mappings":"AAAA;AACA,MAAMA,WAAW,CAAC;EACdC,WAAWA,CAAA,EAAG;IACV,IAAI,CAACC,MAAM,GAAG,IAAI;IAClB,IAAI,CAACC,SAAS,GAAG,EAAE;EACvB;EAEAC,MAAMA,CAACF,MAAM,EAAE;IACXG,OAAO,CAACC,GAAG,CAAC,kCAAkC,EAAE,CAAC,CAACJ,MAAM,CAAC;IACzD,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;EAEAK,MAAMA,CAAA,EAAG;IACL,OAAO,IAAI,CAACL,MAAM;EACtB;EAEAM,iBAAiBA,CAACC,QAAQ,EAAE;IACxB,IAAI,CAACN,SAAS,CAACO,IAAI,CAACD,QAAQ,CAAC;IAC7BJ,OAAO,CAACC,GAAG,CAAC,yCAAyC,EAAE,IAAI,CAACH,SAAS,CAACQ,MAAM,CAAC;EACjF;EAEAC,oBAAoBA,CAACH,QAAQ,EAAE;IAC3B,MAAMI,KAAK,GAAG,IAAI,CAACV,SAAS,CAACW,OAAO,CAACL,QAAQ,CAAC;IAC9C,IAAII,KAAK,GAAG,CAAC,CAAC,EAAE;MACZ,IAAI,CAACV,SAAS,CAACY,MAAM,CAACF,KAAK,EAAE,CAAC,CAAC;MAC/BR,OAAO,CAACC,GAAG,CAAC,2CAA2C,EAAE,IAAI,CAACH,SAAS,CAACQ,MAAM,CAAC;IACnF;EACJ;EAEAK,kBAAkBA,CAACC,MAAM,EAAE;IACvB,IAAI,CAACd,SAAS,CAACe,OAAO,CAACT,QAAQ,IAAIA,QAAQ,CAACQ,MAAM,CAAC,CAAC;EACxD;AACJ;AAEA,OAAO,MAAME,WAAW,GAAG,IAAInB,WAAW,CAAC,CAAC","ignoreList":[]}
|
|
@@ -68,9 +68,9 @@ const STYLE_LAYER_MAP = {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
/**
|
|
72
|
-
* A utility to sanitize 8-digit hex colors (#rrggbbaa) to 6-digit hex (#rrggbb)
|
|
73
|
-
* as required by some Mapbox properties.
|
|
71
|
+
/**
|
|
72
|
+
* A utility to sanitize 8-digit hex colors (#rrggbbaa) to 6-digit hex (#rrggbb)
|
|
73
|
+
* as required by some Mapbox properties.
|
|
74
74
|
*/
|
|
75
75
|
function sanitizeColor(color) {
|
|
76
76
|
if (typeof color === 'string' && color.startsWith('#') && color.length === 9) {
|
|
@@ -79,9 +79,9 @@ function sanitizeColor(color) {
|
|
|
79
79
|
return color;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
/**
|
|
83
|
-
* Renders a set of Mapbox layers with styles derived from a theme object.
|
|
84
|
-
* This is the declarative, React Native equivalent of `applyStyleCustomizations`.
|
|
82
|
+
/**
|
|
83
|
+
* Renders a set of Mapbox layers with styles derived from a theme object.
|
|
84
|
+
* This is the declarative, React Native equivalent of `applyStyleCustomizations`.
|
|
85
85
|
*/
|
|
86
86
|
export const StyleApplicator = ({
|
|
87
87
|
styles
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Mapbox","STYLE_LAYER_MAP","landColor","layerId","oceanColor","waterDepth","nationalPark","roads","airports","countries","states","counties","waterways","continents","countriesLabels","statesLabels","citiesMajor","citiesMinor","airportsLabels","poi","waterLabels","naturalLabels","subdivisionLabels","sanitizeColor","color","startsWith","length","substring","StyleApplicator","styles","landOcean","transportation","boundaries","waterFeatures","labels","terrain","getLineStyles","config","dashArray","dashed","dotted","solid","visibility","visible","lineColor","lineWidth","width","lineDasharray","lineType","getSymbolStyles","textColor","textHaloColor","outlineColor","textHaloWidth","outlineWidth","textSize","fontSize","textFont","fontFamily","createElement","Fragment","BackgroundLayer","id","existing","style","backgroundColor","FillLayer","fillColor","LineLayer","SymbolLayer","cities","major","minor","Terrain","HillshadeLayer","sourceID","exaggeration","hillshadeExaggeration","intensity","hillshadeShadowColor","shadowColor","hillshadeHighlightColor","highlightColor","hillshadeAccentColor","accentColor"],"sourceRoot":"
|
|
1
|
+
{"version":3,"names":["React","Mapbox","STYLE_LAYER_MAP","landColor","layerId","oceanColor","waterDepth","nationalPark","roads","airports","countries","states","counties","waterways","continents","countriesLabels","statesLabels","citiesMajor","citiesMinor","airportsLabels","poi","waterLabels","naturalLabels","subdivisionLabels","sanitizeColor","color","startsWith","length","substring","StyleApplicator","styles","landOcean","transportation","boundaries","waterFeatures","labels","terrain","getLineStyles","config","dashArray","dashed","dotted","solid","visibility","visible","lineColor","lineWidth","width","lineDasharray","lineType","getSymbolStyles","textColor","textHaloColor","outlineColor","textHaloWidth","outlineWidth","textSize","fontSize","textFont","fontFamily","createElement","Fragment","BackgroundLayer","id","existing","style","backgroundColor","FillLayer","fillColor","LineLayer","SymbolLayer","cities","major","minor","Terrain","HillshadeLayer","sourceID","exaggeration","hillshadeExaggeration","intensity","hillshadeShadowColor","shadowColor","hillshadeHighlightColor","highlightColor","hillshadeAccentColor","accentColor"],"sourceRoot":"..\\..\\..","sources":["src/StyleApplicator.js"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,gBAAgB;;AAEnC;AACA,MAAMC,eAAe,GAAG;EACpB;EACAC,SAAS,EAAE;IAAEC,OAAO,EAAE;EAAa,CAAC;EACpCC,UAAU,EAAE;IAAED,OAAO,EAAE;EAAc,CAAC;EACtCE,UAAU,EAAE;IAAEF,OAAO,EAAE;EAAoB,CAAC;EAC5CG,YAAY,EAAE;IAAEH,OAAO,EAAE;EAAsB,CAAC;EAEhD;EACAI,KAAK,EAAE;IAAEJ,OAAO,EAAE;EAAc,CAAC;EACjCK,QAAQ,EAAE;IAAEL,OAAO,EAAE;EAAiB,CAAC;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e,CAACf,MAAM,CAACZ,iBAAiB;EAAE,CACpD,CACH,CACL,EAGAa,OAAO,IAAIA,OAAO,CAACQ,OAAO,IAAI3C,MAAM,CAACyE,OAAO,IAAIzE,MAAM,CAAC0E,cAAc,iBAClE3E,KAAA,CAAA4D,aAAA,CAAA5D,KAAA,CAAA6D,QAAA,qBACI7D,KAAA,CAAA4D,aAAA,CAAC3D,MAAM,CAACyE,OAAO;IACXE,QAAQ,EAAC,YAAY;IACrBX,KAAK,EAAE;MAAEY,YAAY,EAAE;IAAE;EAAE,CAC9B,CAAC,eACF7E,KAAA,CAAA4D,aAAA,CAAC3D,MAAM,CAAC0E,cAAc;IAClBZ,EAAE,EAAC,WAAW;IACda,QAAQ,EAAC,YAAY;IACrBX,KAAK,EAAE;MACHa,qBAAqB,EAAE1C,OAAO,CAAC2C,SAAS;MACxCC,oBAAoB,EAAExD,aAAa,CAACY,OAAO,CAAC6C,WAAW,CAAC;MACxDC,uBAAuB,EAAE1D,aAAa,CAACY,OAAO,CAAC+C,cAAc,CAAC;MAC9DC,oBAAoB,EAAE5D,aAAa,CAACY,OAAO,CAACiD,WAAW;IAC3D;EAAE,CACL,CACH,CAER,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -27,8 +27,8 @@ const {
|
|
|
27
27
|
InspectorModule
|
|
28
28
|
} = NativeModules;
|
|
29
29
|
|
|
30
|
-
/**
|
|
31
|
-
* A helper function to generate the raw RGBA byte buffer for the colormap texture.
|
|
30
|
+
/**
|
|
31
|
+
* A helper function to generate the raw RGBA byte buffer for the colormap texture.
|
|
32
32
|
*/
|
|
33
33
|
const _generateColormapBytes = colormap => {
|
|
34
34
|
const width = 256;
|
|
@@ -171,19 +171,14 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
171
171
|
},
|
|
172
172
|
setAutoRefresh,
|
|
173
173
|
refreshData: () => {
|
|
174
|
-
console.log('[WeatherLayerManager RN] Manual data refresh triggered.');
|
|
175
|
-
// Call the internal update function, which is already in scope
|
|
176
174
|
_checkForUpdates();
|
|
177
175
|
}
|
|
178
176
|
};
|
|
179
177
|
}, [core, autoRefreshInterval, _checkForUpdates]);
|
|
180
|
-
const preloadAllFramesToDisk = state => {
|
|
178
|
+
const preloadAllFramesToDisk = async state => {
|
|
181
179
|
if (hasPreloadedRef.current) {
|
|
182
|
-
console.log('✅ [Preload] Gating preload; already initiated for this dataset.');
|
|
183
180
|
return;
|
|
184
181
|
}
|
|
185
|
-
hasPreloadedRef.current = true;
|
|
186
|
-
console.log('🚀 [Preload] Initiating parallel preload for new dataset...');
|
|
187
182
|
const {
|
|
188
183
|
isMRMS,
|
|
189
184
|
model,
|
|
@@ -197,12 +192,24 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
197
192
|
mrmsTimestamp
|
|
198
193
|
} = state;
|
|
199
194
|
|
|
200
|
-
//
|
|
195
|
+
// CRITICAL: Don't start preloading if we don't have a valid current frame
|
|
196
|
+
if (isMRMS && (mrmsTimestamp == null || !availableTimestamps || availableTimestamps.length === 0)) {
|
|
197
|
+
hasPreloadedRef.current = false;
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
if (!isMRMS && (forecastHour == null || !availableHours || availableHours.length === 0)) {
|
|
201
|
+
hasPreloadedRef.current = false;
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// Only mark as "has preloaded" after validation passes
|
|
206
|
+
hasPreloadedRef.current = true;
|
|
207
|
+
|
|
208
|
+
// Fix the current forecast hour if it's invalid for this variable/model combo
|
|
201
209
|
let effectiveForecastHour = forecastHour;
|
|
202
210
|
if (!isMRMS && variable === 'ptypeRefl' && model === 'hrrr' && forecastHour === 0) {
|
|
203
211
|
const validHours = availableHours.filter(hour => hour !== 0);
|
|
204
212
|
effectiveForecastHour = validHours.length > 0 ? validHours[0] : 0;
|
|
205
|
-
console.log(`⚠️ [Preload] Correcting invalid hour 0 to ${effectiveForecastHour} for HRRR ptypeRefl`);
|
|
206
213
|
}
|
|
207
214
|
if (!cachedGeometry.current || !cachedColormap.current) {
|
|
208
215
|
const gridModel = isMRMS ? 'mrms' : model;
|
|
@@ -223,13 +230,7 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
223
230
|
const finalColormap = core._convertColormapUnits(colormap, baseUnit, toUnit);
|
|
224
231
|
let dataRange;
|
|
225
232
|
if (variable === 'ptypeRefl' || variable === 'ptypeRate') {
|
|
226
|
-
|
|
227
|
-
console.log('🔧 Using MRMS ptype data range: 5-380');
|
|
228
|
-
dataRange = [5, 380];
|
|
229
|
-
} else {
|
|
230
|
-
console.log('🔧 Using Model ptype data range: 5-380');
|
|
231
|
-
dataRange = [5, 380];
|
|
232
|
-
}
|
|
233
|
+
dataRange = isMRMS ? [5, 380] : [5, 380];
|
|
233
234
|
} else {
|
|
234
235
|
dataRange = [finalColormap[0], finalColormap[finalColormap.length - 2]];
|
|
235
236
|
}
|
|
@@ -254,20 +255,19 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
254
255
|
}
|
|
255
256
|
const allFrames = isMRMS ? availableTimestamps : filteredHours;
|
|
256
257
|
if (!allFrames || allFrames.length === 0) {
|
|
257
|
-
console.warn('🟡 [preloadAllFramesToDisk] No frames available to download.');
|
|
258
258
|
return;
|
|
259
259
|
}
|
|
260
260
|
const currentFrame = isMRMS ? mrmsTimestamp : effectiveForecastHour;
|
|
261
261
|
|
|
262
|
-
//
|
|
262
|
+
// Double-check currentFrame is valid
|
|
263
|
+
if (currentFrame == null) {
|
|
264
|
+
hasPreloadedRef.current = false;
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
// Reverse the frame order to load from last to first
|
|
263
269
|
const reversedFrames = [...allFrames].reverse();
|
|
264
270
|
const framesToPreload = reversedFrames.filter(frame => frame !== currentFrame);
|
|
265
|
-
|
|
266
|
-
// The final array will process the current frame first, then the rest in reverse chronological order.
|
|
267
|
-
const prioritizedFrames = [currentFrame, ...framesToPreload];
|
|
268
|
-
// --- END EDIT ---
|
|
269
|
-
|
|
270
|
-
console.log(`[Preload] Prioritizing frame: ${currentFrame}. Total frames: ${prioritizedFrames.length}`);
|
|
271
271
|
const {
|
|
272
272
|
corners,
|
|
273
273
|
gridDef
|
|
@@ -276,7 +276,94 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
276
276
|
nx,
|
|
277
277
|
ny
|
|
278
278
|
} = gridDef.grid_params;
|
|
279
|
-
|
|
279
|
+
|
|
280
|
+
// Load the current frame FIRST and WAIT for it before continuing
|
|
281
|
+
const currentCacheKey = isMRMS ? `mrms-${currentFrame}-${variable}` : `${model}-${date}-${run}-${currentFrame}-${variable}`;
|
|
282
|
+
if (!preloadedDataCache.current.has(currentCacheKey)) {
|
|
283
|
+
let resourcePath;
|
|
284
|
+
if (isMRMS) {
|
|
285
|
+
const frameDate = new Date(currentFrame * 1000);
|
|
286
|
+
const y = frameDate.getUTCFullYear();
|
|
287
|
+
const m = (frameDate.getUTCMonth() + 1).toString().padStart(2, '0');
|
|
288
|
+
const d = frameDate.getUTCDate().toString().padStart(2, '0');
|
|
289
|
+
resourcePath = `/grids/mrms/${y}${m}${d}/${currentFrame}/0/${variable}/0`;
|
|
290
|
+
} else {
|
|
291
|
+
resourcePath = `/grids/${model}/${date}/${run}/${currentFrame}/${variable}/0`;
|
|
292
|
+
}
|
|
293
|
+
const url = `${core.baseGridUrl}${resourcePath}?apiKey=${core.apiKey}`;
|
|
294
|
+
const options = {
|
|
295
|
+
url,
|
|
296
|
+
apiKey: core.apiKey,
|
|
297
|
+
bundleId: core.bundleId
|
|
298
|
+
};
|
|
299
|
+
try {
|
|
300
|
+
const result = await WeatherFrameProcessorModule.processFrame(options);
|
|
301
|
+
if (!result || !result.filePath) {
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
const {
|
|
305
|
+
baseUnit
|
|
306
|
+
} = core._getColormapForVariable(variable);
|
|
307
|
+
const toUnit = core._getTargetUnit(baseUnit, units);
|
|
308
|
+
let dataScale = result.scale;
|
|
309
|
+
let dataOffset = result.offset;
|
|
310
|
+
let convertedScale = dataScale;
|
|
311
|
+
let convertedOffset = dataOffset;
|
|
312
|
+
if (baseUnit !== toUnit) {
|
|
313
|
+
const conversionFunc = getUnitConversionFunction(baseUnit, toUnit);
|
|
314
|
+
if (conversionFunc) {
|
|
315
|
+
if (result.scaleType === 'sqrt') {
|
|
316
|
+
const physicalAtOffset = dataOffset * dataOffset;
|
|
317
|
+
const physicalAtOffsetPlusScale = (dataOffset + dataScale) * (dataOffset + dataScale);
|
|
318
|
+
const convertedPhysicalAtOffset = conversionFunc(physicalAtOffset);
|
|
319
|
+
const convertedPhysicalAtOffsetPlusScale = conversionFunc(physicalAtOffsetPlusScale);
|
|
320
|
+
convertedOffset = Math.sqrt(Math.abs(convertedPhysicalAtOffset)) * Math.sign(convertedPhysicalAtOffset);
|
|
321
|
+
const newOffsetPlusScale = Math.sqrt(Math.abs(convertedPhysicalAtOffsetPlusScale)) * Math.sign(convertedPhysicalAtOffsetPlusScale);
|
|
322
|
+
convertedScale = newOffsetPlusScale - convertedOffset;
|
|
323
|
+
} else {
|
|
324
|
+
convertedOffset = conversionFunc(dataOffset);
|
|
325
|
+
const convertedOffsetPlusScale = conversionFunc(dataOffset + dataScale);
|
|
326
|
+
convertedScale = convertedOffsetPlusScale - convertedOffset;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
const frameData = {
|
|
331
|
+
filePath: result.filePath,
|
|
332
|
+
nx,
|
|
333
|
+
ny,
|
|
334
|
+
scale: convertedScale,
|
|
335
|
+
offset: convertedOffset,
|
|
336
|
+
missing: result.missing,
|
|
337
|
+
corners,
|
|
338
|
+
gridDef,
|
|
339
|
+
scaleType: result.scaleType,
|
|
340
|
+
originalScale: result.scale,
|
|
341
|
+
originalOffset: result.offset
|
|
342
|
+
};
|
|
343
|
+
preloadedDataCache.current.set(currentCacheKey, frameData);
|
|
344
|
+
|
|
345
|
+
// Update the GPU with the current frame
|
|
346
|
+
gridLayerRef.current.updateDataTextureFromFile(frameData.filePath, frameData.nx, frameData.ny, frameData.scale, frameData.offset, frameData.missing, frameData.scaleType);
|
|
347
|
+
currentGridDataRef.current = {
|
|
348
|
+
nx: frameData.nx,
|
|
349
|
+
ny: frameData.ny,
|
|
350
|
+
scale: frameData.scale,
|
|
351
|
+
offset: frameData.offset,
|
|
352
|
+
missing: frameData.missing,
|
|
353
|
+
gridDef: frameData.gridDef,
|
|
354
|
+
variable: variable,
|
|
355
|
+
units: units,
|
|
356
|
+
scaleType: frameData.scaleType
|
|
357
|
+
};
|
|
358
|
+
} catch (error) {
|
|
359
|
+
console.warn(`⚠️ [preloadAllFramesToDisk] Failed frame ${currentFrame}:`, error);
|
|
360
|
+
hasPreloadedRef.current = false;
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
// NOW preload the rest of the frames asynchronously
|
|
366
|
+
framesToPreload.forEach(frame => {
|
|
280
367
|
const cacheKey = isMRMS ? `mrms-${frame}-${variable}` : `${model}-${date}-${run}-${frame}-${variable}`;
|
|
281
368
|
if (preloadedDataCache.current.has(cacheKey)) {
|
|
282
369
|
return;
|
|
@@ -342,37 +429,21 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
342
429
|
originalOffset: result.offset
|
|
343
430
|
};
|
|
344
431
|
preloadedDataCache.current.set(cacheKey, frameData);
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
432
|
+
if (Platform.OS === 'ios' && gridLayerRef.current.primeGpuCache) {
|
|
433
|
+
const frameInfoForGpu = {
|
|
434
|
+
[cacheKey]: {
|
|
435
|
+
filePath: frameData.filePath,
|
|
436
|
+
nx: frameData.nx,
|
|
437
|
+
ny: frameData.ny,
|
|
438
|
+
scale: frameData.scale,
|
|
439
|
+
offset: frameData.offset,
|
|
440
|
+
missing: frameData.missing,
|
|
441
|
+
scaleType: frameData.scaleType || 'linear',
|
|
442
|
+
originalScale: frameData.originalScale,
|
|
443
|
+
originalOffset: frameData.originalOffset
|
|
444
|
+
}
|
|
358
445
|
};
|
|
359
|
-
|
|
360
|
-
if (Platform.OS === 'ios' && gridLayerRef.current.primeGpuCache) {
|
|
361
|
-
const frameInfoForGpu = {
|
|
362
|
-
[cacheKey]: {
|
|
363
|
-
filePath: frameData.filePath,
|
|
364
|
-
nx: frameData.nx,
|
|
365
|
-
ny: frameData.ny,
|
|
366
|
-
scale: frameData.scale,
|
|
367
|
-
offset: frameData.offset,
|
|
368
|
-
missing: frameData.missing,
|
|
369
|
-
scaleType: frameData.scaleType || 'linear',
|
|
370
|
-
originalScale: frameData.originalScale,
|
|
371
|
-
originalOffset: frameData.originalOffset
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
gridLayerRef.current.primeGpuCache(frameInfoForGpu);
|
|
375
|
-
}
|
|
446
|
+
gridLayerRef.current.primeGpuCache(frameInfoForGpu);
|
|
376
447
|
}
|
|
377
448
|
}).catch(error => {
|
|
378
449
|
console.warn(`⚠️ [preloadAllFramesToDisk] Failed frame ${frame}:`, error);
|
|
@@ -422,11 +493,6 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
422
493
|
units: units,
|
|
423
494
|
scaleType: cachedData.scaleType
|
|
424
495
|
};
|
|
425
|
-
console.log('📱 [iOS] Updated currentGridDataRef for inspector:', {
|
|
426
|
-
scale: cachedData.scale,
|
|
427
|
-
offset: cachedData.offset,
|
|
428
|
-
scaleType: cachedData.scaleType // ADD THIS
|
|
429
|
-
});
|
|
430
496
|
}
|
|
431
497
|
|
|
432
498
|
// Now call setActiveFrame (which will async update the native cache)
|
|
@@ -435,8 +501,6 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
435
501
|
}
|
|
436
502
|
const cachedData = preloadedDataCache.current.get(cacheKey);
|
|
437
503
|
if (!cachedData) {
|
|
438
|
-
const timeKey = isMRMS ? `timestamp ${mrmsTimestamp}` : `hour +${forecastHour}`;
|
|
439
|
-
console.log(`⏳ [updateGPUWithCachedData] Frame not ready yet for ${timeKey}. Still preloading...`); // CHANGED
|
|
440
504
|
return false;
|
|
441
505
|
}
|
|
442
506
|
if (!gridLayerRef.current) {
|
|
@@ -545,7 +609,6 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
545
609
|
|
|
546
610
|
// ADD THIS: Check if we have valid data before attempting inspection
|
|
547
611
|
if (!currentGridDataRef.current) {
|
|
548
|
-
console.log('🔍 [Inspector] No grid data available');
|
|
549
612
|
return null;
|
|
550
613
|
}
|
|
551
614
|
try {
|
|
@@ -567,7 +630,6 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
567
630
|
const finalColormap = core._convertColormapUnits(colormap, baseUnit, displayUnit);
|
|
568
631
|
const minThreshold = finalColormap[0];
|
|
569
632
|
if (value < minThreshold) {
|
|
570
|
-
console.log('🔍 [Inspector] Rejected: below threshold'); // ADD THIS LOG
|
|
571
633
|
return null;
|
|
572
634
|
}
|
|
573
635
|
|
|
@@ -617,7 +679,6 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
617
679
|
core.mrmsStatus = mrmsStatus;
|
|
618
680
|
core._emitStateChange(); // Update UI slider without changing selection
|
|
619
681
|
|
|
620
|
-
console.log(`[Auto-Refresh] Preloading ${newTimestampsToPreload.length} new MRMS frames.`);
|
|
621
682
|
const {
|
|
622
683
|
corners,
|
|
623
684
|
gridDef
|
|
@@ -696,12 +757,7 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
696
757
|
console.warn('⚠️ [useEffect] Core is not available yet');
|
|
697
758
|
return;
|
|
698
759
|
}
|
|
699
|
-
|
|
700
|
-
// --- REPLACE THIS ENTIRE FUNCTION ---
|
|
701
760
|
const handleStateChange = async newState => {
|
|
702
|
-
// --- FIX 1: Notify the parent component IMMEDIATELY ---
|
|
703
|
-
// This ensures the parent UI (like sliders) always gets the latest state,
|
|
704
|
-
// including updated lists of available hours or timestamps.
|
|
705
761
|
props.onStateChange?.(newState);
|
|
706
762
|
if (!previousStateRef.current) {
|
|
707
763
|
previousStateRef.current = core.state;
|
|
@@ -713,12 +769,7 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
713
769
|
const stateKey = `${newState.model}-${newState.variable}-${newState.date}-${newState.run}-${newState.forecastHour}-${newState.units}-${newState.mrmsTimestamp}`;
|
|
714
770
|
const isOpacityOnlyChange = hasInitialLoad.current && newState.opacity !== renderProps.opacity && newState.variable === previousStateRef.current?.variable && newState.forecastHour === previousStateRef.current?.forecastHour && newState.mrmsTimestamp === previousStateRef.current?.mrmsTimestamp && newState.model === previousStateRef.current?.model && newState.units === previousStateRef.current?.units;
|
|
715
771
|
const isPlayStateOnlyChange = hasInitialLoad.current && newState.isPlaying !== previousStateRef.current?.isPlaying && newState.variable === previousStateRef.current?.variable && newState.forecastHour === previousStateRef.current?.forecastHour && newState.mrmsTimestamp === previousStateRef.current?.mrmsTimestamp && newState.model === previousStateRef.current?.model && newState.units === previousStateRef.current?.units && newState.opacity === previousStateRef.current?.opacity;
|
|
716
|
-
|
|
717
|
-
// This gate now correctly prevents only redundant *internal* processing.
|
|
718
|
-
// The parent has already been notified.
|
|
719
772
|
if (!isOpacityOnlyChange && !isPlayStateOnlyChange && lastProcessedState.current === stateKey) {
|
|
720
|
-
// --- FIX 2: Update the previous state ref before returning ---
|
|
721
|
-
// This is critical to prevent stale comparisons on the next state change event.
|
|
722
773
|
previousStateRef.current = newState;
|
|
723
774
|
return;
|
|
724
775
|
}
|
|
@@ -908,10 +959,7 @@ export const WeatherLayerManager = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
908
959
|
core.off('map:move', handleMapMove);
|
|
909
960
|
};
|
|
910
961
|
}, [inspectorEnabled, onInspect, core, context]);
|
|
911
|
-
|
|
912
|
-
// Add this new useEffect after the existing inspector useEffect
|
|
913
962
|
useEffect(() => {
|
|
914
|
-
// Trigger re-inspection when state changes (variable, model, forecast hour, etc.)
|
|
915
963
|
if (!core || !inspectorEnabled) {
|
|
916
964
|
return;
|
|
917
965
|
}
|