@aguacerowx/react-native 0.0.4 → 0.0.7
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 +51 -6
- package/android/build/.transforms/78b892a9dae44f36e51ff0649e9c6e36/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayerView.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderManager.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/WeatherFrameProcessorModule.dex +0 -0
- package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -1
- 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/WeatherFrameProcessorModule.class +0 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +13 -2
- 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/WeatherFrameProcessorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AguaceroPackage.class.uniqueId1 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderManager.class.uniqueId3 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/InspectorModule.class.uniqueId0 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +21 -52
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +13 -2
- package/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +21 -14
- package/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +15 -0
- package/android/src/main/res/raw/fragment_shader.glsl +13 -2
- package/ios/GridRenderLayer.swift +62 -0
- package/ios/GridRenderLayerManager.mm +140 -0
- package/ios/aguacerowx-react-native.podspec +29 -0
- package/lib/commonjs/README.md +61 -0
- package/lib/commonjs/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -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/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 +98 -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_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/AguaceroPackage.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/compileTransaction/stash-dir/GridRenderManager.class.uniqueId3 +0 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/InspectorModule.class.uniqueId0 +0 -0
- package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/lib/commonjs/android/build.gradle +85 -0
- package/lib/commonjs/android/src/main/AndroidManifest.xml +7 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +34 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +608 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +298 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +118 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +64 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +107 -0
- package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +166 -0
- package/lib/commonjs/android/src/main/res/raw/debug_fragment_shader.glsl +13 -0
- package/lib/commonjs/android/src/main/res/raw/debug_vertex_shader.glsl +13 -0
- package/lib/commonjs/android/src/main/res/raw/fragment_shader.glsl +98 -0
- package/lib/commonjs/android/src/main/res/raw/vertex_shader.glsl +20 -0
- package/lib/commonjs/babel.config.js +7 -0
- package/lib/commonjs/babel.config.js.map +1 -0
- package/lib/commonjs/index.js +20 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +73 -0
- package/lib/commonjs/react-native-builder-bob.config.js +13 -0
- package/lib/commonjs/react-native-builder-bob.config.js.map +1 -0
- package/lib/commonjs/src/AguaceroContext.js +11 -0
- package/lib/commonjs/src/AguaceroContext.js.map +1 -0
- package/lib/commonjs/src/GridRenderLayer.js +132 -0
- package/lib/commonjs/src/GridRenderLayer.js.map +1 -0
- package/lib/commonjs/src/GridRenderLayerNativeComponent.js +11 -0
- package/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -0
- package/lib/commonjs/src/MapManager.js +164 -0
- package/lib/commonjs/src/MapManager.js.map +1 -0
- package/lib/commonjs/src/MapRegistry.js +36 -0
- package/lib/commonjs/src/MapRegistry.js.map +1 -0
- package/lib/commonjs/src/StyleApplicator.js +262 -0
- package/lib/commonjs/src/StyleApplicator.js.map +1 -0
- package/lib/commonjs/src/WeatherLayerManager.js +782 -0
- package/lib/commonjs/src/WeatherLayerManager.js.map +1 -0
- package/lib/commonjs/tsconfig.json +24 -0
- package/lib/module/README.md +61 -0
- package/lib/module/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -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/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 +98 -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_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/AguaceroPackage.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/compileTransaction/stash-dir/GridRenderManager.class.uniqueId3 +0 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/InspectorModule.class.uniqueId0 +0 -0
- package/lib/module/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/lib/module/android/build.gradle +85 -0
- package/lib/module/android/src/main/AndroidManifest.xml +7 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +34 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +608 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +298 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +118 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +64 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +107 -0
- package/lib/module/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +166 -0
- package/lib/module/android/src/main/res/raw/debug_fragment_shader.glsl +13 -0
- package/lib/module/android/src/main/res/raw/debug_vertex_shader.glsl +13 -0
- package/lib/module/android/src/main/res/raw/fragment_shader.glsl +98 -0
- package/lib/module/android/src/main/res/raw/vertex_shader.glsl +20 -0
- package/lib/module/babel.config.js +5 -0
- package/lib/module/babel.config.js.map +1 -0
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/lib/commonjs/README.md +61 -0
- package/lib/module/lib/commonjs/android/build.gradle +85 -0
- package/lib/module/lib/commonjs/android/src/main/AndroidManifest.xml +7 -0
- package/lib/module/lib/commonjs/babel.config.js +7 -0
- package/lib/module/lib/commonjs/babel.config.js.map +1 -0
- package/lib/module/lib/commonjs/index.js +20 -0
- package/lib/module/lib/commonjs/index.js.map +1 -0
- package/lib/module/lib/commonjs/package.json +73 -0
- package/lib/module/lib/commonjs/react-native-builder-bob.config.js +13 -0
- package/lib/module/lib/commonjs/react-native-builder-bob.config.js.map +1 -0
- package/lib/module/lib/commonjs/src/AguaceroContext.js +15 -0
- package/lib/module/lib/commonjs/src/AguaceroContext.js.map +1 -0
- package/lib/module/lib/commonjs/src/GridRenderLayer.js +155 -0
- package/lib/module/lib/commonjs/src/GridRenderLayer.js.map +1 -0
- package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js +15 -0
- package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -0
- package/lib/module/lib/commonjs/src/MapManager.js +187 -0
- package/lib/module/lib/commonjs/src/MapManager.js.map +1 -0
- package/lib/module/lib/commonjs/src/MapRegistry.js +36 -0
- package/lib/module/lib/commonjs/src/MapRegistry.js.map +1 -0
- package/lib/module/lib/commonjs/src/StyleApplicator.js +286 -0
- package/lib/module/lib/commonjs/src/StyleApplicator.js.map +1 -0
- package/lib/module/lib/commonjs/src/WeatherLayerManager.js +801 -0
- package/lib/module/lib/commonjs/src/WeatherLayerManager.js.map +1 -0
- package/lib/module/lib/commonjs/tsconfig.json +24 -0
- package/lib/module/package.json +73 -0
- package/lib/module/react-native-builder-bob.config.js +11 -0
- package/lib/module/react-native-builder-bob.config.js.map +1 -0
- package/lib/module/src/AguaceroContext.js +5 -0
- package/lib/module/src/AguaceroContext.js.map +1 -0
- package/lib/module/src/GridRenderLayer.js +125 -0
- package/lib/module/src/GridRenderLayer.js.map +1 -0
- package/lib/module/src/GridRenderLayerNativeComponent.js +5 -0
- package/lib/module/src/GridRenderLayerNativeComponent.js.map +1 -0
- package/lib/module/src/MapManager.js +155 -0
- package/lib/module/src/MapManager.js.map +1 -0
- package/lib/module/src/MapRegistry.js +30 -0
- package/lib/module/src/MapRegistry.js.map +1 -0
- package/lib/module/src/StyleApplicator.js +255 -0
- package/lib/module/src/StyleApplicator.js.map +1 -0
- package/lib/module/src/WeatherLayerManager.js +775 -0
- package/lib/module/src/WeatherLayerManager.js.map +1 -0
- package/lib/module/tsconfig.json +24 -0
- package/lib/typescript/babel.config.d.ts +3 -0
- package/lib/typescript/babel.config.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +3 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/react-native-builder-bob.config.d.ts +6 -0
- package/lib/typescript/react-native-builder-bob.config.d.ts.map +1 -0
- package/lib/typescript/src/AguaceroContext.d.ts +2 -0
- package/lib/typescript/src/AguaceroContext.d.ts.map +1 -0
- package/lib/typescript/src/GridRenderLayer.d.ts +2 -0
- package/lib/typescript/src/GridRenderLayer.d.ts.map +1 -0
- package/lib/typescript/src/GridRenderLayerNativeComponent.d.ts +12 -0
- package/lib/typescript/src/GridRenderLayerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/MapManager.d.ts +8 -0
- package/lib/typescript/src/MapManager.d.ts.map +1 -0
- package/lib/typescript/src/MapRegistry.d.ts +12 -0
- package/lib/typescript/src/MapRegistry.d.ts.map +1 -0
- package/lib/typescript/src/StyleApplicator.d.ts +4 -0
- package/lib/typescript/src/StyleApplicator.d.ts.map +1 -0
- package/lib/typescript/src/WeatherLayerManager.d.ts +2 -0
- package/lib/typescript/src/WeatherLayerManager.d.ts.map +1 -0
- package/package.json +53 -15
- package/src/AguaceroContext.js +0 -4
- package/src/GridRenderLayer.js +0 -121
- package/src/MapManager.js +0 -158
- package/src/MapRegistry.js +0 -35
- package/src/StyleApplicator.js +0 -241
- package/src/WeatherLayerManager.js +0 -754
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_javascriptSdk","_AguaceroContext","_GridRenderLayer","_base64Js","_reactNative","_MapRegistry","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","WeatherFrameProcessorModule","InspectorModule","NativeModules","_generateColormapBytes","colormap","width","data","Uint8Array","stops","reduce","acc","_","value","color","length","minVal","maxVal","hexToRgb","hex","parseInt","slice","g","b","val","lower","upper","j","lowerRgb","upperRgb","rgb","map","c","idx","offset","Math","round","AguaceroCore","prototype","setMapCenter","center","emit","WeatherLayerManager","exports","forwardRef","props","ref","inspectorEnabled","onInspect","apiKey","customColormaps","restProps","context","useContext","AguaceroContext","core","useMemo","gridLayerRef","useRef","currentGridDataRef","preloadedDataCache","Map","preloadingSet","Set","cachedGeometry","cachedColormap","cachedDataRange","hasInitialLoad","lastProcessedState","previousStateRef","renderProps","setRenderProps","useState","opacity","dataRange","useImperativeHandle","play","pause","togglePlay","step","direction","setPlaybackSpeed","speed","setOpacity","setUnits","units","switchMode","options","getAvailableVariables","model","getVariableDisplayName","code","setRun","runString","setState","run","split","newState","setMRMSTimestamp","timestamp","setSmoothing","enabled","current","preloadAllFramesToDisk","state","isMRMS","date","variable","availableHours","availableTimestamps","allFrames","console","warn","corners","gridDef","_getGridCornersAndDef","nx","ny","grid_params","preloadedCount","skippedCount","errorCount","frame","cacheKey","resourcePath","frameDate","Date","y","getUTCFullYear","m","getUTCMonth","toString","padStart","d","getUTCDate","url","baseGridUrl","bundleId","processFrame","error","result","filePath","scale","missing","scaleType","originalScale","originalOffset","mrmsTimestamp","forecastHour","log","updateGPUWithCachedData","cachedData","timeKey","Array","from","keys","updateGeometry","colormapKey","key","baseUnit","_getColormapForVariable","toUnit","_getTargetUnit","finalColormap","_convertColormapUnits","colormapBytes","colormapAsBase64","fromByteArray","updateColormapTexture","prev","updateDataTextureFromFile","dataAsBase64","updateDataTexture","binaryString","atob","uint8Array","charCodeAt","updateDataParameters","handleStateChangeRef","debounceTimeoutRef","useEffect","_emitStateChange","getValueAtPoint","lng","lat","gridIndices","_getGridIndexFromLngLat","getValueAtGridIndex","displayUnit","minThreshold","isFinite","unit","name","lngLat","handleStateChange","stateKey","isOpacityOnlyChange","onStateChange","isUnitsOnlyChange","oldCacheKey","undefined","dataScale","dataOffset","conversionFunc","getUnitConversionFunction","convertedOffset","convertedOffsetPlusScale","newCacheKey","needsFullLoad","clear","cancelAllFrames","gridModel","mrmsDate","Promise","resolve","reject","res","dataToCache","stack","success","stableHandler","clearTimeout","setTimeout","on","off","lastInspectorUpdateRef","INSPECTOR_THROTTLE_MS","handleMapMove","isArray","now","longitude","latitude","payload","getCenter","triggerReinspection","mapRef","mapRegistry","getMap","_currentCenter","then","timer","handleCameraChange","addCameraListener","removeCameraListener","initialize","destroy","createElement","GridRenderLayer","belowID"],"sourceRoot":"..\\..\\..","sources":["src/WeatherLayerManager.js"],"mappings":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OAAO,CAAC,CAAC;IAClB,CAAC;EACL,CAAC,EAAE,CAAC9L,IAAI,CAAC,CAAC;EAEV,oBACIlF,MAAA,CAAAmB,OAAA,CAAA8P,aAAA,CAAC5Q,gBAAA,CAAA6Q,eAAe;IACZzM,GAAG,EAAEW,YAAa;IAClBgB,OAAO,EAAEH,WAAW,CAACG,OAAQ;IAC7BC,SAAS,EAAEJ,WAAW,CAACI,SAAU;IACjC8K,OAAO,EAAC;EAAe,CAC1B,CAAC;AAEV,CAAC,CAAC;AAEF9M,mBAAmB,CAAC8C,qBAAqB,GAAID,OAAO,IAAK;EACrD,IAAI,CAACA,OAAO,IAAI,CAACA,OAAO,CAACtC,MAAM,EAAE;IAC7B8D,OAAO,CAAC4B,KAAK,CAAC,sDAAsD,CAAC;IACrE,OAAO,EAAE;EACb;EACA,MAAMpF,IAAI,GAAG,IAAIlB,2BAAY,CAAC;IAAEY,MAAM,EAAEsC,OAAO,CAACtC;EAAO,CAAC,CAAC;EACzD,OAAOM,IAAI,CAACiC,qBAAqB,CAAC,MAAM,CAAC;AAC7C,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowJs": true,
|
|
4
|
+
"esModuleInterop": true,
|
|
5
|
+
"jsx": "react-native",
|
|
6
|
+
"lib": ["esnext"],
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"resolveJsonModule": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"target": "esnext",
|
|
12
|
+
"declaration": true,
|
|
13
|
+
"declarationMap": true
|
|
14
|
+
},
|
|
15
|
+
"include": ["."],
|
|
16
|
+
"exclude": [
|
|
17
|
+
"node_modules",
|
|
18
|
+
"lib",
|
|
19
|
+
"ios",
|
|
20
|
+
"android",
|
|
21
|
+
"example",
|
|
22
|
+
"**/__tests__"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aguacerowx/react-native",
|
|
3
|
+
"version": "0.0.7",
|
|
4
|
+
"description": "Native weather rendering for React Native",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"author": "Michael Barletta",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"react-native",
|
|
9
|
+
"android",
|
|
10
|
+
"weather",
|
|
11
|
+
"map"
|
|
12
|
+
],
|
|
13
|
+
"main": "lib/commonjs/index.js",
|
|
14
|
+
"module": "lib/module/index.js",
|
|
15
|
+
"react-native": "index.js",
|
|
16
|
+
"source": "index.js",
|
|
17
|
+
"types": "lib/typescript/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"lib",
|
|
20
|
+
"android",
|
|
21
|
+
"ios",
|
|
22
|
+
"cpp",
|
|
23
|
+
"*.podspec",
|
|
24
|
+
"index.js",
|
|
25
|
+
"WeatherLayerManager.js",
|
|
26
|
+
"GridRenderLayer.js",
|
|
27
|
+
"!lib/typescript/example",
|
|
28
|
+
"!**/__tests__",
|
|
29
|
+
"!**/__fixtures__",
|
|
30
|
+
"!**/__mocks__",
|
|
31
|
+
"!lib/**/*.podspec",
|
|
32
|
+
"!lib/**/*.swift",
|
|
33
|
+
"!lib/**/*.mm",
|
|
34
|
+
"!lib/**/*.h"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"clean": "node -e \"require('fs').rmSync('lib', {recursive: true, force: true})\"",
|
|
38
|
+
"build": "npm run clean && bob build",
|
|
39
|
+
"prepare": "npm run build"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@rnmapbox/maps": "*",
|
|
43
|
+
"react": "*",
|
|
44
|
+
"react-native": "*",
|
|
45
|
+
"react-native-device-info": ">=10.0.0"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@aguacerowx/javascript-sdk": "^0.0.7",
|
|
49
|
+
"base64-js": "^1.5.1"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"react-native-builder-bob": "^0.23.2"
|
|
53
|
+
},
|
|
54
|
+
"react-native-builder-bob": {
|
|
55
|
+
"source": ".",
|
|
56
|
+
"output": "lib",
|
|
57
|
+
"targets": [
|
|
58
|
+
"commonjs",
|
|
59
|
+
"module",
|
|
60
|
+
[
|
|
61
|
+
"typescript",
|
|
62
|
+
{
|
|
63
|
+
"project": "tsconfig.json"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"codegenConfig": {
|
|
69
|
+
"name": "AguaceroWxReactNativeSpec",
|
|
70
|
+
"type": "all",
|
|
71
|
+
"jsSrcsDir": "src"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// react-native-builder-bob.config.js
|
|
2
|
+
module.exports = {
|
|
3
|
+
source: '.',
|
|
4
|
+
output: 'lib',
|
|
5
|
+
targets: ['commonjs', 'module',
|
|
6
|
+
// The typescript target is correct and necessary
|
|
7
|
+
['typescript', {
|
|
8
|
+
project: 'tsconfig.json'
|
|
9
|
+
}]]
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=react-native-builder-bob.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["module","exports","source","output","targets","project"],"sourceRoot":"..\\..","sources":["react-native-builder-bob.config.js"],"mappings":"AAAA;AACAA,MAAM,CAACC,OAAO,GAAG;EACfC,MAAM,EAAE,GAAG;EACXC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAE,CACP,UAAU,EACV,QAAQ;EACR;EACA,CAAC,YAAY,EAAE;IAAEC,OAAO,EAAE;EAAgB,CAAC,CAAC;AAEhD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","AguaceroContext","createContext"],"sourceRoot":"..\\..\\..","sources":["src/AguaceroContext.js"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;;AAEzB;AACA,OAAO,MAAMC,eAAe,gBAAGD,KAAK,CAACE,aAAa,CAAC,IAAI,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// packages/react-native/src/GridRenderLayer.js
|
|
2
|
+
|
|
3
|
+
import React, { useRef, useImperativeHandle, forwardRef, useEffect } from 'react';
|
|
4
|
+
import { UIManager, findNodeHandle, requireNativeComponent, StyleSheet, Platform } from 'react-native';
|
|
5
|
+
import GridRenderView from './GridRenderLayerNativeComponent';
|
|
6
|
+
|
|
7
|
+
// This must match the module name exported in the native code
|
|
8
|
+
const NATIVE_COMPONENT_NAME = 'GridRenderLayer';
|
|
9
|
+
if (UIManager.getViewManagerConfig) {
|
|
10
|
+
const allComponents = Object.keys(UIManager).filter(key => !key.startsWith('_') && typeof UIManager[key] !== 'function');
|
|
11
|
+
console.log('📋 Available components:', allComponents.slice(0, 20)); // Show first 20
|
|
12
|
+
}
|
|
13
|
+
export const GridRenderLayer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
14
|
+
const nativeRef = useRef(null);
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
console.log('🟢 [GridRenderLayer] Component mounted');
|
|
17
|
+
console.log('🟢 [GridRenderLayer] Props:', JSON.stringify(props, null, 2));
|
|
18
|
+
console.log('🟢 [GridRenderLayer] nativeRef.current:', nativeRef.current);
|
|
19
|
+
if (nativeRef.current) {
|
|
20
|
+
const handle = findNodeHandle(nativeRef.current);
|
|
21
|
+
console.log('🟢 [GridRenderLayer] Native node handle:', handle);
|
|
22
|
+
}
|
|
23
|
+
return () => {
|
|
24
|
+
console.log('🔴 [GridRenderLayer] Component unmounting');
|
|
25
|
+
};
|
|
26
|
+
}, []);
|
|
27
|
+
const getCommandId = commandName => {
|
|
28
|
+
try {
|
|
29
|
+
const config = UIManager.getViewManagerConfig(NATIVE_COMPONENT_NAME);
|
|
30
|
+
const commandId = config?.Commands?.[commandName];
|
|
31
|
+
return commandId;
|
|
32
|
+
} catch (error) {
|
|
33
|
+
console.error(`🔴 [GridRenderLayer] Error getting command ${commandName}:`, error);
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
useImperativeHandle(ref, () => ({
|
|
38
|
+
updateGeometry: (corners, gridDef) => {
|
|
39
|
+
if (nativeRef.current) {
|
|
40
|
+
const commandId = getCommandId('updateGeometry');
|
|
41
|
+
if (commandId != null) {
|
|
42
|
+
const handle = findNodeHandle(nativeRef.current);
|
|
43
|
+
UIManager.dispatchViewManagerCommand(handle, commandId, [corners, gridDef]);
|
|
44
|
+
} else {
|
|
45
|
+
console.warn('⚠️ [GridRenderLayer] updateGeometry command ID not found');
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
console.warn('⚠️ [GridRenderLayer] nativeRef not available for updateGeometry');
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
updateDataTextureFromFile: (filePath, nx, ny, scale, offset, missing, scaleType) => {
|
|
52
|
+
if (nativeRef.current) {
|
|
53
|
+
const commandId = getCommandId('updateDataTexture');
|
|
54
|
+
if (commandId != null) {
|
|
55
|
+
UIManager.dispatchViewManagerCommand(findNodeHandle(nativeRef.current), commandId, [filePath, Number(nx), Number(ny), Number(scale), Number(offset), Number(missing), scaleType || "linear"]);
|
|
56
|
+
}
|
|
57
|
+
} else {
|
|
58
|
+
console.warn('⚠️ [GridRenderLayer] nativeRef not available for updateDataTextureFromFile');
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
updateDataTexture: (base64Data, nx, ny, scale, offset, missing, scaleType) => {
|
|
62
|
+
if (nativeRef.current) {
|
|
63
|
+
const commandId = getCommandId('updateDataTexture');
|
|
64
|
+
if (commandId != null) {
|
|
65
|
+
UIManager.dispatchViewManagerCommand(findNodeHandle(nativeRef.current), commandId, [base64Data, Number(nx), Number(ny), Number(scale), Number(offset), Number(missing), scaleType || "linear"]);
|
|
66
|
+
}
|
|
67
|
+
} else {
|
|
68
|
+
console.warn('⚠️ [GridRenderLayer] nativeRef not available for updateDataTexture');
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
updateColormapTexture: colormapArray => {
|
|
72
|
+
if (nativeRef.current) {
|
|
73
|
+
const commandId = getCommandId('updateColormapTexture');
|
|
74
|
+
if (commandId != null) {
|
|
75
|
+
UIManager.dispatchViewManagerCommand(findNodeHandle(nativeRef.current), commandId, [colormapArray]);
|
|
76
|
+
}
|
|
77
|
+
} else {
|
|
78
|
+
console.warn('⚠️ [GridRenderLayer] nativeRef not available for updateColormapTexture');
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
updateDataParameters: (scale, offset, missing) => {
|
|
82
|
+
if (nativeRef.current) {
|
|
83
|
+
const commandId = getCommandId('updateDataParameters');
|
|
84
|
+
if (commandId != null) {
|
|
85
|
+
UIManager.dispatchViewManagerCommand(findNodeHandle(nativeRef.current), commandId, [Number(scale), Number(offset), Number(missing)]);
|
|
86
|
+
}
|
|
87
|
+
} else {
|
|
88
|
+
console.warn('⚠️ [GridRenderLayer] nativeRef not available for updateDataParameters');
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
setSmoothing: enabled => {
|
|
92
|
+
if (nativeRef.current) {
|
|
93
|
+
nativeRef.current.setNativeProps({
|
|
94
|
+
smoothing: enabled
|
|
95
|
+
});
|
|
96
|
+
} else {
|
|
97
|
+
console.warn('⚠️ [GridRenderLayer] nativeRef not available for setSmoothing');
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
clear: () => {
|
|
101
|
+
if (nativeRef.current) {
|
|
102
|
+
const commandId = getCommandId('clear');
|
|
103
|
+
if (commandId != null) {
|
|
104
|
+
UIManager.dispatchViewManagerCommand(findNodeHandle(nativeRef.current), commandId, [] // No arguments needed
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}));
|
|
110
|
+
return /*#__PURE__*/React.createElement(GridRenderView, {
|
|
111
|
+
ref: nativeRef,
|
|
112
|
+
opacity: props.opacity,
|
|
113
|
+
dataRange: props.dataRange,
|
|
114
|
+
belowID: props.belowID,
|
|
115
|
+
smoothing: true,
|
|
116
|
+
style: styles.overlay,
|
|
117
|
+
pointerEvents: "none"
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
const styles = StyleSheet.create({
|
|
121
|
+
overlay: {
|
|
122
|
+
...StyleSheet.absoluteFillObject
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
//# sourceMappingURL=GridRenderLayer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useRef","useImperativeHandle","forwardRef","useEffect","UIManager","findNodeHandle","requireNativeComponent","StyleSheet","Platform","GridRenderView","NATIVE_COMPONENT_NAME","getViewManagerConfig","allComponents","Object","keys","filter","key","startsWith","console","log","slice","GridRenderLayer","props","ref","nativeRef","JSON","stringify","current","handle","getCommandId","commandName","config","commandId","Commands","error","updateGeometry","corners","gridDef","dispatchViewManagerCommand","warn","updateDataTextureFromFile","filePath","nx","ny","scale","offset","missing","scaleType","Number","updateDataTexture","base64Data","updateColormapTexture","colormapArray","updateDataParameters","setSmoothing","enabled","setNativeProps","smoothing","clear","createElement","opacity","dataRange","belowID","style","styles","overlay","pointerEvents","create","absoluteFillObject"],"sourceRoot":"..\\..\\..","sources":["src/GridRenderLayer.js"],"mappings":"AAAA;;AAEA,OAAOA,KAAK,IAAIC,MAAM,EAAEC,mBAAmB,EAAEC,UAAU,EAAEC,SAAS,QAAQ,OAAO;AACjF,SAASC,SAAS,EAAEC,cAAc,EAAEC,sBAAsB,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AACtG,OAAOC,cAAc,MAAM,kCAAkC;;AAE7D;AACA,MAAMC,qBAAqB,GAAG,iBAAiB;AAE/C,IAAIN,SAAS,CAACO,oBAAoB,EAAE;EAChC,MAAMC,aAAa,GAAGC,MAAM,CAACC,IAAI,CAACV,SAAS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D;EAClB;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"..\\..\\..","sources":["src/GridRenderLayerNativeComponent.ts"],"mappings":"AAAA;;AAIA,OAAOA,sBAAsB,MAAM,yDAAyD;AAS5F,eAAeA,sBAAsB,CACnC,iBACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
// packages/react-native/src/MapManager.js
|
|
2
|
+
|
|
3
|
+
import React, { useMemo, useEffect, useState, useRef } from 'react';
|
|
4
|
+
import { View, StyleSheet, Text } from 'react-native';
|
|
5
|
+
import Mapbox from '@rnmapbox/maps';
|
|
6
|
+
import { THEME_CONFIGS } from '@aguacerowx/javascript-sdk';
|
|
7
|
+
import { StyleApplicator } from './StyleApplicator';
|
|
8
|
+
import { AguaceroContext } from './AguaceroContext';
|
|
9
|
+
import { mapRegistry } from './MapRegistry';
|
|
10
|
+
const TERRAIN_LAYER_ID = 'AML_-_terrain';
|
|
11
|
+
|
|
12
|
+
// --- UTILITIES ---
|
|
13
|
+
function isObject(item) {
|
|
14
|
+
return item && typeof item === 'object' && !Array.isArray(item);
|
|
15
|
+
}
|
|
16
|
+
function deepMerge(target, source) {
|
|
17
|
+
const output = {
|
|
18
|
+
...target
|
|
19
|
+
};
|
|
20
|
+
if (isObject(target) && isObject(source)) {
|
|
21
|
+
Object.keys(source).forEach(key => {
|
|
22
|
+
if (isObject(source[key])) {
|
|
23
|
+
if (!(key in target)) {
|
|
24
|
+
Object.assign(output, {
|
|
25
|
+
[key]: source[key]
|
|
26
|
+
});
|
|
27
|
+
} else {
|
|
28
|
+
output[key] = deepMerge(target[key], source[key]);
|
|
29
|
+
}
|
|
30
|
+
} else {
|
|
31
|
+
Object.assign(output, {
|
|
32
|
+
[key]: source[key]
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return output;
|
|
38
|
+
}
|
|
39
|
+
export const MapManager = ({
|
|
40
|
+
mapboxToken,
|
|
41
|
+
customStyles,
|
|
42
|
+
theme = 'light',
|
|
43
|
+
mapOptions = {},
|
|
44
|
+
children
|
|
45
|
+
}) => {
|
|
46
|
+
const mapRef = useRef(null);
|
|
47
|
+
const [mapStyle, setMapStyle] = useState(null);
|
|
48
|
+
|
|
49
|
+
// Register map with the global registry when it's ready
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
if (mapRef.current) {
|
|
52
|
+
mapRegistry.setMap(mapRef.current);
|
|
53
|
+
console.log('📍 [MapManager] Registered map with registry');
|
|
54
|
+
}
|
|
55
|
+
}, []);
|
|
56
|
+
const contextValue = useMemo(() => ({
|
|
57
|
+
getMap: () => mapRef.current,
|
|
58
|
+
getCenter: () => {
|
|
59
|
+
return mapRef.current?._currentCenter || [-95.7129, 37.0902];
|
|
60
|
+
}
|
|
61
|
+
}), []);
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
let lightTheme = JSON.parse(JSON.stringify(THEME_CONFIGS.light));
|
|
64
|
+
let darkTheme = JSON.parse(JSON.stringify(THEME_CONFIGS.dark));
|
|
65
|
+
if (customStyles) {
|
|
66
|
+
if (customStyles.light) {
|
|
67
|
+
lightTheme = deepMerge(lightTheme, customStyles.light);
|
|
68
|
+
}
|
|
69
|
+
if (customStyles.dark) {
|
|
70
|
+
darkTheme = deepMerge(darkTheme, customStyles.dark);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
setMapStyle(theme === 'dark' ? darkTheme : lightTheme);
|
|
74
|
+
}, [customStyles, theme]);
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
if (mapboxToken) {
|
|
77
|
+
Mapbox.setAccessToken(mapboxToken);
|
|
78
|
+
} else {
|
|
79
|
+
console.error("MapManager: A 'mapboxToken' prop is required but was not provided.");
|
|
80
|
+
}
|
|
81
|
+
}, [mapboxToken]);
|
|
82
|
+
if (!mapboxToken) {
|
|
83
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
84
|
+
style: [styles.container, styles.centerContent]
|
|
85
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
86
|
+
style: styles.errorText
|
|
87
|
+
}, "Mapbox Token Missing"), /*#__PURE__*/React.createElement(Text, {
|
|
88
|
+
style: styles.errorSubText
|
|
89
|
+
}, "Please provide the 'mapboxToken' prop."));
|
|
90
|
+
}
|
|
91
|
+
const handleCameraChange = event => {
|
|
92
|
+
if (event?.properties?.center) {
|
|
93
|
+
const center = event.properties.center;
|
|
94
|
+
|
|
95
|
+
// Store the current center in the ref for immediate access
|
|
96
|
+
if (mapRef.current) {
|
|
97
|
+
mapRef.current._currentCenter = center;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Notify all listeners through the registry
|
|
101
|
+
console.log('📍 [MapManager] Camera changed, notifying registry:', center);
|
|
102
|
+
mapRegistry.notifyCameraChange(center);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
const BASE_STYLE_URL = 'mapbox://styles/aguacerowx/cmfvox8mq004u01qm5nlg7qkt';
|
|
106
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
107
|
+
style: styles.container
|
|
108
|
+
}, /*#__PURE__*/React.createElement(AguaceroContext.Provider, {
|
|
109
|
+
value: contextValue
|
|
110
|
+
}, /*#__PURE__*/React.createElement(Mapbox.MapView, {
|
|
111
|
+
ref: mapRef,
|
|
112
|
+
style: styles.map,
|
|
113
|
+
styleURL: BASE_STYLE_URL,
|
|
114
|
+
scaleBarEnabled: false,
|
|
115
|
+
onCameraChanged: handleCameraChange
|
|
116
|
+
}, /*#__PURE__*/React.createElement(Mapbox.Camera, {
|
|
117
|
+
defaultSettings: {
|
|
118
|
+
centerCoordinate: mapOptions.center || [-95.7129, 37.0902],
|
|
119
|
+
zoomLevel: mapOptions.zoom || 4,
|
|
120
|
+
pitch: mapOptions.pitch || 0,
|
|
121
|
+
bearing: mapOptions.bearing || 0,
|
|
122
|
+
minZoomLevel: mapOptions.minZoom || 2,
|
|
123
|
+
maxZoomLevel: mapOptions.maxZoom || 12
|
|
124
|
+
}
|
|
125
|
+
}), mapStyle && /*#__PURE__*/React.createElement(StyleApplicator, {
|
|
126
|
+
styles: mapStyle
|
|
127
|
+
}), /*#__PURE__*/React.createElement(Mapbox.VectorSource, {
|
|
128
|
+
id: "mapbox-dem",
|
|
129
|
+
url: "mapbox://mapbox.mapbox-terrain-dem-v1"
|
|
130
|
+
}), children)));
|
|
131
|
+
};
|
|
132
|
+
const styles = StyleSheet.create({
|
|
133
|
+
container: {
|
|
134
|
+
flex: 1,
|
|
135
|
+
backgroundColor: '#1a1a2e'
|
|
136
|
+
},
|
|
137
|
+
centerContent: {
|
|
138
|
+
justifyContent: 'center',
|
|
139
|
+
alignItems: 'center'
|
|
140
|
+
},
|
|
141
|
+
map: {
|
|
142
|
+
flex: 1
|
|
143
|
+
},
|
|
144
|
+
errorText: {
|
|
145
|
+
color: '#FF6B6B',
|
|
146
|
+
fontSize: 22,
|
|
147
|
+
fontWeight: 'bold'
|
|
148
|
+
},
|
|
149
|
+
errorSubText: {
|
|
150
|
+
color: 'white',
|
|
151
|
+
fontSize: 16,
|
|
152
|
+
marginTop: 8
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
//# sourceMappingURL=MapManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useMemo","useEffect","useState","useRef","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","mapRef","mapStyle","setMapStyle","current","setMap","console","log","contextValue","getMap","getCenter","_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","ref","map","styleURL","scaleBarEnabled","onCameraChanged","Camera","defaultSettings","centerCoordinate","zoomLevel","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,QAAQ,OAAO;AACnE,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,CAAC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C,GAAG,EAAC;EAAuC,CAAC,CAAC,EACjFvD,QACW,CACM,CACxB,CAAC;AAEf,CAAC;AAED,MAAMuB,MAAM,GAAGjD,UAAU,CAACkF,MAAM,CAAC;EAC7BhC,SAAS,EAAE;IACPiC,IAAI,EAAE,CAAC;IACPC,eAAe,EAAE;EACrB,CAAC;EACDjC,aAAa,EAAE;IACXkC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EAChB,CAAC;EACDtB,GAAG,EAAE;IACDmB,IAAI,EAAE;EACV,CAAC;EACD/B,SAAS,EAAE;IACPmC,KAAK,EAAE,SAAS;IAChBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EAChB,CAAC;EACDpC,YAAY,EAAE;IACVkC,KAAK,EAAE,OAAO;IACdC,QAAQ,EAAE,EAAE;IACZE,SAAS,EAAE;EACf;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Simple registry to share the map instance
|
|
2
|
+
class MapRegistry {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.mapRef = null;
|
|
5
|
+
this.listeners = [];
|
|
6
|
+
}
|
|
7
|
+
setMap(mapRef) {
|
|
8
|
+
console.log('📍 [MapRegistry] Map registered:', !!mapRef);
|
|
9
|
+
this.mapRef = mapRef;
|
|
10
|
+
}
|
|
11
|
+
getMap() {
|
|
12
|
+
return this.mapRef;
|
|
13
|
+
}
|
|
14
|
+
addCameraListener(listener) {
|
|
15
|
+
this.listeners.push(listener);
|
|
16
|
+
console.log('📍 [MapRegistry] Listener added, total:', this.listeners.length);
|
|
17
|
+
}
|
|
18
|
+
removeCameraListener(listener) {
|
|
19
|
+
const index = this.listeners.indexOf(listener);
|
|
20
|
+
if (index > -1) {
|
|
21
|
+
this.listeners.splice(index, 1);
|
|
22
|
+
console.log('📍 [MapRegistry] Listener removed, total:', this.listeners.length);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
notifyCameraChange(center) {
|
|
26
|
+
this.listeners.forEach(listener => listener(center));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export const mapRegistry = new MapRegistry();
|
|
30
|
+
//# sourceMappingURL=MapRegistry.js.map
|
|
@@ -0,0 +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":"..\\..\\..","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":[]}
|