@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","_interopRequireWildcard","require","_reactNative","_maps","_interopRequireDefault","_javascriptSdk","_StyleApplicator","_AguaceroContext","_MapRegistry","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TERRAIN_LAYER_ID","isObject","item","Array","isArray","deepMerge","target","source","output","keys","forEach","key","assign","MapManager","exports","forwardRef","mapboxToken","customStyles","theme","mapOptions","children","ref","mapRef","useRef","cameraRef","mapStyle","setMapStyle","useState","useImperativeHandle","flyTo","config","current","moveTo","zoomTo","zoomLevel","duration","setCamera","getCenter","getZoom","getCoordinateFromView","point","getPointInView","coordinate","queryRenderedFeaturesAtPoint","filter","layerIds","getMapRef","getCameraRef","useEffect","mapRegistry","setMap","console","log","contextValue","useMemo","getMap","_currentCenter","lightTheme","JSON","parse","stringify","THEME_CONFIGS","light","darkTheme","dark","Mapbox","setAccessToken","error","createElement","View","style","styles","container","centerContent","Text","errorText","errorSubText","handleCameraChange","event","properties","center","notifyCameraChange","BASE_STYLE_URL","AguaceroContext","Provider","value","MapView","map","styleURL","scaleBarEnabled","onCameraChanged","Camera","defaultSettings","centerCoordinate","pitch","bearing","minZoomLevel","minZoom","maxZoomLevel","maxZoom","StyleApplicator","VectorSource","id","url","StyleSheet","create","flex","backgroundColor","justifyContent","alignItems","color","fontSize","fontWeight","marginTop"],"sourceRoot":"
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_maps","_interopRequireDefault","_javascriptSdk","_StyleApplicator","_AguaceroContext","_MapRegistry","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TERRAIN_LAYER_ID","isObject","item","Array","isArray","deepMerge","target","source","output","keys","forEach","key","assign","MapManager","exports","forwardRef","mapboxToken","customStyles","theme","mapOptions","children","ref","mapRef","useRef","cameraRef","mapStyle","setMapStyle","useState","useImperativeHandle","flyTo","config","current","moveTo","zoomTo","zoomLevel","duration","setCamera","getCenter","getZoom","getCoordinateFromView","point","getPointInView","coordinate","queryRenderedFeaturesAtPoint","filter","layerIds","getMapRef","getCameraRef","useEffect","mapRegistry","setMap","console","log","contextValue","useMemo","getMap","_currentCenter","lightTheme","JSON","parse","stringify","THEME_CONFIGS","light","darkTheme","dark","Mapbox","setAccessToken","error","createElement","View","style","styles","container","centerContent","Text","errorText","errorSubText","handleCameraChange","event","properties","center","notifyCameraChange","BASE_STYLE_URL","AguaceroContext","Provider","value","MapView","map","styleURL","scaleBarEnabled","onCameraChanged","Camera","defaultSettings","centerCoordinate","zoom","pitch","bearing","minZoomLevel","minZoom","maxZoomLevel","maxZoom","StyleApplicator","VectorSource","id","url","StyleSheet","create","flex","backgroundColor","justifyContent","alignItems","color","fontSize","fontWeight","marginTop"],"sourceRoot":"..\\..\\..","sources":["src/MapManager.js"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAA4C,SAAAG,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,CAAAS,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA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;IACxBC,UAAU,EAAE;EAChB,CAAC;EACDvB,GAAG,EAAE;IACDoB,IAAI,EAAE;EACV,CAAC;EACDhC,SAAS,EAAE;IACPoC,KAAK,EAAE,SAAS;IAChBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EAChB,CAAC;EACDrC,YAAY,EAAE;IACVmC,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","exports"],"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","exports"],"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;AAEO,MAAME,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,IAAInB,WAAW,CAAC,CAAC","ignoreList":[]}
|
|
@@ -78,9 +78,9 @@ const STYLE_LAYER_MAP = {
|
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
/**
|
|
82
|
-
* A utility to sanitize 8-digit hex colors (#rrggbbaa) to 6-digit hex (#rrggbb)
|
|
83
|
-
* as required by some Mapbox properties.
|
|
81
|
+
/**
|
|
82
|
+
* A utility to sanitize 8-digit hex colors (#rrggbbaa) to 6-digit hex (#rrggbb)
|
|
83
|
+
* as required by some Mapbox properties.
|
|
84
84
|
*/
|
|
85
85
|
function sanitizeColor(color) {
|
|
86
86
|
if (typeof color === 'string' && color.startsWith('#') && color.length === 9) {
|
|
@@ -89,9 +89,9 @@ function sanitizeColor(color) {
|
|
|
89
89
|
return color;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
/**
|
|
93
|
-
* Renders a set of Mapbox layers with styles derived from a theme object.
|
|
94
|
-
* This is the declarative, React Native equivalent of `applyStyleCustomizations`.
|
|
92
|
+
/**
|
|
93
|
+
* Renders a set of Mapbox layers with styles derived from a theme object.
|
|
94
|
+
* This is the declarative, React Native equivalent of `applyStyleCustomizations`.
|
|
95
95
|
*/
|
|
96
96
|
const StyleApplicator = ({
|
|
97
97
|
styles
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_maps","e","__esModule","default","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","Mapbox","Terrain","HillshadeLayer","sourceID","exaggeration","hillshadeExaggeration","intensity","hillshadeShadowColor","shadowColor","hillshadeHighlightColor","highlightColor","hillshadeAccentColor","accentColor","exports"],"sourceRoot":"
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_maps","e","__esModule","default","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","Mapbox","Terrain","HillshadeLayer","sourceID","exaggeration","hillshadeExaggeration","intensity","hillshadeShadowColor","shadowColor","hillshadeHighlightColor","highlightColor","hillshadeAccentColor","accentColor","exports"],"sourceRoot":"..\\..\\..","sources":["src/StyleApplicator.js"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAoC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEpC;AACA,MAAMG,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;EACvCM,SAAS,EAAE;IAAEN,OAAO,EAAE;EAAkB,CAAC;EACzCO,MAAM,EAAE;IAAEP,OAAO,EAAE;EAAe,CAAC;EACnCQ,QAAQ,EAAE;IAAER,OAAO,EAAE;EAAiB,CAAC;EACvCS,SAAS,EAAE;IAAET,OAAO,EAAE;EAAiB,CAAC;EAExC;EACAU,UAAU,EAAE;IAAEV,OAAO,EAAE;EAAwB,CAAC;EAChDW,eAAe,EAAE;IAAEX,OAAO,EAAE;EAAsB,CAAC;EACnDY,YAAY,EAAE;IAAEZ,OAAO,EAAE;EAAoB,CAAC;EAC9Ca,WAAW,EAAE;IAAEb,OAAO,EAAE;EAAyB,CAAC;EAClDc,WAAW,EAAE;IAAEd,OAAO,EAAE;EAAyB,CAAC;EAClDe,cAAc,EAAE;IAAEf,OAAO,EAAE;EAAsB,CAAC;EAClDgB,GAAG,EAAE;IAAEhB,OAAO,EAAE;EAAkB,CAAC;EACn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D,eAAe,CAACqB,iBAAiB,CAACnB,OAAQ;IAC9C4D,QAAQ,EAAE,IAAK,CAAC;IAAA;IAChBC,KAAK,EAAEf,eAAe,CAACf,MAAM,CAACZ,iBAAiB;EAAE,CACpD,CACH,CACL,EAGAa,OAAO,IAAIA,OAAO,CAACQ,OAAO,IAAI8B,aAAM,CAACC,OAAO,IAAID,aAAM,CAACE,cAAc,iBAClEjF,MAAA,CAAAM,OAAA,CAAA2D,aAAA,CAAAjE,MAAA,CAAAM,OAAA,CAAA4D,QAAA,qBACIlE,MAAA,CAAAM,OAAA,CAAA2D,aAAA,CAAC9D,KAAA,CAAAG,OAAM,CAAC0E,OAAO;IACXE,QAAQ,EAAC,YAAY;IACrBZ,KAAK,EAAE;MAAEa,YAAY,EAAE;IAAE;EAAE,CAC9B,CAAC,eACFnF,MAAA,CAAAM,OAAA,CAAA2D,aAAA,CAAC9D,KAAA,CAAAG,OAAM,CAAC2E,cAAc;IAClBb,EAAE,EAAC,WAAW;IACdc,QAAQ,EAAC,YAAY;IACrBZ,KAAK,EAAE;MACHc,qBAAqB,EAAE3C,OAAO,CAAC4C,SAAS;MACxCC,oBAAoB,EAAEzD,aAAa,CAACY,OAAO,CAAC8C,WAAW,CAAC;MACxDC,uBAAuB,EAAE3D,aAAa,CAACY,OAAO,CAACgD,cAAc,CAAC;MAC9DC,oBAAoB,EAAE7D,aAAa,CAACY,OAAO,CAACkD,WAAW;IAC3D;EAAE,CACL,CACH,CAER,CAAC;AAEX,CAAC;AAACC,OAAA,CAAA1D,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -53,8 +53,8 @@ const {
|
|
|
53
53
|
InspectorModule
|
|
54
54
|
} = _reactNative.NativeModules;
|
|
55
55
|
|
|
56
|
-
/**
|
|
57
|
-
* A helper function to generate the raw RGBA byte buffer for the colormap texture.
|
|
56
|
+
/**
|
|
57
|
+
* A helper function to generate the raw RGBA byte buffer for the colormap texture.
|
|
58
58
|
*/
|
|
59
59
|
const _generateColormapBytes = colormap => {
|
|
60
60
|
const width = 256;
|
|
@@ -197,19 +197,14 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
197
197
|
},
|
|
198
198
|
setAutoRefresh,
|
|
199
199
|
refreshData: () => {
|
|
200
|
-
console.log('[WeatherLayerManager RN] Manual data refresh triggered.');
|
|
201
|
-
// Call the internal update function, which is already in scope
|
|
202
200
|
_checkForUpdates();
|
|
203
201
|
}
|
|
204
202
|
};
|
|
205
203
|
}, [core, autoRefreshInterval, _checkForUpdates]);
|
|
206
|
-
const preloadAllFramesToDisk = state => {
|
|
204
|
+
const preloadAllFramesToDisk = async state => {
|
|
207
205
|
if (hasPreloadedRef.current) {
|
|
208
|
-
console.log('✅ [Preload] Gating preload; already initiated for this dataset.');
|
|
209
206
|
return;
|
|
210
207
|
}
|
|
211
|
-
hasPreloadedRef.current = true;
|
|
212
|
-
console.log('🚀 [Preload] Initiating parallel preload for new dataset...');
|
|
213
208
|
const {
|
|
214
209
|
isMRMS,
|
|
215
210
|
model,
|
|
@@ -223,12 +218,24 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
223
218
|
mrmsTimestamp
|
|
224
219
|
} = state;
|
|
225
220
|
|
|
226
|
-
//
|
|
221
|
+
// CRITICAL: Don't start preloading if we don't have a valid current frame
|
|
222
|
+
if (isMRMS && (mrmsTimestamp == null || !availableTimestamps || availableTimestamps.length === 0)) {
|
|
223
|
+
hasPreloadedRef.current = false;
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
if (!isMRMS && (forecastHour == null || !availableHours || availableHours.length === 0)) {
|
|
227
|
+
hasPreloadedRef.current = false;
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// Only mark as "has preloaded" after validation passes
|
|
232
|
+
hasPreloadedRef.current = true;
|
|
233
|
+
|
|
234
|
+
// Fix the current forecast hour if it's invalid for this variable/model combo
|
|
227
235
|
let effectiveForecastHour = forecastHour;
|
|
228
236
|
if (!isMRMS && variable === 'ptypeRefl' && model === 'hrrr' && forecastHour === 0) {
|
|
229
237
|
const validHours = availableHours.filter(hour => hour !== 0);
|
|
230
238
|
effectiveForecastHour = validHours.length > 0 ? validHours[0] : 0;
|
|
231
|
-
console.log(`⚠️ [Preload] Correcting invalid hour 0 to ${effectiveForecastHour} for HRRR ptypeRefl`);
|
|
232
239
|
}
|
|
233
240
|
if (!cachedGeometry.current || !cachedColormap.current) {
|
|
234
241
|
const gridModel = isMRMS ? 'mrms' : model;
|
|
@@ -249,13 +256,7 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
249
256
|
const finalColormap = core._convertColormapUnits(colormap, baseUnit, toUnit);
|
|
250
257
|
let dataRange;
|
|
251
258
|
if (variable === 'ptypeRefl' || variable === 'ptypeRate') {
|
|
252
|
-
|
|
253
|
-
console.log('🔧 Using MRMS ptype data range: 5-380');
|
|
254
|
-
dataRange = [5, 380];
|
|
255
|
-
} else {
|
|
256
|
-
console.log('🔧 Using Model ptype data range: 5-380');
|
|
257
|
-
dataRange = [5, 380];
|
|
258
|
-
}
|
|
259
|
+
dataRange = isMRMS ? [5, 380] : [5, 380];
|
|
259
260
|
} else {
|
|
260
261
|
dataRange = [finalColormap[0], finalColormap[finalColormap.length - 2]];
|
|
261
262
|
}
|
|
@@ -280,20 +281,19 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
280
281
|
}
|
|
281
282
|
const allFrames = isMRMS ? availableTimestamps : filteredHours;
|
|
282
283
|
if (!allFrames || allFrames.length === 0) {
|
|
283
|
-
console.warn('🟡 [preloadAllFramesToDisk] No frames available to download.');
|
|
284
284
|
return;
|
|
285
285
|
}
|
|
286
286
|
const currentFrame = isMRMS ? mrmsTimestamp : effectiveForecastHour;
|
|
287
287
|
|
|
288
|
-
//
|
|
288
|
+
// Double-check currentFrame is valid
|
|
289
|
+
if (currentFrame == null) {
|
|
290
|
+
hasPreloadedRef.current = false;
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// Reverse the frame order to load from last to first
|
|
289
295
|
const reversedFrames = [...allFrames].reverse();
|
|
290
296
|
const framesToPreload = reversedFrames.filter(frame => frame !== currentFrame);
|
|
291
|
-
|
|
292
|
-
// The final array will process the current frame first, then the rest in reverse chronological order.
|
|
293
|
-
const prioritizedFrames = [currentFrame, ...framesToPreload];
|
|
294
|
-
// --- END EDIT ---
|
|
295
|
-
|
|
296
|
-
console.log(`[Preload] Prioritizing frame: ${currentFrame}. Total frames: ${prioritizedFrames.length}`);
|
|
297
297
|
const {
|
|
298
298
|
corners,
|
|
299
299
|
gridDef
|
|
@@ -302,7 +302,94 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
302
302
|
nx,
|
|
303
303
|
ny
|
|
304
304
|
} = gridDef.grid_params;
|
|
305
|
-
|
|
305
|
+
|
|
306
|
+
// Load the current frame FIRST and WAIT for it before continuing
|
|
307
|
+
const currentCacheKey = isMRMS ? `mrms-${currentFrame}-${variable}` : `${model}-${date}-${run}-${currentFrame}-${variable}`;
|
|
308
|
+
if (!preloadedDataCache.current.has(currentCacheKey)) {
|
|
309
|
+
let resourcePath;
|
|
310
|
+
if (isMRMS) {
|
|
311
|
+
const frameDate = new Date(currentFrame * 1000);
|
|
312
|
+
const y = frameDate.getUTCFullYear();
|
|
313
|
+
const m = (frameDate.getUTCMonth() + 1).toString().padStart(2, '0');
|
|
314
|
+
const d = frameDate.getUTCDate().toString().padStart(2, '0');
|
|
315
|
+
resourcePath = `/grids/mrms/${y}${m}${d}/${currentFrame}/0/${variable}/0`;
|
|
316
|
+
} else {
|
|
317
|
+
resourcePath = `/grids/${model}/${date}/${run}/${currentFrame}/${variable}/0`;
|
|
318
|
+
}
|
|
319
|
+
const url = `${core.baseGridUrl}${resourcePath}?apiKey=${core.apiKey}`;
|
|
320
|
+
const options = {
|
|
321
|
+
url,
|
|
322
|
+
apiKey: core.apiKey,
|
|
323
|
+
bundleId: core.bundleId
|
|
324
|
+
};
|
|
325
|
+
try {
|
|
326
|
+
const result = await WeatherFrameProcessorModule.processFrame(options);
|
|
327
|
+
if (!result || !result.filePath) {
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
const {
|
|
331
|
+
baseUnit
|
|
332
|
+
} = core._getColormapForVariable(variable);
|
|
333
|
+
const toUnit = core._getTargetUnit(baseUnit, units);
|
|
334
|
+
let dataScale = result.scale;
|
|
335
|
+
let dataOffset = result.offset;
|
|
336
|
+
let convertedScale = dataScale;
|
|
337
|
+
let convertedOffset = dataOffset;
|
|
338
|
+
if (baseUnit !== toUnit) {
|
|
339
|
+
const conversionFunc = (0, _javascriptSdk.getUnitConversionFunction)(baseUnit, toUnit);
|
|
340
|
+
if (conversionFunc) {
|
|
341
|
+
if (result.scaleType === 'sqrt') {
|
|
342
|
+
const physicalAtOffset = dataOffset * dataOffset;
|
|
343
|
+
const physicalAtOffsetPlusScale = (dataOffset + dataScale) * (dataOffset + dataScale);
|
|
344
|
+
const convertedPhysicalAtOffset = conversionFunc(physicalAtOffset);
|
|
345
|
+
const convertedPhysicalAtOffsetPlusScale = conversionFunc(physicalAtOffsetPlusScale);
|
|
346
|
+
convertedOffset = Math.sqrt(Math.abs(convertedPhysicalAtOffset)) * Math.sign(convertedPhysicalAtOffset);
|
|
347
|
+
const newOffsetPlusScale = Math.sqrt(Math.abs(convertedPhysicalAtOffsetPlusScale)) * Math.sign(convertedPhysicalAtOffsetPlusScale);
|
|
348
|
+
convertedScale = newOffsetPlusScale - convertedOffset;
|
|
349
|
+
} else {
|
|
350
|
+
convertedOffset = conversionFunc(dataOffset);
|
|
351
|
+
const convertedOffsetPlusScale = conversionFunc(dataOffset + dataScale);
|
|
352
|
+
convertedScale = convertedOffsetPlusScale - convertedOffset;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
const frameData = {
|
|
357
|
+
filePath: result.filePath,
|
|
358
|
+
nx,
|
|
359
|
+
ny,
|
|
360
|
+
scale: convertedScale,
|
|
361
|
+
offset: convertedOffset,
|
|
362
|
+
missing: result.missing,
|
|
363
|
+
corners,
|
|
364
|
+
gridDef,
|
|
365
|
+
scaleType: result.scaleType,
|
|
366
|
+
originalScale: result.scale,
|
|
367
|
+
originalOffset: result.offset
|
|
368
|
+
};
|
|
369
|
+
preloadedDataCache.current.set(currentCacheKey, frameData);
|
|
370
|
+
|
|
371
|
+
// Update the GPU with the current frame
|
|
372
|
+
gridLayerRef.current.updateDataTextureFromFile(frameData.filePath, frameData.nx, frameData.ny, frameData.scale, frameData.offset, frameData.missing, frameData.scaleType);
|
|
373
|
+
currentGridDataRef.current = {
|
|
374
|
+
nx: frameData.nx,
|
|
375
|
+
ny: frameData.ny,
|
|
376
|
+
scale: frameData.scale,
|
|
377
|
+
offset: frameData.offset,
|
|
378
|
+
missing: frameData.missing,
|
|
379
|
+
gridDef: frameData.gridDef,
|
|
380
|
+
variable: variable,
|
|
381
|
+
units: units,
|
|
382
|
+
scaleType: frameData.scaleType
|
|
383
|
+
};
|
|
384
|
+
} catch (error) {
|
|
385
|
+
console.warn(`⚠️ [preloadAllFramesToDisk] Failed frame ${currentFrame}:`, error);
|
|
386
|
+
hasPreloadedRef.current = false;
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// NOW preload the rest of the frames asynchronously
|
|
392
|
+
framesToPreload.forEach(frame => {
|
|
306
393
|
const cacheKey = isMRMS ? `mrms-${frame}-${variable}` : `${model}-${date}-${run}-${frame}-${variable}`;
|
|
307
394
|
if (preloadedDataCache.current.has(cacheKey)) {
|
|
308
395
|
return;
|
|
@@ -368,37 +455,21 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
368
455
|
originalOffset: result.offset
|
|
369
456
|
};
|
|
370
457
|
preloadedDataCache.current.set(cacheKey, frameData);
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
458
|
+
if (_reactNative.Platform.OS === 'ios' && gridLayerRef.current.primeGpuCache) {
|
|
459
|
+
const frameInfoForGpu = {
|
|
460
|
+
[cacheKey]: {
|
|
461
|
+
filePath: frameData.filePath,
|
|
462
|
+
nx: frameData.nx,
|
|
463
|
+
ny: frameData.ny,
|
|
464
|
+
scale: frameData.scale,
|
|
465
|
+
offset: frameData.offset,
|
|
466
|
+
missing: frameData.missing,
|
|
467
|
+
scaleType: frameData.scaleType || 'linear',
|
|
468
|
+
originalScale: frameData.originalScale,
|
|
469
|
+
originalOffset: frameData.originalOffset
|
|
470
|
+
}
|
|
384
471
|
};
|
|
385
|
-
|
|
386
|
-
if (_reactNative.Platform.OS === 'ios' && gridLayerRef.current.primeGpuCache) {
|
|
387
|
-
const frameInfoForGpu = {
|
|
388
|
-
[cacheKey]: {
|
|
389
|
-
filePath: frameData.filePath,
|
|
390
|
-
nx: frameData.nx,
|
|
391
|
-
ny: frameData.ny,
|
|
392
|
-
scale: frameData.scale,
|
|
393
|
-
offset: frameData.offset,
|
|
394
|
-
missing: frameData.missing,
|
|
395
|
-
scaleType: frameData.scaleType || 'linear',
|
|
396
|
-
originalScale: frameData.originalScale,
|
|
397
|
-
originalOffset: frameData.originalOffset
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
gridLayerRef.current.primeGpuCache(frameInfoForGpu);
|
|
401
|
-
}
|
|
472
|
+
gridLayerRef.current.primeGpuCache(frameInfoForGpu);
|
|
402
473
|
}
|
|
403
474
|
}).catch(error => {
|
|
404
475
|
console.warn(`⚠️ [preloadAllFramesToDisk] Failed frame ${frame}:`, error);
|
|
@@ -448,11 +519,6 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
448
519
|
units: units,
|
|
449
520
|
scaleType: cachedData.scaleType
|
|
450
521
|
};
|
|
451
|
-
console.log('📱 [iOS] Updated currentGridDataRef for inspector:', {
|
|
452
|
-
scale: cachedData.scale,
|
|
453
|
-
offset: cachedData.offset,
|
|
454
|
-
scaleType: cachedData.scaleType // ADD THIS
|
|
455
|
-
});
|
|
456
522
|
}
|
|
457
523
|
|
|
458
524
|
// Now call setActiveFrame (which will async update the native cache)
|
|
@@ -461,8 +527,6 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
461
527
|
}
|
|
462
528
|
const cachedData = preloadedDataCache.current.get(cacheKey);
|
|
463
529
|
if (!cachedData) {
|
|
464
|
-
const timeKey = isMRMS ? `timestamp ${mrmsTimestamp}` : `hour +${forecastHour}`;
|
|
465
|
-
console.log(`⏳ [updateGPUWithCachedData] Frame not ready yet for ${timeKey}. Still preloading...`); // CHANGED
|
|
466
530
|
return false;
|
|
467
531
|
}
|
|
468
532
|
if (!gridLayerRef.current) {
|
|
@@ -571,7 +635,6 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
571
635
|
|
|
572
636
|
// ADD THIS: Check if we have valid data before attempting inspection
|
|
573
637
|
if (!currentGridDataRef.current) {
|
|
574
|
-
console.log('🔍 [Inspector] No grid data available');
|
|
575
638
|
return null;
|
|
576
639
|
}
|
|
577
640
|
try {
|
|
@@ -593,7 +656,6 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
593
656
|
const finalColormap = core._convertColormapUnits(colormap, baseUnit, displayUnit);
|
|
594
657
|
const minThreshold = finalColormap[0];
|
|
595
658
|
if (value < minThreshold) {
|
|
596
|
-
console.log('🔍 [Inspector] Rejected: below threshold'); // ADD THIS LOG
|
|
597
659
|
return null;
|
|
598
660
|
}
|
|
599
661
|
|
|
@@ -643,7 +705,6 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
643
705
|
core.mrmsStatus = mrmsStatus;
|
|
644
706
|
core._emitStateChange(); // Update UI slider without changing selection
|
|
645
707
|
|
|
646
|
-
console.log(`[Auto-Refresh] Preloading ${newTimestampsToPreload.length} new MRMS frames.`);
|
|
647
708
|
const {
|
|
648
709
|
corners,
|
|
649
710
|
gridDef
|
|
@@ -722,12 +783,7 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
722
783
|
console.warn('⚠️ [useEffect] Core is not available yet');
|
|
723
784
|
return;
|
|
724
785
|
}
|
|
725
|
-
|
|
726
|
-
// --- REPLACE THIS ENTIRE FUNCTION ---
|
|
727
786
|
const handleStateChange = async newState => {
|
|
728
|
-
// --- FIX 1: Notify the parent component IMMEDIATELY ---
|
|
729
|
-
// This ensures the parent UI (like sliders) always gets the latest state,
|
|
730
|
-
// including updated lists of available hours or timestamps.
|
|
731
787
|
props.onStateChange?.(newState);
|
|
732
788
|
if (!previousStateRef.current) {
|
|
733
789
|
previousStateRef.current = core.state;
|
|
@@ -739,12 +795,7 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
739
795
|
const stateKey = `${newState.model}-${newState.variable}-${newState.date}-${newState.run}-${newState.forecastHour}-${newState.units}-${newState.mrmsTimestamp}`;
|
|
740
796
|
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;
|
|
741
797
|
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;
|
|
742
|
-
|
|
743
|
-
// This gate now correctly prevents only redundant *internal* processing.
|
|
744
|
-
// The parent has already been notified.
|
|
745
798
|
if (!isOpacityOnlyChange && !isPlayStateOnlyChange && lastProcessedState.current === stateKey) {
|
|
746
|
-
// --- FIX 2: Update the previous state ref before returning ---
|
|
747
|
-
// This is critical to prevent stale comparisons on the next state change event.
|
|
748
799
|
previousStateRef.current = newState;
|
|
749
800
|
return;
|
|
750
801
|
}
|
|
@@ -934,10 +985,7 @@ const WeatherLayerManager = exports.WeatherLayerManager = /*#__PURE__*/(0, _reac
|
|
|
934
985
|
core.off('map:move', handleMapMove);
|
|
935
986
|
};
|
|
936
987
|
}, [inspectorEnabled, onInspect, core, context]);
|
|
937
|
-
|
|
938
|
-
// Add this new useEffect after the existing inspector useEffect
|
|
939
988
|
(0, _react.useEffect)(() => {
|
|
940
|
-
// Trigger re-inspection when state changes (variable, model, forecast hour, etc.)
|
|
941
989
|
if (!core || !inspectorEnabled) {
|
|
942
990
|
return;
|
|
943
991
|
}
|